Steve,<br><br>I work with a custom c# application the moment. However if you comment out the freeExpressions in maplayer.c line 215-216, create a mapfile that has class expressions and create a script that draws using the same mapObj instance twice that should reproduce this.<br>
<br>Best regards,<br><br>Tamas<br><br><br><br><div class="gmail_quote">2011/2/28 Lime, Steve D (DNR) <span dir="ltr">&lt;<a href="mailto:Steve.Lime@state.mn.us">Steve.Lime@state.mn.us</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Tamas: Do you have a test script that demonstrates the parsing error you run into? I’ll make this a priority to fix tonite.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Steve</span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0in 0in;"><p class="MsoNormal"><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> <a href="mailto:mapserver-dev-bounces@lists.osgeo.org" target="_blank">mapserver-dev-bounces@lists.osgeo.org</a> [mailto:<a href="mailto:mapserver-dev-bounces@lists.osgeo.org" target="_blank">mapserver-dev-bounces@lists.osgeo.org</a>] <b>On Behalf Of </b>Tamas Szekeres<br>
<b>Sent:</b> Sunday, February 27, 2011 1:28 PM<br><b>To:</b> Frank Warmerdam<br><b>Cc:</b> <a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">mapserver-dev@lists.osgeo.org</a><br><b>Subject:</b> Re: [mapserver-dev] Closing a layer removes class expressions and texts (bug or feature?)</span></p>
</div><div><div></div><div class="h5"><p class="MsoNormal"> </p><p class="MsoNormal" style="margin-bottom: 12pt;">Frank,<br><br>Further problem is that if I comment out the related code in msLayerClose, the second attempt of parsing the same expression will fail (msEvalExpression). I have no clues to get this stuff working at all :-(<br>
<br>Best regards,<br><br>Tamas<br><br></p><div><p class="MsoNormal">2011/2/27 Frank Warmerdam &lt;<a href="mailto:warmerdam@pobox.com" target="_blank">warmerdam@pobox.com</a>&gt;</p><div><div><p class="MsoNormal">On 11-02-27 02:03 PM, Tamas Szekeres wrote:</p>
<p class="MsoNormal">Hi All,<br><br>The current implementation in msLayerClose (maplayer.c line 215-216 in trunk)<br>removes the expression and text for each class of the corresponding layer. I<br>doubt if it was a good practice since the second draw of the same map object<br>
yieds different rendering result. Could someone explain how does this addition<br>make sense?<br>IMHO the drawing process itself should not alter the map configuration<br>specified by the user.</p><p class="MsoNormal"> </p>
</div></div><p class="MsoNormal">Tamas,<br><br>There is a ticket on this and I believe Steve will address it shortly once<br>he better understands why he did it this way in the first place.<br><br> <a href="http://trac.osgeo.org/mapserver/ticket/3692" target="_blank">http://trac.osgeo.org/mapserver/ticket/3692</a><br>
<br>It is also breaking some stuff for me.<br><br>Best regards,<br>-- <br>---------------------------------------+--------------------------------------<br>I set the clouds in motion - turn up   | Frank Warmerdam, <a href="mailto:warmerdam@pobox.com" target="_blank">warmerdam@pobox.com</a><br>
light and sound - activate the windows | <a href="http://pobox.com/%7Ewarmerdam" target="_blank">http://pobox.com/~warmerdam</a><br>and watch the world go round - Rush    | Geospatial Programmer for Rent<br><br>_______________________________________________<br>
mapserver-dev mailing list<br><a href="mailto:mapserver-dev@lists.osgeo.org" target="_blank">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></p>
</div><p class="MsoNormal"> </p></div></div></div></div></blockquote></div><br><div style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">
</div>