I'm trying to request a map in the Eckert IV using a WMS hosted by GeoServer. When I set srs=EPSG:54012 in my query string, I just get a sad XML response:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE ServiceExceptionReport SYSTEM ""> 
<ServiceExceptionReport version="1.1.1" > 
  <ServiceException code="InvalidSRS">
      Error occurred decoding the espg code EPSG:54012
No code &quot;EPSG:54012&quot; from authority &quot;European Petroleum Survey Group&quot; found for object of type &quot;IdentifiedObject&quot;.

What am I doing wrong?


Had I actually read the complete blog post from GeoSolutions, I wouldn't have had a problem.

It turns out that while GeoServer is capable of rendering a map in this projection, it doesn't ship with a SRS definition.

You can add this by creating the following file in your data directory: DATA_DIR/user_projections/epsg.properties. Then, populate the file with the WKT definition as follows (you can look it up at spatialreference.org, but I had to modify that version a bit before GeoServer would accept it):

54012=PROJCS["World_Eckert_IV", \
  GEOGCS["GCS_WGS_1984", \
    DATUM["WGS_1984", \
      SPHEROID["WGS_1984",6378137,298.257223563]], \
    PRIMEM["Greenwich", 0.0 ], \
    UNIT["Degree", 0.017453292519943295]], \
  PROJECTION["Eckert_IV"], \
  PARAMETER["Central_Meridian", 0.0], \
  UNIT["Meter", 1.0], \

You'll need to reboot GeoServer to get it to see the file.

  • epsg.io/54012 - would possibly work without changes? It is more up todate/supported than spatialrerence.org
    – Ian Turton
    Jan 24 '18 at 15:53
  • 1
    @IanTurton I think they're the same in this case. When I used the definition as-is, GeoServer gave me the rather indecisive pair of errors: Parameter "False_Easting" was unexpected. Parameter "False_Easting" is missing. I removed the False_Easting and False_Northing parameters from the definition, et voila.
    – dbaston
    Jan 24 '18 at 15:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.