[OpenLayers-Dev] Order coordinates in GeoJSON
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.
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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Dev