Hi , it’s my first message her, and my english is not excellent !
I try to put 1600 raster (Geotiff) in geoserver , i create my workspace “landsat” , i activate the wcs protocol in my workspace “landsat” .
and my goal it’s to obtain this group of raster with the WCS protocol.
When i transmit to the rest protocol :
for the coverastore
curl -u admin:admin -v -XPOST -H ‘Content-type: text/xml’ -d ‘landsat_L930362_20090213_L7_200_030_USGS_surf_pente_30 truelandsatGeoTIFF file:/mnt/data/IMAGES_BD_POSTGIS/2013-02-20/Traitement_1/L930362_20090213_L7_200_030_USGS_surf_pente_30m.tif ’ http://venuscalc.cesbio.cnes.fr:8080/geoserver/rest/workspaces/landsat/coveragestores
and for the coverage:
curl -u admin:admin -v -XPOST -H ‘Content-type: text/xml’ -d ‘landsat_L930362_20090213_L7_200_030_USGS_surf_pente_30m.tifL930362 2009-02-13 LANDSAT7 200_030Tuile: L930362, Acquisition : 2009-02-13, Satellite : LANDSAT7, Origine : 200_030EPSG:2154’ http://venuscalc.cesbio.cnes.fr:8080/geoserver/rest/workspaces/landsat/coveragestores/landsat_L930362_20090213_L7_200_030_USGS_surf_pente_30/coverages
there are a java exception :
Coverage " Expression properties is undefined on line 2, column 13 in CoverageInfo.ftl. The problematic instruction: ---------- ==> ${properties.name} [on line 2, column 11 in CoverageInfo.ftl] ---------- Java backtrace for programmers: ---------- freemarker.core.InvalidReferenceException: Expression properties is undefined on line 2, column 13 in CoverageInfo.ftl. at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:125) at …
In the file system :
with the demo service :
----> requete WVS get capabilities
response :
…
wcs:ContentMetadatawcs:CoverageOfferingBriefwcs:namelandsat:landsat_L930362_20090213_L7_200_030_USGS_surf_pente_30m.tif</wcs:name>wcs:labelL930362 2009-02-13 LANDSAT7 200_030</wcs:label><wcs:lonLatEnvelope srsName=“urn:ogc:def:crs:OGC:1.3:CRS84”>gml:pos-1.9006115442587834 41.61756233774183</gml:pos>gml:pos-0.4712683021014188 43.046905579899196</gml:pos></wcs:lonLatEnvelope>wcs:keywords/</wcs:CoverageOfferingBrief></wcs:ContentMetadata>
…
----> request WCS Describe coverage
landsat:landsat_L930362_20090213_L7_200_030_USGS_surf_pente_30m.tif
response :
java.io.IOException
null
java.lang.RuntimeException: Unexpected error occurred during describe coverage xml encoding
Unexpected error occurred during describe coverage xml encoding
Error while committing XML elements; specific element was: End(wcs:supportedFormats)
null
When i use directly the web interface and no the Rest protocol
i add a “store” (geotiff) in the “workspace” landsat , and after i publish the layer
→ resquest WCS get capabilities :
…wcs:ContentMetadatawcs:CoverageOfferingBriefwcs:namelandsat:landsat_L930362_20090213_L7_200_030_USGS_surf_pente_30m.tif</wcs:name>wcs:labelL930362 2009-02-13 LANDSAT7 200_030</wcs:label><wcs:lonLatEnvelope srsName=“urn:ogc:def:crs:OGC:1.3:CRS84”>gml:pos-1.9006115442587834 41.61756233774183</gml:pos>gml:pos-0.4712683021014188 43.046905579899196</gml:pos></wcs:lonLatEnvelope>wcs:keywords/</wcs:CoverageOfferingBrief>wcs:CoverageOfferingBriefwcs:descriptionGenerated from GeoTIFF</wcs:description>wcs:namelandsat:L930362_20090317_L7_200_030_USGS_surf_pente_30m</wcs:name>wcs:labelL930362_20090317_L7_200_030_USGS_surf_pente_30m</wcs:label><wcs:lonLatEnvelope srsName=“urn:ogc:def:crs:OGC:1.3:CRS84”>gml:pos-1.8865983752180249 41.81242083039518</gml:pos>gml:pos-0.4852814711421773 42.85204708724584</gml:pos></wcs:lonLatEnvelope>wcs:keywordswcs:keywordWCS</wcs:keyword>wcs:keywordGeoTIFF</wcs:keyword>wcs:keywordL930362_20090317_L7_200_030_USGS_surf_pente_30m</wcs:keyword></wcs:keywords></wcs:CoverageOfferingBrief></wcs:ContentMetadata>
…
----> request WCS Describe coverage
landsat:L930362_20090317_L7_200_030_USGS_surf_pente_30m
response : no problem :
<wcs:CoverageDescription xsi:schemaLocation=“http://www.opengis.net/wcs http://venuscalc.cesbio.cnes.fr:8080/geoserver/schemas/wcs/1.0.0/describeCoverage.xsd” version=“1.0.0”>wcs:CoverageOfferingwcs:descriptionGenerated from GeoTIFF</wcs:description>wcs:namelandsat:L930362_20090317_L7_200_030_USGS_surf_pente_30m</wcs:name>wcs:labelL930362_20090317_L7_200_030_USGS_surf_pente_30m</wcs:label><wcs:lonLatEnvelope srsName=“urn:ogc:def:crs:OGC:1.3:CRS84”>gml:pos-1.8865983752180249 41.81242083039518</gml:pos>gml:pos-0.4852814711421773 42.85204708724584</gml:pos></wcs:lonLatEnvelope>wcs:keywordswcs:keywordWCS</wcs:keyword>wcs:keywordGeoTIFF</wcs:keyword>wcs:keywordL930362_20090317_L7_200_030_USGS_surf_pente_30m</wcs:keyword></wcs:keywords>wcs:domainSetwcs:spatialDomain<gml:Envelope srsName=“EPSG:2154”>gml:pos300060.0 6091230.0</gml:pos>gml:pos410070.0 6201240.0</gml:pos></gml:Envelope><gml:RectifiedGrid dimension=“2” srsName=“EPSG:2154”>gml:limitsgml:GridEnvelopegml:low0 0</gml:low>gml:high3666 3666</gml:high></gml:GridEnvelope></gml:limits>gml:axisNameX</gml:axisName>gml:axisNameY</gml:axisName>gml:origingml:pos300075.0 6201225.0</gml:pos></gml:origin>gml:offsetVector30.0 0.0</gml:offsetVector>gml:offsetVector0.0 -30.0</gml:offsetVector></gml:RectifiedGrid></wcs:spatialDomain></wcs:domainSet>wcs:rangeSetwcs:RangeSetwcs:nameL930362_20090317_L7_200_030_USGS_surf_pente_30m</wcs:name>wcs:labelL930362_20090317_L7_200_030_USGS_surf_pente_30m</wcs:label>wcs:axisDescriptionwcs:AxisDescriptionwcs:nameBand</wcs:name>wcs:labelBand</wcs:label>wcs:valueswcs:intervalwcs:min1</wcs:min>wcs:max6</wcs:max></wcs:interval></wcs:values></wcs:AxisDescription></wcs:axisDescription></wcs:RangeSet></wcs:rangeSet>wcs:supportedCRSs/<wcs:supportedFormats nativeFormat=“GeoTIFF”>wcs:formatsAIG</wcs:formats>wcs:formatsArcGrid</wcs:formats>wcs:formatsDTED</wcs:formats>wcs:formatsEHdr</wcs:formats>wcs:formatsENVIHdr</wcs:formats>wcs:formatsERDASImg</wcs:formats>wcs:formatsGeoTIFF</wcs:formats>wcs:formatsGIF</wcs:formats>wcs:formatsGtopo30</wcs:formats>wcs:formatsImageMosaic</wcs:formats>wcs:formatsImageMosaicJDBC</wcs:formats>wcs:formatsJPEG</wcs:formats>wcs:formatsNITF</wcs:formats>wcs:formatsPNG</wcs:formats>wcs:formatsRPFTOC</wcs:formats>wcs:formatsRST</wcs:formats>wcs:formatsTIFF</wcs:formats></wcs:supportedFormats><wcs:supportedInterpolations default=“nearest neighbor”>wcs:interpolationMethodnearest neighbor</wcs:interpolationMethod>wcs:interpolationMethodbilinear</wcs:interpolationMethod>wcs:interpolationMethodbicubic</wcs:interpolationMethod></wcs:supportedInterpolations></wcs:CoverageOffering></wcs:CoverageDescription>
i dont understand the lost step with my rest method , i try lot of case to create a good wcs with the rest protocol but no good result
Thank you for help
----------------- Geoserver ------------
- 2.2
- f5b5c35076b52d02eb9cca3fa3232bc17b5f6d80
- 19-Sep-2012 18:33
- 8.2 (rev 704570474295e339c08d1ca140d884f23a8a03a3)
Jérôme Cros
CESBIO
18 AVenue E. Belin
31401 Toulouse Cedex 9
France
tel : 05 61 55 85 37
courriel : jerome.cros@anonymised.com