Hi Steve, thanks for the quick response! I know about the PostGIS refactoring activity, and that is one of the things that we wanted to test. For the overall speed it looks great, but it can be some troublesome if old expressions don't work. One of our mapfiles is almost 12000 lines (with quite complex expressions), and I do not intend to change all the expressions :-). Do you know if anyone has the opportunity to look at this issue?
Regards, Pål Kristensen Steve Lime wrote: > > The PostGIS support underwent major changes recently so I'd suspect this > is specific > to that work. Perhaps there are character padding affecting things? > > Steve > >>>> Pål Kristensen <[EMAIL PROTECTED]> 11/21/08 8:36 AM >>> > > Hi! > > I've compiled 5.3-dev from trunk yesterday and got some trouble with > some > mapfiles that works well on 5.2. The problem is that the EXPRESSION > parameter in the CALSS object does not work with direct string > comparison. > Her are some examples: > > Does NOT work: (This is the original layer definition from the 5.2 > mapfile) > > LAYER > ... > CLASSITEM "maxhoyde" > ... > CLASS > NAME "test" > EXPRESSION "600" > ... > END > END > > > Using RegEx instead WORKS: > > LAYER > ... > CLASSITEM "maxhoyde" > ... > CLASS > NAME "test" > EXPRESSION /600/ > ... > END > END > > > Using logical expression WORKS: > > LAYER > ... > #CLASSITEM "maxhoyde" > ... > CLASS > NAME "test" > EXPRESSION ([makshoyde] == 600) > ... > END > END > > The data is stored in PostgreSQL (PostGIS), and the actual field type is > character(5). Anyone have a clue about what is causing this strange > behavior. > > Regards, > Pål Kristensen > -- > View this message in context: > http://www.nabble.com/CLASSITEM-and-EXPRESSION-issue-in-trunk--tp20622309p20622309.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Re%3A-CLASSITEM-and-EXPRESSION-issue-in-trunk--tp20622400p20622659.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
