Changes between Initial Version and Version 1 of rfc20_srs_axes


Ignore:
Timestamp:
Jan 4, 2008, 12:17:53 PM (16 years ago)
Author:
warmerdam
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • rfc20_srs_axes

    v1 v1  
     1= RFC 20: OGRSpatialReference Axis Support =
     2
     3Author: Frank Warmerdam[[BR]]
     4Contact: warmerdam@pobox.com[[BR]]
     5Status: Development
     6
     7== Summary ==
     8
     9The OGRSpatialReference and OGRCoordinateTransformation classes assume that all coordinate systems use x=easting, y=northing (or in geographic terms x=longitude, y=longitude).  In practice some coordinate systems use alternate axis orientations (such as the Krovak projection), a some standards (GML, WMS 1.3, WCS 1.1) require honouring the EPSG declaration that all it's geographic coordinates refer to x as latitude and y as longitude.
     10
     11This RFC attempts to extend the OGRSpatialReference, and OGRCoordinateTransformation classes to support alternate axis orientations, and to update selected drivers (GML, WMS, WCS, GMLJP2) to properly support axis ordering. 
     12
     13== WKT Axis Representation ==
     14
     15The OGC WKT SRS format (per OGC 01-???) already indicates a way of defining coordinate system axes as shown in this example:
     16
     17{{{
     18GEOGCS["WGS 84",
     19    DATUM["WGS_1984",
     20        SPHEROID["WGS 84",6378137,298.257223563,
     21            AUTHORITY["EPSG","7030"]],
     22        TOWGS84[0,0,0,0,0,0,0],
     23        AUTHORITY["EPSG","6326"]],
     24    PRIMEM["Greenwich",0,
     25        AUTHORITY["EPSG","8901"]],
     26    UNIT["degree",0.0174532925199433,
     27        AUTHORITY["EPSG","9108"]],
     28    AXIS["Lat",NORTH],
     29    AXIS["Long",EAST],
     30    AUTHORITY["EPSG","4326"]]
     31}}}
     32
     33There is one AXIS definition per axis with order relating to position within a tuple.  The first argument is the user name for the axis and exact values are not specified.  The second argument is a direction and may be one of NORTH, SOUTH, EAST or WEST.
     34
     35== Dilemma ==
     36
     37The core challenge of this RFC is adding support for axes orders, including honouring EPSG desired axis order for geographic coordinate systems where appropriate without breaking existing files and code that make extensive use of EPSG coordinate systems but override axis orientations and assume they should be treated as long, lat regardless of what EPSG says.
     38
     39In particular, we come up with appropriate policies and mechanisms to decide when a file in a geographic coordinate system like EPSG:4326 is to be treated as lat/long and when it should be long/lat.  Because of the extensive existing practice it behooves us to err on the side of past practice, and require "opting in" to honouring EPSG axis ordering.
     40
     41== OGRSpatialReference ==
     42
     43New methods:
     44