[mapserver-dev] Closing a layer removes class expressions and texts (bug or feature?)

Tamas Szekeres szekerest at gmail.com
Mon Feb 28 10:50:24 EST 2011


Steve,

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.

Best regards,

Tamas



2011/2/28 Lime, Steve D (DNR) <Steve.Lime at state.mn.us>

> Tamas: Do you have a test script that demonstrates the parsing error you
> run into? I’ll make this a priority to fix tonite.
>
>
>
> Steve
>
>
>
> *From:* mapserver-dev-bounces at lists.osgeo.org [mailto:
> mapserver-dev-bounces at lists.osgeo.org] *On Behalf Of *Tamas Szekeres
> *Sent:* Sunday, February 27, 2011 1:28 PM
> *To:* Frank Warmerdam
> *Cc:* mapserver-dev at lists.osgeo.org
> *Subject:* Re: [mapserver-dev] Closing a layer removes class expressions
> and texts (bug or feature?)
>
>
>
> Frank,
>
> 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 :-(
>
> Best regards,
>
> Tamas
>
> 2011/2/27 Frank Warmerdam <warmerdam at pobox.com>
>
> On 11-02-27 02:03 PM, Tamas Szekeres wrote:
>
> Hi All,
>
> The current implementation in msLayerClose (maplayer.c line 215-216 in
> trunk)
> removes the expression and text for each class of the corresponding layer.
> I
> doubt if it was a good practice since the second draw of the same map
> object
> yieds different rendering result. Could someone explain how does this
> addition
> make sense?
> IMHO the drawing process itself should not alter the map configuration
> specified by the user.
>
>
>
> Tamas,
>
> There is a ticket on this and I believe Steve will address it shortly once
> he better understands why he did it this way in the first place.
>
>  http://trac.osgeo.org/mapserver/ticket/3692
>
> It is also breaking some stuff for me.
>
> Best regards,
> --
>
> ---------------------------------------+--------------------------------------
> I set the clouds in motion - turn up   | Frank Warmerdam,
> warmerdam at pobox.com
> light and sound - activate the windows | http://pobox.com/~warmerdam
> and watch the world go round - Rush    | Geospatial Programmer for Rent
>
> _______________________________________________
> 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/20110228/062cea2a/attachment-0001.html


More information about the mapserver-dev mailing list