Skip to content

Version 3.0.0 of crsTransformations-dotnet

Latest
Compare
Choose a tag to compare
@TomasJohansson TomasJohansson released this 09 Nov 12:58
· 1 commit to master since this release

Version 3.0.0 of the following four libraries:
https://www.nuget.org/packages/Programmerare.CrsTransformations.Core/3.0.0
https://www.nuget.org/packages/Programmerare.CrsTransformations.Adapter.ProjNet/3.0.0
https://www.nuget.org/packages/Programmerare.CrsTransformations.Adapter.DotSpatial/3.0.0
https://www.nuget.org/packages/Programmerare.CrsTransformations.Adapter.MightyLittleGeodesy/3.0.0

Release notes:
(regarding notable differences between v2.0.0 and v3.0.0)

Added support for Wkt-Crs (Well-known text representation of coordinate reference systems) with a new method "CrsIdentifierFactory.CreateFromWktCrs".
Example:

CrsIdentifier crs = CrsIdentifierFactory.CreateFromWktCrs("PROJCS[\"SWEREF99 TM\",GEOGCS[\"SWEREF99\",DATUM ...[and so on with a long WKT-CRS string]...");

The previously existing method "CrsIdentifierFactory.CreateFromCrsCode" has changed behaviour a little bit, which is the reason for a new 'major' version number (i.e. version 3.0.0 instead of 2.1.0).
The difference is that it is now more restrictive regarding the input and can now throw an exception instead of (as before) setting the property 'CrsIdentifier.IsEpsgCode' to false.
The reason for this change is that the 'IsEpsgCode' is now used for determining which method to use from the implementations.
(CrsTransformationAdapterDotSpatial.fs and CrsTransformationAdapterProjNet.fs)
For example, the DotSpatial implementation now uses this 'IsEpsgCode' property to decide if its 'ProjectionInfo' will be created with its method 'ProjectionInfo.FromEpsgCode' or 'ProjectionInfo.FromEsriString'.

Please note that the WKT-CRS string is forwarded to the implementations without trying to figure out whether the provided string is "WKT OGC" or "WKT ESRI"