public class RESTFeatureType extends RESTResource
This is the XML REST representation:
<featureType>
<name>tasmania_cities</name>
<nativeName>tasmania_cities</nativeName>
<namespace>
<name>topp</name>
<atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geoserver/rest/namespaces/topp.xml" type="application/xml"/>
</namespace>
<title>Tasmania cities</title>
<abstract>Cities in Tasmania (actually, just the capital)</abstract>
<keywords>
<string>cities</string>
<string>Tasmania</string>
</keywords>
<nativeCRS>GEOGCS["GCS_WGS_1984",
DATUM["WGS_1984",
SPHEROID["WGS_1984", 6378137.0, 298.257223563]],
PRIMEM["Greenwich", 0.0],
UNIT["degree", 0.017453292519943295],
AXIS["Longitude", EAST],
AXIS["Latitude", NORTH]]</nativeCRS>
<srs>EPSG:4326</srs>
<nativeBoundingBox>
<minx>147.2910004483</minx>
<maxx>147.2910004483</maxx>
<miny>-42.851001816890005</miny>
<maxy>-42.851001816890005</maxy>
<crs>EPSG:4326</crs>
</nativeBoundingBox>
<latLonBoundingBox>
<minx>145.19754</minx>
<maxx>148.27298000000002</maxx>
<miny>-43.423512</miny>
<maxy>-40.852802</maxy>
<crs>EPSG:4326</crs>
</latLonBoundingBox>
<projectionPolicy>FORCE_DECLARED</projectionPolicy>
<enabled>true</enabled>
<metadata>
<entry key="cacheAgeMax">3600</entry>
<entry key="indexingEnabled">false</entry>
<entry key="kml.regionateFeatureLimit">10</entry>
<entry key="cachingEnabled">true</entry>
<entry key="dirName">tasmania_cities</entry>
</metadata>
<store class="dataStore">
<name>taz_shapes</name>
<atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geoserver/rest/workspaces/topp/datastores/taz_shapes.xml" type="application/xml"/>
</store>
<attributes>
<attribute>
<name>the_geom</name>
<minOccurs>0</minOccurs>
<maxOccurs>1</maxOccurs>
<nillable>false</nillable>
</attribute>
<attribute>
<name>CITY_NAME</name>
<minOccurs>0</minOccurs>
<maxOccurs>1</maxOccurs>
<nillable>false</nillable>
</attribute>
<attribute>
<name>ADMIN_NAME</name>
<minOccurs>0</minOccurs>
<maxOccurs>1</maxOccurs>
<nillable>false</nillable>
</attribute>
<attribute>
<name>CNTRY_NAME</name>
<minOccurs>0</minOccurs>
<maxOccurs>1</maxOccurs>
<nillable>false</nillable>
</attribute>
<attribute>
<name>STATUS</name>
<minOccurs>0</minOccurs>
<maxOccurs>1</maxOccurs>
<nillable>false</nillable>
</attribute>
<attribute>
<name>POP_CLASS</name>
<minOccurs>0</minOccurs>
<maxOccurs>1</maxOccurs>
<nillable>false</nillable>
</attribute>
</attributes>
<maxFeatures>0</maxFeatures>
<numDecimals>0</numDecimals>
</featureType>
| Modifier and Type | Class and Description |
|---|---|
static class |
RESTFeatureType.Attribute |
rootElem| Constructor and Description |
|---|
RESTFeatureType(org.jdom.Element resource) |
RESTFeatureType(RESTResource resource) |
| Modifier and Type | Method and Description |
|---|---|
Iterator<RESTFeatureType.Attribute> |
attributesIterator() |
static RESTFeatureType |
build(String response) |
List<Map<FeatureTypeAttribute,String>> |
getAttributeList() |
Iterable<RESTFeatureType.Attribute> |
getAttributes()
Get the URL to retrieve the featuretype.
|
List<GSAttributeEncoder> |
getEncodedAttributeList() |
getAbstract, getCRS, getEncodedDimensionsInfoList, getEncodedMetadataLinkInfoList, getKeywords, getLatLonBoundingBox, getMaxX, getMaxY, getMinX, getMinY, getName, getNameSpace, getNativeBoundingBox, getNativeCRS, getNativeName, getStoreName, getStoreType, getStoreUrl, getTitlepublic RESTFeatureType(org.jdom.Element resource)
public RESTFeatureType(RESTResource resource)
public static RESTFeatureType build(String response)
public Iterable<RESTFeatureType.Attribute> getAttributes()
<resource class="featureType">
<name>tasmania_cities</name>
<atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geoserver/rest/workspaces/topp/datastores/taz_shapes/featuretypes/tasmania_cities.xml" type="application/xml"/>
</resource>
public Iterator<RESTFeatureType.Attribute> attributesIterator()
public List<Map<FeatureTypeAttribute,String>> getAttributeList()
getAttributeList in class RESTResourcepublic List<GSAttributeEncoder> getEncodedAttributeList()
getEncodedAttributeList in class RESTResourceCopyright © 2007–2016 PDOK. All rights reserved.