it.geosolutions.geoserver.rest.decoder
Class RESTStructuredCoverageGranulesList
java.lang.Object
it.geosolutions.geoserver.rest.decoder.RESTStructuredCoverageGranulesList
- All Implemented Interfaces:
- Iterable<RESTStructuredCoverageGranulesList.RESTStructuredCoverageGranule>
public class RESTStructuredCoverageGranulesList
- extends Object
- implements Iterable<RESTStructuredCoverageGranulesList.RESTStructuredCoverageGranule>
This decode turns index format for a GeoServer StructuredGridCoverageReader into something
useful, giving access to the definition of the single attributes.
This is the XML REST representation:
<?xml version="1.0" encoding="UTF-8"?>
<wfs:FeatureCollection xmlns:gf="http://www.geoserver.org/rest/granules" xmlns:ogc="http://www.opengis.net/ogc" xmlns:wfs="http://www.opengis.net/wfs" xmlns:gml="http://www.opengis.net/gml">
<gml:boundedBy>
<gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
<gml:coord>
<gml:X>5.0</gml:X>
<gml:Y>45.0</gml:Y>
</gml:coord>
<gml:coord>
<gml:X>14.875</gml:X>
<gml:Y>50.9375</gml:Y>
</gml:coord>
</gml:Box>
</gml:boundedBy>
<gml:featureMember>
<gf:V fid="V.337">
<gf:the_geom>
<gml:Polygon>
<gml:outerBoundaryIs>
<gml:LinearRing>
<gml:coordinates>5.0,45.0 5.0,50.9375 14.875,50.9375 14.875,45.0 5.0,45.0</gml:coordinates>
</gml:LinearRing>
</gml:outerBoundaryIs>
</gml:Polygon>
</gf:the_geom>
<gf:location>..\\polyphemus\\polyphemus_20130302.nc</gf:location>
<gf:imageindex>672</gf:imageindex>
<gf:time>2013-03-01T23:00:00Z</gf:time>
<gf:elevation>10.0</gf:elevation>
<gf:fileDate>2013-03-01T23:00:00Z</gf:fileDate>
<gf:updated>2013-04-08T05:40:29.061Z</gf:updated>
</gf:V>
</gml:featureMember>
</wfs:FeatureCollection>
- Author:
- Simone Giannecchini, GeoSolutions SAS
RESTStructuredCoverageGranulesList
protected RESTStructuredCoverageGranulesList(org.jdom.Element featureCollection)
- Parameters:
list -
getBbox
public org.jdom.Element getBbox()
- Returns:
- the bbox
build
public static RESTStructuredCoverageGranulesList build(String response)
size
public int size()
isEmpty
public boolean isEmpty()
get
public RESTStructuredCoverageGranulesList.RESTStructuredCoverageGranule get(int index)
iterator
public Iterator<RESTStructuredCoverageGranulesList.RESTStructuredCoverageGranule> iterator()
- Specified by:
iterator in interface Iterable<RESTStructuredCoverageGranulesList.RESTStructuredCoverageGranule>
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2007-2014 GeoSolutions. All Rights Reserved.