Hi prakash,<br><br>There's no option to preserve the INCLUDE statements in the map object repserentation, this information is lost right after parsing the mapfiles.<br>Therefore you won't be able to get back the same file structure when saving the map afterwards. This behaviour is "by design".<br>
<br>Best regards,<br><br>Tamas<br><br><br><br><div class="gmail_quote">2009/3/20 prak <span dir="ltr"><<a href="mailto:prakashtilhoo@astuntechnology.com">prakashtilhoo@astuntechnology.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hello,<br>
<br>
I have a map file, x.map with an include statement, 'INCLDUE "mylayers.map"<br>
'.<br>
<br>
I use mapscript_csharp to open x.map and works fine.<br>
<br>
However, I observed that immediately after mapobj.open("x.map"), x.map is<br>
saved back on disc with the 'INCLDUE "mylayers.map" '. stripped of x.map and<br>
all layer in "mylayers.map" included directly i x.map.<br>
<br>
I would like to keep my 'INCLDUE "mylayers.map" ' in x.map.<br>
<br>
Is there a way to do this with mapscript_csharp ?<br>
<br>
Thanks a lot for your usual help.<br>
<br>
prakash<br>
<font color="#888888">--<br>
View this message in context: <a href="http://n2.nabble.com/mapscript_csharp-removes-%22include%22-lines-in-map-file-tp2507929p2507929.html" target="_blank">http://n2.nabble.com/mapscript_csharp-removes-%22include%22-lines-in-map-file-tp2507929p2507929.html</a><br>
Sent from the Mapserver - Dev mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
mapserver-dev mailing list<br>
<a href="mailto:mapserver-dev@lists.osgeo.org">mapserver-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br>
</font></blockquote></div><br>