[mapserver-users] Problem with queryByAttributes (C#-MapScript)
Daniel Kastner
kastner at graphservice.de
Thu Aug 23 00:28:50 PDT 2012
Hi to all of you.
I'm building a WebService based on MapServer using MapScript for C#.
While implementing a search function I ran into problems using the
queryByAttributes-function on the layerObj. The problem might be the
wrong syntax for the regular expressions. But it might be something
else.
I assume that both calls should return the same set of
features/shapes/object from the layer:
layer.queryByAttributes(Map, null, "('[StrName]' = 'Kropsburgweg'),
MS_QUERY_MULTIPLE);
and
layer.queryByAttributes(Map, null, "('[StrName]' =~ /Kropsburgweg/),
MS_QUERY_MULTIPLE);
But while the first call returns about 37 features the second call
doesn't return any features. Any idea what I#m doing wrong?!
Thanks in advance,
Daniel
More information about the MapServer-users
mailing list