Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I want to query selected propertynames from a list of Typenames in Geoserver. I could find an example from OGC WMS 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.

thank you in advance

share|improve this question
    
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. –  iant Mar 4 '11 at 19:11
    
Here is the link for the pdf : google.com/… –  sur Mar 4 '11 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 '11 at 0:11
add comment

1 Answer

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?

share|improve this answer
    
As per the example in the document (ukypssgis.ca.uky.edu/Web_Feature_Service_WFS_02-058.pdf) Page 80, example 10. I noticed two issues: 1) I have changed "PROPERTY=(" to "PROPERTYNAME=(" ,this could be a typo. 2) I have changed "PROPERTY=(INWATERA_1M/WKB_GEOM, " to "PROPERTYNAME=(INWATERA_1M:WKB_GEOM," again this also could be a typo. –  sur Mar 8 '11 at 15:52
    
I was actually trying to query selected propertynames from multiple typenames. I succeded to make one working example. Here is the link. ian01.geog.psu.edu/geoserver/… –  sur Mar 8 '11 at 15:54
    
Thank you very much for your help. Your link really helped me to solve the issue. –  sur Mar 8 '11 at 15:59
    
so you might want to up vote the answer and accept it to (you get rep from accepting) to make it more likely others will help you in future. –  iant Mar 8 '11 at 19:44
    
I wish to vote it up ,But it says "Vote up requires 15 reputation" thank you –  sur Mar 9 '11 at 0:03
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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