Dear all
I am sure this is a simple problem, but I can't work out how to get the
bounding box of a raster layer through REST.
I tried to mimic the approach used for vector data (see example below), but so
far my attempts have only resulted in minimal data.
Here's the REST call which works for vector data
http://www.aifdr.org:8080/geoserver/rest/workspaces/boundaries/datastores/Province_Boundaries/featuretypes/Province_Boundaries.xml
And here are my attempts for raster data which don't work (although they do
provide some output which I have included below):
http://www.aifdr.org:8080/geoserver/rest/workspaces/hazard/coveragestores/Lembang_Earthquake_Scenario/coveragetypes/Lembang_Earthquake_Scenario.xml
http://www.aifdr.org:8080/geoserver/rest/workspaces/hazard/coveragestores/Lembang_Earthquake_Scenario/coveragestores/Lembang_Earthquake_Scenario.xml
Please help point me to the correct magic.
Cheers and thanks
Ole
PS - the username password on the server above are the GeoServer default, so
you can test the responses yourself.
---------------- Output -----------------------
http://www.aifdr.org:8080/geoserver/rest/workspaces/boundaries/datastores/Province_Boundaries/featuretypes/Province_Boundaries.xml
<featureType>
<name>Province_Boundaries</name>
<nativeName>Province_Boundaries</nativeName>
−
<namespace>
<name>boundaries</name>
<atom:link rel="alternate"
href="http://www.aifdr.org:8080/geoserver/rest/namespaces/boundaries.xml"
type="application/xml"/>
</namespace>
<title>Province_Boundaries</title>
−
<nativeCRS>
GEOGCS["GCS_WGS_1984",
DATUM["D_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>95.05966095200006</minx>
<maxx>141.00538235200008</maxx>
<miny>-10.99740996099996</miny>
<maxy>5.906883970000024</maxy>
<crs>EPSG:4326</crs>
</nativeBoundingBox>
−
<latLonBoundingBox>
<minx>95.05966095200006</minx>
<maxx>141.00538235200008</maxx>
<miny>-10.99740996099996</miny>
<maxy>5.906883970000024</maxy>
<crs>EPSG:4326</crs>
</latLonBoundingBox>
<projectionPolicy>NONE</projectionPolicy>
<enabled>true</enabled>
−
<store class="dataStore">
<name>Province_Boundaries</name>
<atom:link rel="alternate"
href="http://www.aifdr.org:8080/geoserver/rest/workspaces/boundaries/datastores/Province_Boundaries.xml"
type="application/xml"/>
</store>
<maxFeatures>0</maxFeatures>
<numDecimals>0</numDecimals>
</featureType>
----------------------------------------------------------------------------------
http://www.aifdr.org:8080/geoserver/rest/workspaces/hazard/coveragestores/Lembang_Earthquake_Scenario/coveragetypes/Lembang_Earthquake_Scenario.xml
<coverageStore>
<name>Lembang_Earthquake_Scenario</name>
<type>GeoTIFF</type>
<enabled>true</enabled>
−
<workspace>
<name>hazard</name>
<atom:link rel="alternate"
href="http://www.aifdr.org:8080/geoserver/rest/workspaces/hazard.xml"
type="application/xml"/>
</workspace>
−
<url>
file:data/Lembang_Earthquake_Scenario/Lembang_Earthquake_Scenario.geotiff
</url>
−
<coverages>
<atom:link rel="alternate"
href="http://www.aifdr.org:8080/geoserver/rest/workspaces/hazard/coveragestores/Lembang_Earthquake_Scenario/coveragetypes/Lembang_Earthquake_Scenario/coverages.xml"
type="application/xml"/>
</coverages>
</coverageStore>
----------------------------------------------------------------------------------
http://www.aifdr.org:8080/geoserver/rest/workspaces/hazard/coveragestores/Lembang_Earthquake_Scenario/coveragestores/Lembang_Earthquake_Scenario.xml
<coverages>
−
<coverage>
<name>Lembang_Earthquake_Scenario</name>
<atom:link rel="alternate"
href="http://www.aifdr.org:8080/geoserver/rest/workspaces/hazard/coveragestores/Lembang_Earthquake_Scenario/coveragestores/Lembang_Earthquake_Scenario/Lembang_Earthquake_Scenario.xml"
type="application/xml"/>
</coverage>
</coverages>
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users