[mapserver-users] runtime CONNECTION string partial substitution
G. Allegri
giohappy at gmail.com
Mon May 16 01:53:58 PDT 2016
Hello,
I'm trying to define a layer where the Sqlite DB connection should be set
dynamically through runtime sustitution.
e.g.
LAYER
NAME mylayer
TYPE POINT
CONNECTIONTYPE OGR
VALIDATION
"db" "[a-z]+"
END
CONNECTION "/var/www/dbs/%db%.sqlite"
DATA "mytable"
END
The point layers works fine if %db% is set statically but if I try to
define it through get query values nothing is returned:
http://localhost/cgi-bin/mapserv?map=mymapfile.map&db=mydb
The documentation says that runtime sustitution should work for CONNECTION
param too. What am I doing wrong?
Thanks,
Giovanni
--
Giovanni Allegri
http://about.me/giovanniallegri
Gis3W - http://gis3w.it
Ikare - http://ikare.it
Twitter: https://twitter.com/_giohappy_
blog: http://blog.spaziogis.it
GEO+ geomatica in Italia http://bit.ly/GEOplus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20160516/2b07e864/attachment.htm>
More information about the MapServer-users
mailing list