Class RESTCoverage
- java.lang.Object
-
- it.geosolutions.geoserver.rest.decoder.RESTResource
-
- it.geosolutions.geoserver.rest.decoder.RESTCoverage
-
public class RESTCoverage extends RESTResource
Parse Coverages returned as XML REST objects.This is the XML REST representation:
<coverage> <name>sfdem</name> <nativeName>sfdem</nativeName> <namespace> <name>sf</name> <atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geoserver/rest/namespaces/sf.xml" type="application/xml"/> </namespace> <title>sfdem is a Tagged Image File Format with Geographic information</title> <description>Generated from sfdem</description> <keywords> <string>WCS</string> <string>sfdem</string> <string>sfdem</string> </keywords> <nativeCRS class="projected">PROJCS["NAD27 / UTM zone 13N", GEOGCS["NAD27", DATUM["North American Datum 1927", SPHEROID["Clarke 1866", 6378206.4, 294.9786982138982, AUTHORITY["EPSG","7008"]], TOWGS84[-4.2, 135.4, 181.9, 0.0, 0.0, 0.0, 0.0], AUTHORITY["EPSG","6267"]], PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]], UNIT["degree", 0.017453292519943295], AXIS["Geodetic longitude", EAST], AXIS["Geodetic latitude", NORTH], AUTHORITY["EPSG","4267"]], PROJECTION["Transverse_Mercator"], PARAMETER["central_meridian", -105.0], PARAMETER["latitude_of_origin", 0.0], PARAMETER["scale_factor", 0.9996], PARAMETER["false_easting", 500000.0], PARAMETER["false_northing", 0.0], UNIT["m", 1.0], AXIS["Easting", EAST], AXIS["Northing", NORTH], AUTHORITY["EPSG","26713"]]</nativeCRS> <srs>EPSG:26713</srs> <nativeBoundingBox> <minx>589980.0</minx> <maxx>609000.0</maxx> <miny>4913700.0</miny> <maxy>4928010.0</maxy> <crs class="projected">EPSG:26713</crs> </nativeBoundingBox> <latLonBoundingBox> <minx>-103.87108701853181</minx> <maxx>-103.62940739432703</maxx> <miny>44.370187074132616</miny> <maxy>44.5016011535299</maxy> <crs>EPSG:4326</crs> </latLonBoundingBox> <enabled>true</enabled> <metadata> <entry key="dirName">sfdem_sfdem</entry> </metadata> <store class="coverageStore"> <name>sfdem</name> <atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geoserver/rest/workspaces/sf/coveragestores/sfdem.xml" type="application/xml"/> </store> <nativeFormat>GeoTIFF</nativeFormat> <grid dimension="2"> <range> <low>0 0</low> <high>634 477</high> </range> <transform> <scaleX>30.0</scaleX> <scaleY>-30.0</scaleY> <shearX>0.0</shearX> <shearY>0.0</shearY> <translateX>589995.0</translateX> <translateY>4927995.0</translateY> </transform> <crs>EPSG:26713</crs> </grid> <supportedFormats> <string>ARCGRID</string> <string>IMAGEMOSAIC</string> <string>GTOPO30</string> <string>GEOTIFF</string> <string>GIF</string> <string>PNG</string> <string>JPEG</string> <string>TIFF</string> </supportedFormats> <interpolationMethods> <string>nearest neighbor</string> <string>bilinear</string> <string>bicubic</string> </interpolationMethods> <defaultInterpolationMethod>nearest neighbor</defaultInterpolationMethod> <dimensions> <coverageDimension> <name>GRAY_INDEX</name> <description>GridSampleDimension[-9.999999933815813E36,-9.999999933815813E36]</description> <range> <min>-9.999999933815813E36</min> <max>-9.999999933815813E36</max> </range> </coverageDimension> </dimensions> <requestSRS> <string>EPSG:26713</string> </requestSRS> <responseSRS> <string>EPSG:26713</string> </responseSRS> </coverage>- Version:
- $Id: $
- Author:
- etj
-
-
Field Summary
-
Fields inherited from class it.geosolutions.geoserver.rest.decoder.RESTResource
rootElem
-
-
Constructor Summary
Constructors Constructor Description RESTCoverage(RESTResource resource)Constructor for RESTCoverage.RESTCoverage(org.jdom.Element resource)Constructor for RESTCoverage.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RESTCoveragebuild(java.lang.String response)java.util.List<RESTDimensionInfo>getDimensionInfo()getDimensionInfoRESTMetadataListgetMetadataList()getMetadataListjava.lang.StringgetNativeCoverageName()getNativeCoverageNamejava.lang.StringgetNativeCRS()getNativeCRSjava.lang.StringgetNativeFormat()getNativeFormatjava.util.Map<java.lang.String,java.lang.String>getParametersList()Retrieves the list of parameters for this coverage.java.lang.StringgetSRS()getSRSjava.lang.StringtoString()-
Methods inherited from class it.geosolutions.geoserver.rest.decoder.RESTResource
getAbstract, getAttributeList, getCRS, getEncodedAttributeList, getEncodedDimensionsInfoList, getEncodedMetadataLinkInfoList, getKeywords, getLatLonBoundingBox, getMaxX, getMaxY, getMinX, getMinY, getName, getNameSpace, getNativeBoundingBox, getNativeName, getStoreName, getStoreType, getStoreUrl, getTitle
-
-
-
-
Constructor Detail
-
RESTCoverage
public RESTCoverage(org.jdom.Element resource)
Constructor for RESTCoverage.
- Parameters:
resource- aElementobject.
-
RESTCoverage
public RESTCoverage(RESTResource resource)
Constructor for RESTCoverage.
- Parameters:
resource- aRESTResourceobject.
-
-
Method Detail
-
build
public static RESTCoverage build(java.lang.String response)
-
getNativeCoverageName
public java.lang.String getNativeCoverageName()
getNativeCoverageName
- Returns:
- a
Stringobject.
-
getNativeFormat
public java.lang.String getNativeFormat()
getNativeFormat
- Returns:
- a
Stringobject.
-
getNativeCRS
public java.lang.String getNativeCRS()
getNativeCRS
- Overrides:
getNativeCRSin classRESTResource- Returns:
- a
Stringobject.
-
getSRS
public java.lang.String getSRS()
getSRS
- Returns:
- a
Stringobject.
-
getMetadataList
public RESTMetadataList getMetadataList()
getMetadataList
- Returns:
- a
RESTMetadataListobject.
-
getDimensionInfo
public java.util.List<RESTDimensionInfo> getDimensionInfo()
getDimensionInfo
- Returns:
- a
Listobject.
-
getParametersList
public java.util.Map<java.lang.String,java.lang.String> getParametersList()
Retrieves the list of parameters for this coverage.- Returns:
- a
Mapwhere the key is the name for the parameter and the value is the value for the parameter.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-