Changes between Version 6 and Version 7 of MapGuide
- Timestamp:
- 06/17/10 15:31:12 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MapGuide
v6 v7 24 24 == Overview == 25 25 26 CS-MAP RFC 2 will add to the content of the coordinate system dictionary the EPSG code, SRID code, and the EPSG quadrant code for all systems for which this information is known. It is proposed that the coordinate system API be expanded to expose this new information to the MapGuide community.26 CS-MAP RFC 2 will add to the content of the coordinate system dictionary the EPSG code, SRID code, and the EPSG quadrant code for all systems for which this information is known. It is proposed that the coordinate system API be expanded to expose this new information to the MapGuide community. 27 27 28 28 == Motivation == 29 29 30 EPSG and Oracle SRID codes are becoming essential meta data associated with system definitions. The CS-MAP RFC 2, upon approval, will populate currently unused elements of the Coordinate System Dictionary record with EPSG and Oracle SRID codes. Additionally, the Datums dictionary and the Ellipsoid Dictionary will have unused elements populated with EPSG codes (there are no Oracle SRID codes for datu smand ellipsoids). Implementation of this RFC will simply expose this data to the MapGuide community.30 EPSG and Oracle SRID codes are becoming essential meta data associated with system definitions. The CS-MAP RFC 2, upon approval, will populate currently unused elements of the Coordinate System Dictionary record with EPSG and Oracle SRID codes. Additionally, the Datums dictionary and the Ellipsoid Dictionary will have unused elements populated with EPSG codes (there are no Oracle SRID codes for datums and ellipsoids). Implementation of this RFC will simply expose this data to the MapGuide community. 31 31 32 There exists an axis swap problem when dealing with several data repositories. Essentially, the problem stems from the official definition requiring that the northing be the first ordinate of a coordinate. Since this produces a rotated image in most graphic systems this distinction is ignored in many CS-MAP definitions. CS-MAP RFC #2 proposes to include the "officially blessed" (read EPSG) ordinate order in the coordinate system definition and this RFC proposes to simply expose this information to the MapGuide community. Having access to this information, an application can compare the CS-MAP quad value to the EPSG quad value and chose an appropriate action baded on this comparison.32 There exists an axis swap problem when dealing with several data repositories. Essentially, the problem stems from the official definition requiring that the northing be the first ordinate of a coordinate. Since this produces a rotated image in most graphic systems this distinction is ignored in many CS-MAP definitions. CS-MAP RFC 2 proposes to include the "officially blessed" (read EPSG) ordinate order in the coordinate system definition and this RFC proposes to simply expose this information to the MapGuide community. Having access to this information, an application can compare the CS-MAP quad value to the EPSG quad value and chose an appropriate action based on this comparison. 33 33 34 34 == Proposed Solution == … … 36 36 Implementation is rather simple. Three additional interface functions will be added as follows. No exceptions are thrown, the API's simply return zeros if the information is not available. 37 37 38 * INT32 MgCoordinateSystem::GetEpsgCode() 39 * INT32 MgCoordinateSystem::GetEpsgQuadrant() 40 * INT32 MgCoordinateSystem::GetSridCode () 38 * INT32 MgCoordinateSystem::GetEpsgCode(); 39 * INT32 MgCoordinateSystem::GetEpsgQuadrant(); 40 * INT32 MgCoordinateSystem::GetSridCode (); 41 41 42 The return value of the GetEpsgQuadrant functionis a value with the same meaning as the MgCoordinateSystem::GetQuadrant() member which is (X == first ordinate, Y == second ordinate):42 The return value of the GetEpsgQuadrant () method is a value with the same meaning as the MgCoordinateSystem::GetQuadrant() member which is (X == first ordinate, Y == second ordinate): 43 43 44 || 1||X increases to the East, Y increases to the North||45 || 2||X increases to the West, Y increases to the North||46 || 3||X increases to the West, Y increases to the South||47 || 4||X increases to the East, Y increases to the South||44 || 1||X increases to the East, Y increases to the North|| 45 || 2||X increases to the West, Y increases to the North|| 46 || 3||X increases to the West, Y increases to the South|| 47 || 4||X increases to the East, Y increases to the South|| 48 48 ||-1||X increases to the North, Y increases to the East|| 49 49 ||-2||X increases to the North, Y increases to the West|| … … 53 53 == Implications == 54 54 55 No existing interface is changed. Three new interface functions are added to expose new inofrmation. The new interfaces will not throw exceptions. 55 No existing interface is changed. Three new interface functions are added to expose new information. The new interfaces will not throw exceptions. 56 57 The names of some data elements in the CS-MAP ldata structures will change. There exists one reference to each of these unused elements which will be renamed. This means that the change to CS-MAP and this MapGuide RFC will need to be synchronized. 56 58 57 59 == Test Plan == 58 60 59 A test p orogram which compares the results returned by the new interfaces to the values obtained from the current NameMapperwill be implemented.61 A test program which compares the results returned by the new interfaces to the values obtained from the then current NameMapper database will be implemented. 60 62 61 63 == Funding/Resources ==