[OpenLayers-Dev] Order coordinates in GeoJSON

Eric Lemoine eric.lemoine at camptocamp.com
Fri Mar 2 14:27:54 EST 2012


On Friday, March 2, 2012, Steven M. Ottens <steven at minst.net> wrote:
> Hi all,
>
> The coordinate-order has always been a source of confusion and IIRC
nowadays the recommended order is 'Latitude, Longitude'. However OpenLayers
by default expects 'Longitude, Latitude'. The GML format recognises this
and provides a 'xy' parameter to swap the order if necessary.
>
> The GeoJSON format, however, does not. I ran into this problem because
I'm using a WFS and WPS which according to the specs should return
'Latitude, Longitude'. Since GeoJSON is so much easier to use than GML, I
was wondering if adding the xy parameter to the GeoJSON format is desired.

Hi Steven. As far as I know the GeoJSON specs say nothing about coordinate
order. A xy option to the format would make sense to me.

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20120302/34c9c3a2/attachment.html


More information about the Dev mailing list