Filter interface problem

Bart van den Eijnden BEN at SYNCERA-ITSOLUTIONS.NL
Thu Sep 15 05:15:01 EDT 2005


It is not illegal, but you need to provide the filter then 2 times, see the WFS spec for details.

A filter specification describes a set of features to operate upon. The filter is defined as specified in the Filter Encoding Specification [3]. If the FILTER parameter is used, one filter must be specified for each feature type listed in the TYPENAME parameter. Individual filters encoded in the FILTER parameter are enclosed in parentheses "(" and ")".

I use this in HTTP POST mode and it works fine.

Best regards,
Bart

Bart van den Eijnden
Syncera IT Solutions
Postbus 270
2600 AG  DELFT

tel.nr.: 015-7512436
email: BEN at Syncera-ITSolutions.nl
>>> Miguel Gonçalves <mgoncalves at DSI.UMINHO.PT> 09/15/05 11:02 AM >>>
Hello,

I am using MapServer 4.6 for windows.
I am performing the following DWidth request to the layer cities of my 
map object.

http://localhost/cgi-bin/mapserv.exe?VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=cities&MAP=../MAPS/tutorial/europe_1.map&Filter= 

<Filter>
   <DWithin>
       <PropertyName>Geometry</PropertyName>
       <gml:Point>
           <gml:coordinates>-8.418000,41.539600</gml:coordinates>
       </gml:Point>
       <Distance units='m'>1000</Distance>
   </DWithin>
</Filter>


I also perform another request for the layer mjroads.

I would like to perform both requests at the same time but,
when I do "TYPENAME=cities,mjroads" I am only obtaining the results 
referent to the cities layer.
Is it illegal to use two layers in this type of requests?
Can anybody help me?
Thanks.
Best regards.
Miguel

PS- If it helps, here is my map object:

MAP
 EXTENT    -36.133725 5.7104918367 66.0633 71.1839
 SHAPEPATH    "europe_1_data"

 WEB
   METADATA
   WFS_TITLE    "Mapa da Europa"
   WFS_SRS        "http://localhost/cgi-bin/mapserv.exe?"
   END
 END
############## LAYER cities
 LAYER
   NAME    cities
   DATA    cities
   TYPE    line
   DUMP    TRUE                                     TOLERANCEUNITS METERS
   METADATA
   WFS_TITLE    "cities layer"
   GML_INCLUDE_ITEMS "all"
   END
 END

############## LAYER mjroads
 LAYER
   NAME    mjroads
   DATA    mjroads
   TYPE    line
   DUMP    TRUE
   TOLERANCEUNITS METERS
   METADATA
   WFS_TITLE    "mjroads layer"
   GML_INCLUDE_ITEMS "all"
   END
 END

##############LAYER country
 LAYER
   NAME    countries
   DATA    countries
   TYPE    polygon
   DUMP    TRUE
   TOLERANCEUNITS METERS
   METADATA
   WFS_TITLE    "country layer"
   GML_INCLUDE_ITEMS "all"
   END
 END

END



More information about the mapserver-users mailing list