GeoServer
  1. GeoServer
  2. GEOS-3305

GeoServer trunk does not correctly match a shapefile's projection to the correct epsg

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta2
    • Fix Version/s: 2.0-RC1
    • Component/s: Configuration, REST
    • Labels:
      None
    • Environment:
      Ubuntu GNU/Linux. Sun Java, Tomcat, GeoServer was built from trunk and Shapefiles
    • Number of attachments :
      0

      Description

      GeoServer fails to correctly assign the correct projection to a shapefile with a valid .prj file.

      The Shapefile's .prj looks is::

      GEOGCS["GCS_WGS_1984",
      DATUM["WGS_1984",
      SPHEROID["WGS_1984",6378137,298.257223563]],
      PRIMEM["Greenwich",0],
      UNIT["Degree",0.017453292519943295]]

      and the correct definition for ESPG:4326 is

      GEOGCS["WGS 84",
      DATUM["WGS_1984",
      SPHEROID["WGS 84",6378137,298.257223563,
      AUTHORITY["EPSG","7030"]],
      AUTHORITY["EPSG","6326"]],
      PRIMEM["Greenwich",0,
      AUTHORITY["EPSG","8901"]],
      UNIT["degree",0.01745329251994328,
      AUTHORITY["EPSG","9122"]],
      AUTHORITY["EPSG","4326"]]

      However, I think GeoServer should be able to recognize this as 4326. If you need a shapefile that cause this bug please contact me as I cannot distribute these shapefiles.

      Thanks guys.

        Activity

        Hide
        Justin Deoliveira added a comment -

        Well when I ported the rest config extension to trunk i manually updated calls to catalog builder to include the expensive ones. But I assume I missed this case. As for the UI... not sure, i have not touched it much recently so I delegate to others on that.

        Show
        Justin Deoliveira added a comment - Well when I ported the rest config extension to trunk i manually updated calls to catalog builder to include the expensive ones. But I assume I missed this case. As for the UI... not sure, i have not touched it much recently so I delegate to others on that.
        Hide
        Justin Deoliveira added a comment -

        Soo... i am not sure exactly what the problem here is... uploading the file works for me... it renders ok, just its native srs does not get an epsg code, which is quite common no?

        Show
        Justin Deoliveira added a comment - Soo... i am not sure exactly what the problem here is... uploading the file works for me... it renders ok, just its native srs does not get an epsg code, which is quite common no?
        Hide
        Justin Deoliveira added a comment -

        This is apparently fixed now... i think it is related to some of the other recent rest fixes. Closing.

        Show
        Justin Deoliveira added a comment - This is apparently fixed now... i think it is related to some of the other recent rest fixes. Closing.
        Hide
        mickae1 added a comment -

        Hi, I've a similar case :

        Geoserver didn't recognized this SRS

        GEOGCS["GCS_WGS_1984",
        DATUM["D_WGS_1984",
        SPHEROID["WGS_1984", 6378137.0, 298.257223563]],
        PRIMEM["Greenwich", 0.0],
        UNIT["degree", 0.017453292519943295],
        AXIS["Longitude", EAST],
        AXIS["Latitude", NORTH]]

        Show
        mickae1 added a comment - Hi, I've a similar case : Geoserver didn't recognized this SRS GEOGCS["GCS_WGS_1984", DATUM["D_WGS_1984", SPHEROID ["WGS_1984", 6378137.0, 298.257223563] ], PRIMEM ["Greenwich", 0.0] , UNIT ["degree", 0.017453292519943295] , AXIS ["Longitude", EAST] , AXIS ["Latitude", NORTH] ]
        Hide
        Marc Pfister added a comment -

        Same here on 2.1.3, uploading via restconfig, with:

        GEOGCS["GCS_WGS_1984",
        DATUM["D_WGS_1984",
        SPHEROID["WGS_1984",6378137,298.257223563]],
        PRIMEM["Greenwich",0],
        UNIT["Degree",0.017453292519943295]]

        which matches http://spatialreference.org/ref/epsg/4326/

        Show
        Marc Pfister added a comment - Same here on 2.1.3, uploading via restconfig, with: GEOGCS["GCS_WGS_1984", DATUM["D_WGS_1984", SPHEROID ["WGS_1984",6378137,298.257223563] ], PRIMEM ["Greenwich",0] , UNIT ["Degree",0.017453292519943295] ] which matches http://spatialreference.org/ref/epsg/4326/

          People

          • Assignee:
            Justin Deoliveira
            Reporter:
            Ivan Willig
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: