WFS: attribute request

1628
3
09-21-2010 11:49 PM
PierreLACROIX
New Contributor II
Hi,

From SDE data in WGS 84, I would like to execute a WFS request in order to get the rivers with rank 1 on an area defined by a BBox.

The following request works (all rivers) :

http://<my server>/arcgis/services/WFS_SDE/MapServer/WFSServer?bbox=1,40,5,50&styles=&request=GetFeature&version=1.0.0&srs=EPSG:4326&typename=WFS_SDE:river

If I had the attribute, it does not work anymore (only rivers with rank = 1; river_rank is the name of the field) :
http://<mon serveur>/arcgis/services/WFS_SDE/MapServer/WFSServer?bbox=1,40,5,50&styles=&request=GetFeature&version=1.0.0&srs=EPSG:4326&typename=WFS_SDE:river&river_rank=1

I have tested a lot of different syntaxes, without success.

Does someone have an idea?

Thank you in avance.

Piotr
0 Kudos
3 Replies
PierreLACROIX
New Contributor II
Hi everyone,

Here is an example of "attribute request" returning the rivers with cntry_name = Switzerland:

http://sdi.unige.ch/arcgis/services/WFS_GDB/MapServer/WFSServer?styles=&request=GetFeature&version=1...<ogc:Filter><ogc:PropertyIsEqualTo><ogc:PropertyName>cntry_name</ogc:PropertyName><ogc:Literal>Switzerland</ogc:Literal></ogc:PropertyIsEqualTo></ogc:Filter>

Piotr
0 Kudos
MikeMcMahon
New Contributor II
Before you go all crazy and specific, have you tried a huge BBOX?

bbox=-180,-90,180,90

I had a case where my data didn't show up because the window afforded by the BBOX didn't match where my data was being displayed (X and Y coordinates had been reversed and my data was in a different hemisphere).
0 Kudos
PierreLACROIX
New Contributor II
Yes, I have checked that.
And finally I have posted the answer.
Thank you anyway for your help.
Piotr
0 Kudos