queryByLayer - is it a valid method on layerObj?
2015-03-09 19:12:02 GMT
The Mapscript SWIG interface on the layerObj defines a queryByFilter method as
public int queryByFilter(mapObj map, string arg1)
where arg1 is supposedly the filter to apply when querying the layer, analogous to
public int queryByRect(mapObj map, rectObj rect)
Where is this method documented? It is not described in either the 6.4 or 7.0 documentation. Based upon the history of the code that I’m attempting to bring back to life the method was probably documented in MapServer 4.x or 5.x. Note that is still visible through SWIG.
How should it be used? I tried it with a WFS OGC filter and the log file showed (ignore line wrapping here):
[Mon Mar 09 12:18:35 2015].727000 yyparse(): Expression parser error. syntax error
[Mon Mar 09 12:18:35 2015].727000 msEvalExpression: Expression parser error.
Failed to parse expression:
I tried with a much simpler mapfile filter and got much the same result:
[Mon Mar 09 12:53:22 2015].470000 yyparse(): Expression parser error. syntax error
[Mon Mar 09 12:53:22 2015].470000 msEvalExpression: Expression parser error.
Failed to parse expression: ([mukey] in (713970, 713898))
Do any of you have a working example of its use?
Is there a way to use the OGC filter directly within mapscript code? That is ultimately what I’m after.
- Phil Anzel
USDA/NRCS contractor – Team Vistronix
This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately.
_______________________________________________ mapserver-users mailing list mapserver-users <at> lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users