[mapserver-users] python scripting and layers

John Abraham jea at hbaspecto.com
Thu May 31 12:25:00 PDT 2012


We have a django script (in python) that writes out the map file based on what the web user requested.  We end up with a mapfile for almost every request but they are small and hard drives are cheap so it's been ok.

--
John Abraham

On May 29, 2012, at 10:53 PM, Jessica Clarke wrote:

> Hi all,
> I'm just playing around with some ideas at the moment, so I'm not sure if this will make sense...
>  
> Is it possible to use a python script to add a layer to an existing mapfile?
>  
> I have an appliaction that sends a request to mapserver for a map, but I want to be able to add a related shape to the map if the user asks for it.
>  
> I'm trying to avoid re-writing all the mapfiles to allow for this (there are 30ish)...
>  
> Any help or direction would be appreciated, 
> Jess
>  
>  
>  
> Jessica Clarke
> GIS Infrastructure Officer
> 
> Forestry Tasmania
> 79 Melville Street
> Hobart Tas 7000
> (03) 6235 8197
>  
> Growing tomorrow's high conservation value forests ‑ Check this out:
> http://www.youtube.com/watch?v=wP6XCailI‑A
> 
> --------------------------------------------------------------------------------------------------------------------------------------------- 
> This transmission is intended solely for the person or organisation to whom it is addressed.
> 
> It is confidential and may contain legally privileged information.
> 
> If you have received this transmission in error, you may not use, copy or distribute it.
> 
> Please advise us by return e-mail or by phoning 61 3 6235 8333 and immediately delete the transmission in its entirety.
> 
> We will meet your reasonable expenses of notifying us.
> 
> Despite our use of anti-virus software, Forestry Tasmania cannot guarantee that this transmission is virus-free.
> 
> --------------------------------------------------------------------------------------------------------------------------------------------
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120531/ae83c465/attachment.html>


More information about the mapserver-users mailing list