Opened 14 years ago

Last modified 14 years ago

#1468 closed enhancement

Unset the EPSG code when cloning a Coordinate System entity — at Version 1

Reported by: baertelchen Owned by:
Priority: low Milestone: 2.3
Component: General Version: 2.1.0
Severity: minor Keywords:
Cc: External ID:

Description (last modified by brucedechant)

Currently, when calling one of the various CreateClone() methods in the Mg Coordinate System (CS) API, all of the entity's data is copied - incl. the EPSG code. This opens the door for inconsistencies, because the cloned entity becomes editable and can be saved to the dictionaries. Keeping the EPSG code creates a mess, because the underlying CsMap NameMapper component doesn't even consider the EPSG field in the dictionaries but does the mapping on its own.

When assuming that a caller clones a CS entity to modify it, it's safe to unset the EPSG code because the underlying definition is about to change anyway and will thus no longer match the definition as defined by the EPSG.

Change History (2)

by baertelchen, 14 years ago

Patch that modifies the CreateClone() implementation for Ellipsoids, Datums, Cs, GeodeticPaths, GeodeticTransformations to unset the EPSG code (set to 0))

comment:1 by brucedechant, 14 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.