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
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to