I have a PostGIS database with X, Y, and Z ECEF coordinates and I want to create a layer in Geoserver that displays these coordinates as points in OpenLayers. In Geoserver's create layer page there is a Coordinate Reference System heading with fields Native SRS, Declared SRS, and SRS Handling. I think I want Native SRS to be EPSG:4978, Declared SRS to be EPSG:4326, and SRS Handling to be reproject native to declared but I cannot edit the Native SRS field! Am I trying to do something unsupported?

  • yes, that isn't how that works - set declared to 4978 and let GeoServer handle the rest. I've no idea if it will actually support 4978 though
    – Ian Turton
    Commented Jun 21, 2017 at 7:44
  • Then why is there a field for Native SRS?
    – medley56
    Commented Jun 21, 2017 at 17:26
  • So that well formed srs can appear there. Some times data lies so geoserver allows you to change it.
    – Ian Turton
    Commented Jun 21, 2017 at 17:28
  • But Geoserver doesn't allow you to change it. It's not an editable field.
    – medley56
    Commented Jun 21, 2017 at 17:29
  • Exactly it is an intrinsic part of the data so you can not change it, just override it if it is wrong or undefined
    – Ian Turton
    Commented Jun 21, 2017 at 17:31

1 Answer 1


I don't think you can. It's very unusual to work with cartesian coordinates in GIS, aside from if you're doing geodesy work.

You will need to convert these X, Y, Z coordinates to Lat, Lon (height) before importing into PostGIS.

  • Ok, so Geoserver only supports a few EPSG codes and 4978 isn't one of them?
    – medley56
    Commented Jun 21, 2017 at 17:34
  • Hi @medley56, I think you'll find that GeoServer supports nearly all EPSG codes, but not cartesian ones. It's really only supports 2D CRSs, I think.
    – Alex Leith
    Commented Jun 21, 2017 at 22:31
  • Geoserver supports only 2D CRS but you can get it to recognize other EPSG codes from your geometry objects when mapping to XML schemas. e.g. GeodesyML.
    – medley56
    Commented Aug 10, 2017 at 15:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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