[mapserver-users] passing variables to includes
pe_lord
pe_lord at yahoo.ca
Mon Oct 30 12:37:12 PDT 2017
To solve this problem, i've used an scaletoken with multiple parameters
(sorted).
SCALETOKEN
NAME "%f%"
VALUES
"0" "2|1"
"1000000" "2|1"
END
END
And inside my query string to postgis, I've substitued these sorted value
into a sub select and I split with the '|'.
DATA "the_geom from (SELECT table.*, d.* FROM table,
(select split_part('%f%','|',1)::integer as
p1,split_part('%f%','|',2)::integer as p2)as d ) as subquery using unique
cod_instl srid=3857"
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Mapserver-User-f4226646.html
More information about the MapServer-users
mailing list