Hello,

in an older MapServer version (4.10.0) it is possible to use a very long _expression_ or Filter statement.

Like this one with over 1000 comma separated values:

      _expression_ ('[NR]' IN 'ID1,ID2,.................,ID1100')

This works fine:
mapserver_4.png
With newer MapServer versions (whether cgi (_expression_ in mapfile) or phpmapscript (_expression_ set with setExpression)) like 5.2.1 or 5.6.0 beta3 only o small part of the polygons appears:
mapserver_5.png

So is there a limit on _expression_ statement since version 5?
There are no errors in the log-file with debug set to 5.

This is my layer definition:

  LAYER
         DATA "shapes/fs.shp"
         NAME "FS"
         STATUS ON
         TYPE POLYGON
         CLASS
              NAME "FS"
              _expression_ ('[NR]' IN 'ID1,ID2,.............................,ID1100')    # <-- of course without the points ;)
              STYLE
                    COLOR 255 255 200
                    OUTLINECOLOR 0 0 0
             END
        END
  END

Thanks for any hint.

Rafael

PS: It is not possible to classify on attributes. 





<<inline: mapserver_4.png>>

<<inline: mapserver_5.png>>

_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to