On Tue, Jun 7, 2011 at 11:27 PM, Phil Scadden <[email protected]> wrote:
>
>> Nothing we can do about it, OGC changed the axis order on us between
>> WMS 1.1 and WMS 1.3, and WFS 1.0 and WFS 1.1
>>
> Sigh, that does make for complicated code. I will do a cookbook tutorial
> for Openlayers. I dont suppose OGC in their wisdom provided an easy way
> to detect whether native SRS is lat/long or not? If you are crafting a
> map with total knowledge of data sets involved, its not so bad. The
> moment you let users add a WMS/WFS layers, then you have to your code
> work with all possibilities.

Unfortunately not. OGC thought it was obvious the order was lat/lon when they
released WFS 1.0, everybody went lon/lat instead (industry standard instead
of ancient geographer standard), so in WFS 1.1 they
changed the way a srs is expressed to the urn form and make the order they
wanted to be explicit, deprecating WFS 1.0.

If you are playing with Geoserver the documented I linked before tells you the
rule: if in the capabilities the srs is in EPSG:XYWZ form it's lon/lat, if it's
in the urn form it's lat/lon.
Or alternatively, if you are using WFS 1.1 and WMS 1.3, lat/lon by default,
if you are using WFS 1.0 and WMS 1.1 lon/lat by default

Cheers
Andrea

-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to