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 **
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.