Quantcast
Channel: DotSpatial Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1128

Commented Issue: Missing epsg codes in projection infos [24006]

$
0
0
I try to implement a projection lookup based on epsg codes. I noticed that the ProjectionInfo i get by using a lookup via ProjectionInfo.FromEpsgCode(int) always has epsg code 0.

Also ProjectionInfos via KnownCoordinateSystems.Projected don't contain epsg codes.

When i try to compare a ProjectionInfo retrieved via FromEpsgCode and KnownCoordinateSystems the ProjectionInfo.Equals() returns false because the Epsg-based ProjectionInfo has NoDefs set to false and KnownCoordinateSystems has NoDefs set to true.
Comments: ** Comment from web user: FObermaier **

Here is a patch to address the unset Authority and EpsgCode members.

The naming __EpsgCode__ should be deprecated in favor of __AuthorityCode__. IMHO ProjectionInfo class should keep a copy of the initialization string.


Viewing all articles
Browse latest Browse all 1128

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>