[Geoserver-users] Layer data columns from WFS

Hello,

I have several shapefile datastores and I would like to show in a client application the set of attributes for a given layer. Is it possible to obtain the set of data columns via WFS?

Thanks in advance,

Santi

On Tue, May 14, 2013 at 12:22 PM, Santiago Timón <stimonmail@anonymised.com>wrote:

Hello,

I have several shapefile datastores and I would like to show in a client
application the set of attributes for a given layer. Is it possible to
obtain the set of data columns via WFS?

Use the DescribeFeatureType WFS request, it gives you back the xml schema
of the GML, which in turns contains all elements and their types

Cheers
Andrea

--

GeoServer training in Milan, 6th & 7th June 2013! Visit
http://geoserver.geo-solutions.it for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

Thank you Andrea, I will try it.

Santi

···

2013/5/14 Andrea Aime <andrea.aime@anonymised.com>

On Tue, May 14, 2013 at 12:22 PM, Santiago Timón <stimonmail@anonymised.com> wrote:

Hello,

I have several shapefile datastores and I would like to show in a client application the set of attributes for a given layer. Is it possible to obtain the set of data columns via WFS?

Use the DescribeFeatureType WFS request, it gives you back the xml schema of the GML, which in turns contains all elements and their types

Cheers
Andrea

==
GeoServer training in Milan, 6th & 7th June 2013! Visit http://geoserver.geo-solutions.it for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it