On Thu, Jun 23, 2011 at 6:30 PM, Kangas, Eric G. <[email protected]> wrote:

> Hello,****
>
>
> I’ve been trying out GeoServer 2.1 and have run into what looks like a
> coordinate system mix up.  According to the OpenGIS WMS specification for
> 1.3.0, the BBOX for EPSG:4326 should be lat then lon, but it seems Geoserver
> is doing it backwards.   Here is an excerpt:****
>
> ** **
>
> EXAMPLE 1 A <BoundingBox> metadata element for a Layer representing the
> entire Earth in the CRS:84 Layer CRS****
>
> would be written as****
>
> <BoundingBox CRS="CRS:84" minx="-180" miny="-90" maxx="180" maxy="90">.***
> *
>
> A BBOX parameter requesting a map of the entire Earth would be written in
> this CRS as****
>
> BBOX=-180,-90,180,90.****
>
> EXAMPLE 2 A <BoundingBox> representing the entire Earth in the EPSG:4326
> Layer CRS would be written as****
>
> <BoundingBox CRS="EPSG:4326" minx="-90" miny="-180" maxx="90" maxy="180">.
> ****
>
> A BBOX parameter requesting a map of the entire Earth would be written in
> this CRS as****
>
> BBOX=-90,-180,90,180.****
>
> ** **
>
> Here is an example request that I’m doing,****
>
> ** **
>
>
> http://localhost:8080/geoserver/ows?SERVICE=WMS&?VERSION=1.3.0&service=WMS&REQUEST=GetMap&CRS=EPSG:4326&LAYERS=cite:pyramid2&WIDTH=714&HEIGHT=714&FORMAT=image/png&STYLES=&TRANSPARENT=TRUE&BBOX=-90,-180,90,180
> ****
>
> ** **
>
> The image here shows up sideways.  It works when I do this request below,
> however.****
>
> ** **
>
>
> http://localhost:8080/geoserver/ows?SERVICE=WMS&?VERSION=1.3.0&REQUEST=GetMap&CRS=EPSG:4326&LAYERS=cite:pyramid2&WIDTH=714&HEIGHT=714&FORMAT=image/png&STYLES=&TRANSPARENT=TRUE&BBOX=-180,-90,180,90
> ****
>
> ** **
>
> Am I doing something wrong, is this a bug, or intended behavior?
>

Doh, that url almost made me think there was a bug... but the bug is
actually in the url,
there are two ?
You have: service=wms&?version=1.3.0

which results in GS defaulting to version 1.1.1 I believe (since the param
name it sees it's "?version",
not "version").

Fix the url and it should work fine.

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

-------------------------------------------------------
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to