*How *is it possible *to read attributes of a layer*?
For instance geoserver could deliver the layer structure with the URL: http://localhost:8080/geoserver/wfs/DescribeFeatureType?version=1.1.0&typename=topp:poly That returns the XML: <?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:cite="http://www.opengeospatial.net/cite" xmlns:gml="http://www.opengis.net/gml" xmlns:it.geosolutions="http://www.geo-solutions.it" xmlns:nurc="http://www.nurc.nato.int" xmlns:sde="http://geoserver.sf.net" xmlns:sf="http://www.openplans.org/spearfish" xmlns:tiger="http://www.census.gov" xmlns:topp="http://www.openplans.org/topp" elementFormDefault="qualified" targetNamespace="http://www.openplans.org/topp"> <xsd:import namespace="http://www.opengis.net/gml" schemaLocation="http://localhost:8080/geoserver/schemas/gml/3.1.1/base/gml.xsd"/> <xsd:complexType name="polyType"> <xsd:complexContent> <xsd:extension base="gml:AbstractFeatureType"> <xsd:sequence> <xsd:element maxOccurs="1" minOccurs="0" name="objectid" nillable="true" type="xsd:int"/> <xsd:element maxOccurs="1" minOccurs="0" name="shape_leng" nillable="true" type="xsd:decimal"/> <xsd:element maxOccurs="1" minOccurs="0" name="shape_area" nillable="true" type="xsd:decimal"/> <xsd:element maxOccurs="1" minOccurs="0" name="geom" nillable="true" type="gml:SurfacePropertyType"/> <xsd:element maxOccurs="1" minOccurs="0" <b>name="typ"* nillable="true" type="xsd:*int*"/> <xsd:element maxOccurs="1" minOccurs="0" <b>name="tst"* nillable="true" type="xsd:*string*"/> </xsd:sequence> </xsd:extension> </xsd:complexContent> </xsd:complexType> <xsd:element name="poly" substitutionGroup="gml:_Feature" type="topp:polyType"/> </xsd:schema> So the XML contains the additional defined attributes. And there might be a way to read that XML, but there needs to be a not that difficult way. *Has anyone an idea, how to read the existing attributes of a wfs layer?* Kind regards, vGIS -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Read-WFS-Layer-attributes-tp5006350.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
