Filter interface problem

Miguel Gonçalves mgoncalves at DSI.UMINHO.PT
Thu Sep 15 05:02:41 EDT 2005


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