________________________________
Lähettäjä: [email protected] [[email protected]] käyttäjän Andrea Aime 
[[email protected]] puolesta
Lähetetty: 24. kesäkuuta 2013 12:47
Vastaanottaja: Hakala Oiva (MTT)
Kopio: geoserver-users
Aihe: Re: [Geoserver-users] Querying layer attributes with REST

On Mon, Jun 24, 2013 at 11:35 AM, Hakala Oiva (MTT) 
<[email protected]<mailto:[email protected]>> wrote:
Has anyone succeeded in querying layer's attributes using REST?

http://localhost:8080/geoserver/rest/layers/mylayer.json

returns information on mylayer in json format, but that is not what I want. I 
want to query selected (or all) layers attribute values using REST. If this is 
possible somehow, please give an http-example. I have read all the Geoserver 
REST documentation, and searched the net, but I have not seen any example.

You are definitely getting all of the layer attributes that way. What might not 
be clear is that not all the attributes you can
edit in the user interface are stored in the Layer object, several are stored 
in the associated resource (featuretype/coverage/...) instead.
Check the output of the layer json response, it should contain a link to the 
associated resource that you can open

Cheers
Andrea

Thank you Andrea, one step forward; I got all the attribute names too, but is 
there a way to get attribute values as well?

Oiva

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to