[OpenLayers-Users] Mapserver projection problem
Barend Köbben
kobben at itc.nl
Tue Mar 13 08:30:50 EDT 2012
Hi,
Since OSM can only be delivered in its native projection (spherical or
"google" mercator, EPSG:900913 or preferably EPSG:3857), all the other
data should be requested in that SRS too, including the BBOX that should
therefore be in meters...
E.g. something like this is the maximum extents of the spherical mercator :
-20037508, -20037508, 20037508, 20037508
Barend
--
Barend Köbben
Senior Lecturer, ITC - University of Twente,
Faculty of Geo-Information Science and Earth Observation
PO Box 217, 7500AE Enschede (The Netherlands)
+31-(0)53 4874 253
On 13-03-12 00:56, "jterstriep" <jterstriep at gmail.com> wrote:
>I'm having problems overlaying a mapserver layer (currently using a WMS
>layer) on an OSM base layer. I finally got the both maps to display but
>the
>overlay can only be seen at the max extents (of course it's very small at
>the scale) but then as soon as I zoom in the image disappears.
>
>This is the request being generated for the overlay image.
>
>cgi-bin/mapserv?MAP=transportation%2Fte-2010-loaded_new%2Fleam.s_TEroads.m
>ap&TRANSPARENT=true&FORMAT=image%2Fpng&LAYERS=final4&SERVICE=WMS&VERSION=1
>.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A900913&BBOX=-10018934.17,-90,-179.9
>9999999627,10018664.17&WIDTH=256&HEIGHT=256
>
>The BBOX looks suspicious but I'm not sure.
>
>My mapfile starts with the following:
> MAP
> web
> metadata
> "wms_title" "mymap"
> "wms_srs" "EPSG:900913 EPSG:4326"
> end
> end
>
> NAME "VectorMap"
> SIZE 600 400
> EXTENT -91.384426 37.96600 -89.104200 39.285340
> UNITS dd
> IMAGETYPE png
> PROJECTION
> "init=epsg:4326"
> END
>
>Any advice would be appreciated.
>
>Jeff
>
>
>--
>View this message in context:
>http://osgeo-org.1560.n6.nabble.com/Mapserver-projection-problem-tp4572286
>p4572286.html
>Sent from the OpenLayers Users mailing list archive at Nabble.com.
>_______________________________________________
>Users mailing list
>Users at lists.osgeo.org
>http://lists.osgeo.org/mailman/listinfo/openlayers-users
Faculty of Geo-Information Science and Earth Observation (ITC)
University of Twente
Chamber of Commerce: 501305360000
E-mail disclaimer
The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission.
More information about the Users
mailing list