Discussion:
[mapserver-users] Create a Run-time WMS Server
aborruso
2013-10-25 12:45:03 UTC
Permalink
Dear all,
I have a WMS server with only one layer.

I have SET a DATAPATTERN rule and I would like it to show only the datafile
I call with a specific URL.

In mode map I can use this kind of URL:
http://myserver/cgi-bin/mapserv?map=/temp/test.map&mode=map&map.layer[test]=DATA+012.tif

It works and I have only 012.tif rendered.

Is it possible to change WMS Server ar run-time? If it's yes what kind of
SERVER URL I must set in a WMS client?

I think it's wrong to use something like
http://myserver/cgi-bin/mapserv?map=/temp/test.map&map.layer[test]=DATA+012.tif&&SERVICE=WMS&VERSION=1.0.0&REQUEST=GetCapabilities

Thank you



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Create-a-Run-time-WMS-Server-tp5085768.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
Daniel Morissette
2013-10-25 13:24:23 UTC
Permalink
The URL parameter "map.layer[test]=DATA+012.tif" should work as well
with WMS as with the traditional mode=map. If it doesn't then there may
be a bug.

P.S. Your request to render arbitrary data files through a URL (without
creating a mapfile) reminded me of http://mapfart.com/ which was
presented at FOSS4G-NA earlier this year and uses mapserver under the
hood. It may not be useful for those who need a compliant WMS, but for
simpler uses just to render a data file there is real potential there.

Daniel
Post by aborruso
Dear all,
I have a WMS server with only one layer.
I have SET a DATAPATTERN rule and I would like it to show only the datafile
I call with a specific URL.
http://myserver/cgi-bin/mapserv?map=/temp/test.map&mode=map&map.layer[test]=DATA+012.tif
It works and I have only 012.tif rendered.
Is it possible to change WMS Server ar run-time? If it's yes what kind of
SERVER URL I must set in a WMS client?
I think it's wrong to use something like
http://myserver/cgi-bin/mapserv?map=/temp/test.map&map.layer[test]=DATA+012.tif&&SERVICE=WMS&VERSION=1.0.0&REQUEST=GetCapabilities
Thank you
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Create-a-Run-time-WMS-Server-tp5085768.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
_______________________________________________
mapserver-users mailing list
http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
Daniel Morissette
http://www.mapgears.com/
Provider of Professional MapServer Support since 2000
aborruso
2013-10-26 07:34:41 UTC
Permalink
Daniel,
it was my fault, it works properly!!!

But now my goal is to become a mapfart jedy :D :D

Thank you very much



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Create-a-Run-time-WMS-Server-tp5085768p5085897.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
Continue reading on narkive:
Loading...