First time I've done much of this so I may not be using the correct terminology. Also, I'm aware it could probably be resolved with post processing, but I'd like to fix it with this context, if possible.

I downloaded GeoJSON data from this website:


Using this curl request which was obtained & tweaked slightly from Firefox's Network Monitor:

curl -o "output.geojson" "https://data.bathnes.gov.uk/geoserver/mapdata/ows?mapsource=mapdata/ows&service=WFS&request=GetFeature&typeName=mapdata:prowwholeroute_fp,prowwholeroute_br&outputFormat=application/json&format_options=callback:getJson&SrsName=urn:ogc:def:crs:EPSG::4326"

I'm retrieving two layers within one request: prowwholeroute_fp and prowwholeroute_br

I'm using EPSG::4326 to transform the coordinates to Geodetic CRS: WGS 84 so it can be loaded into a Leaflet map.

If the resulting file from running the above request is searched, it can be seen that for prowwholeroute_br the coordinates have been transformed into the expected format i.e. [-2.3235,51.3823].

However for prowwholeroute_fp they look like this [167301.3397,378730.1334] which if the above request is re-run without transformation it appears the coordinates have just been swapped.

All the other layers on that website transform correctly, it's only prowwholeroute_fp with this problem. I'm at a loss as to why it's just this one. Why is this?

  • GeoJSON is NOT EPSG:4326
    – nmtoken
    Aug 21, 2023 at 6:16
  • OK 1. What is Geojson's required coordinate reference system? 2. Do you have a solution to my problem?
    – DaveF
    Aug 24, 2023 at 16:07
  • See the specification rfc-editor.org/rfc/rfc7946 for details. tldr; it's urn:ogc:def:crs:OGC::CRS84 or if you want a URL http://www.opengis.net/def/crs/OGC/1.3/CRS84 There is no EPSG code equivalent.
    – nmtoken
    Aug 25, 2023 at 8:14

1 Answer 1


Geojson should always be in long,lat wgs84 as defined by the specification. If you want control of the projection and axis order then use GML. If you are getting results that aren't in long,lat then the layer is possibly misconfigured. Normally I would check but I'm ony phone just now.

  • I thought there maybe a problem with the layer.,Where/how do I start checking. If you do get a spare minute or two I'd appreciate you taking a look at it.
    – DaveF
    Aug 19, 2023 at 14:58

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.