public ProjectionTransform(SpatialReference srcSpatialRef, SpatialReference dstSpatialRef)
 {
     if (srcSpatialRef == null)
     {
         throw new ArgumentNullException("源空间参考对象为空。");
     }
     if (dstSpatialRef == null)
     {
         throw new ArgumentNullException("目标空间参考对象为空。");
     }
     _srcProjection = new Proj4Projection(srcSpatialRef.ExportToProj4());
     _dstProjection = new Proj4Projection(dstSpatialRef.ExportToProj4());
     //_srcProjection._coordinateDomain = srcSpatialRef.CoordinateDomain;
     //_dstProjection._coordinateDomain = dstSpatialRef.CoordinateDomain;
 }
 public void InverTransform(double[] xs, double[] ys)
 {
     Proj4Projection.Transform(_dstProjection, _srcProjection, xs, ys);
 }
示例#3
0
 public void Transform(Proj4Projection dst, double[] x, double[] y, double[] z)
 {
     Proj4Projection.Transform(this, dst, x, y, z);
 }
示例#4
0
 private void CheckInitialized()
 {
     Proj4Projection.CheckInitialized(this);
 }
示例#5
0
 public void Transform(Proj4Projection dst, double[] x, double[] y)
 {
     this.Transform(dst, x, y, null);
 }