[Geoserver-devel] [jira] Created: (GEOS-4305) inconsistent 900913 projection definitions

inconsistent 900913 projection definitions
------------------------------------------

                 Key: GEOS-4305
                 URL: http://jira.codehaus.org/browse/GEOS-4305
             Project: GeoServer
          Issue Type: Bug
    Affects Versions: 2.0.2
         Environment: Fedora 10,
Sun java version "1.6.0_23"
Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)
Geoserver 2.0.2
            Reporter: Gavin Fleming
            Assignee: Andrea Aime

Two different versions of the 900913 projection WKT are being used in GeoServer, affecting recognition of data store native projection as well as seemingly resulting in incorrectly (not) applying datum transformations:

Both semi-minor and semi-major axes are defined in [2], whereas only the semi-minor axis is defined in [1]. I suspect this is causing the unpredictable shifts I am getting serving geotiffs and imagemosaics with geoserver and gwc.

1. search on geoserver demo page for supported SRS (presumably from gt-epsg-hsql-2.6.4.jar) :
PROJCS["WGS84 / Google Mercator",
  GEOGCS["WGS 84",
    DATUM["World Geodetic System 1984",
      SPHEROID["WGS 84", 6378137.0, 298.257223563, AUTHORITY["EPSG","7030"]],
      AUTHORITY["EPSG","6326"]],
    PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
    UNIT["degree", 0.017453292519943295],
    AXIS["Longitude", EAST],
    AXIS["Latitude", NORTH],
    AUTHORITY["EPSG","4326"]],
  PROJECTION["Mercator_1SP"],
  PARAMETER["semi_minor", 6378137.0],
  PARAMETER["latitude_of_origin", 0.0],
  PARAMETER["central_meridian", 0.0],
  PARAMETER["scale_factor", 1.0],
  PARAMETER["false_easting", 0.0],
  PARAMETER["false_northing", 0.0],
  UNIT["m", 1.0],
  AXIS["x", EAST],
  AXIS["y", NORTH],
  AUTHORITY["EPSG","900913"]]

2. but in user_projections/epsg.properties:
900913=PROJCS["WGS84 / Google Mercator", GEOGCS["WGS 84", DATUM["World Geodetic System 1984", SPHEROID["WGS 84", 6378137.0, 298.257223563, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]], UNIT["degree", 0.017453292519943295], AUTHORITY["EPSG","4326"]], PROJECTION["Mercator (1SP)", AUTHORITY["EPSG","9804"]], PARAMETER["semi_major", 6378137.0], PARAMETER["semi_minor", 6378137.0], PARAMETER["latitude_of_origin", 0.0], PARAMETER["central_meridian", 0.0], PARAMETER["scale_factor", 1.0], PARAMETER["false_easting", 0.0], PARAMETER["false_northing", 0.0], UNIT["m", 1.0], AUTHORITY["EPSG","900913"]]

Surely these should be the same?

Furthermore, surely they should define the GEOGCS as a sphere, not as WGS84?

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira