changing DATA parameter in mapfile via URL [fixed]

Dylan Beaudette dylan at IICI.NO-IP.ORG
Fri Apr 22 10:40:26 EDT 2005


Thank you everyone who has offered suggestions, i now have my 
application working with parameter substitution .

cheers!


On Apr 22, 2005, at 3:56 AM, Smith, Michael ERDC-CRREL-NH wrote:

> You need to use the DATAPATTERN keyword to allow data changes at the 
> URL level. See the docs at 
> http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#map. 
> DATAPATTERN is a regular expression that gets applied to any requests 
> to change data. Its a security thing.
>  
> Mike
>  
>
> From: UMN MapServer Users List on behalf of Dylan Beaudette
> Sent: Thu 4/21/2005 5:48 PM
> To: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: [UMN_MAPSERVER-USERS] changing DATA parameter in mapfile via 
> URL
>
>
> Is is possible to change the 'DATA' parameter via a URL-style variable 
> such
> as:
>
> ...&map_layername_data="xxx.shp"
>
> i am able to change every other property of this layer, but not its 
> data
> source.
>
> if this is not possible, does anyone know of some kind of work-around?
>
> i am trying to use a single map file for numerous different shape 
> files...
>
> thanks in advance!
>
> --
> Dylan Beaudette
> Soils and Biogeochemistry Graduate Group
> University of California at Davis
> 530.754.7341
>
--
Dylan Beaudette
Soils and Biogeochemistry Graduate Group
University of California at Davis
530.754.7341



More information about the mapserver-users mailing list