[mapserver-dev] mapscript_csharp removes "include" lines in map file

Tamas Szekeres szekerest at gmail.com
Fri Mar 20 05:58:53 EDT 2009


Hi prakash,

There's no option to preserve the INCLUDE statements in the map object
repserentation, this information is lost right after parsing the mapfiles.
Therefore you won't be able to get back the same file structure when saving
the map afterwards. This behaviour is "by design".

Best regards,

Tamas



2009/3/20 prak <prakashtilhoo at astuntechnology.com>

>
> Hello,
>
> I have a map file, x.map with an include statement, 'INCLDUE "mylayers.map"
> '.
>
> I use mapscript_csharp to open x.map and works fine.
>
> However, I observed that immediately after mapobj.open("x.map"), x.map is
> saved back on disc with the 'INCLDUE "mylayers.map" '. stripped of x.map
> and
> all layer in "mylayers.map" included directly i x.map.
>
> I would like to keep my 'INCLDUE "mylayers.map" ' in x.map.
>
> Is there a way to do this with mapscript_csharp ?
>
> Thanks a lot for your usual help.
>
> prakash
> --
> View this message in context:
> http://n2.nabble.com/mapscript_csharp-removes-%22include%22-lines-in-map-file-tp2507929p2507929.html
> Sent from the Mapserver - Dev mailing list archive at Nabble.com.
>
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20090320/9325aead/attachment.html


More information about the mapserver-dev mailing list