All,

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:
     <Filter><Intersect><PropertyName>Geometry</PropertyName><gml:Polygon>
       <gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>
         -88.0865046533,37.5555143852 -88.0860204771,37.5600435404
         -88.0782858287,37.5595392364 -88.0787704736,37.5550101113
         -88.0865046533,37.5555143852
       </gml:coordinates></gml:LinearRing></gml:outerBoundaryIs>
     </gml:Polygon></Intersect></Filter>

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.

Thanks.

- 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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to