예제 #1
0
 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;
 }
예제 #2
0
 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);
 }