Example #1
0
 /// <summary>
 /// Creates an instance of this class using the provided coordinate systems
 /// </summary>
 /// <param name="source">The source coordinate system</param>
 /// <param name="target">The target coordinate system</param>
 public DotSpatialCoordinateTransformation(DotSpatialCoordinateSystem source, DotSpatialCoordinateSystem target)
 {
     _source    = source;
     _target    = target;
     _transform = new DotSpatialMathTransform(source.ProjectionInfo, target.ProjectionInfo);
 }
Example #2
0
 /// <summary>Creates the inverse transform of this object.</summary>
 /// <remarks>This method may fail if the transform is not one to one. However, all cartographic projections should succeed.</remarks>
 /// <returns></returns>
 public IMathTransform Inverse()
 {
     return(_inverse ?? (_inverse = new DotSpatialMathTransform(_target, _source)));
 }