[mapserver-users] WMS/WFS multiple output projection or selectprojection by SRS parameter
Rahkonen Jukka
Jukka.Rahkonen at mmmtike.fi
Tue Oct 19 05:05:34 PDT 2010
Hi,
I would guess it is because you have the Google projection on your list.
Try to take is away and see if it works with the two othet ones on the
list. If yes, add
these lines to your projection file
# Google-projection
<900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0
+x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs <>
Otherwise you should be able to do it by following the document
http://mapserver.org/ogc/wms_server.html
Supported output projections for all layers are given under
MAP-WEB-METADATA, for example
"wms_srs" "EPSG:3067 EPSG:2393 EPSG:4326 EPSG:900913"
Layers may have different SRS lists if they have an own "wms_srs" I
believe.
-Jukka Rahkonen-
________________________________
rai 8 wrote
Hi!,
I'm trying to define multiple output projections in a WMS
server, but it doesn't work, as doc says if you define "wms_srs" it's
possible but mapserver says that SRS "Invalid SRS given", I tried
several ways and any works, also in getCapabilities only show the
projection section.
any ideas? it's possible without mapscript?
My mapfile looks like:
MAP
SHAPEPATH "./images"
IMAGECOLOR 255 0 0
CONFIG "MS_ERRORFILE" "/tmp/mapserver.log"
WEB
IMAGEPATH "/tmp"
IMAGEURL "http://localhost/tmp/"
METADATA
"wfs_title" "Demo"
"wfs_onlineresource" "http://localhost/cgi-bin/mapserv?"
"wfs_srs" "EPSG:32631 EPSG:900913 EPSG:4326"
"ows_schemas_location" "http://ogc.dmsolutions.ca"
END
END
PROJECTION
"init=epsg:4326"
END
LAYER
NAME topo
DATA cat.png
DEBUG 4
PROJECTION
"init=epsg:32631"
END
STATUS ON
TYPE RASTER
END
END
when I try to change the projection section with any of the
three SRS it works, I tried many combinations and any works. Also I
tried with WFS and it doesn't works.
thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20101019/167c2174/attachment.htm>
More information about the MapServer-users
mailing list