9

I want to query selected propertynames from a list of Typenames in a GeoServer service.

I could find an example from OGC WFS 1.1.0 Implementation Specification ( PDF document page 80 Example 10) which is not working for me. Here is the example:

Example 10

Query some properties of a list of feature types. In this case, the attributes WKB_GEOM and TILE_ID are fetched for the INWATERA_1M feature type and all the attributes of feature type BUILTUPA_1M are fetched.

http://www.someserver.com/wfs.cgi?
SERVICE=WFS&
VERSION=1.0.0&
REQUEST=GetFeature&
PROPERTY=(INWATERA_1M/WKB_GEOM,INWATERA_1M/TILE_ID)(BUILTUPA_1M/*)&
TYPENAME=INWATERA_1M,BUILTUPA_1M&

When I try to implement this I got the following error:

"Requested property: PropertyName1 is not available" The possible propertyName values are:[PropertyName1, , , , , ]"

It would be great if someone give me a working example for GeoServer.

3
  • can you provide a link to the spec you mean? There is no WMS 1.1.0 and the WFS 1.1.0 (OGC-04-094) does not have an example on either physical or virtual page 80.
    – Ian Turton
    Mar 4, 2011 at 19:11
  • Here is the link for the pdf : google.com/…
    – sur
    Mar 4, 2011 at 23:49
  • I think that link was not the right one, the document name is: Web_Feature_Service_WFS_02-058.pdf, the correct link is : google.com/…
    – sur
    Mar 5, 2011 at 0:11

1 Answer 1

5

I've just tried the following:

http://ian01.geog.psu.edu:80/geoserver/wfs?request=GetFeature&version=1.1.0&typeName=topp:states&outputFormat=GML2&PROPERTYNAME=(STATE_FIPS,STATE_ABBR)

and it seems fine. Can you post a specific URL that doesn't work?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.