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 
'<coverageStore><name>landsat_L930362_20090213_L7_200_030_USGS_surf_pente_30</name>
 
<enabled>true</enabled><workspace><name>landsat</name></workspace><type>GeoTIFF</type>
 
<url>file:/mnt/data/IMAGES_BD_POSTGIS/2013-02-20/Traitement_1/L930362_20090213_L7_200_030_USGS_surf_pente_30m.tif</url>
 </coverageStore>' 
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 
'<coverage><name>landsat_L930362_20090213_L7_200_030_USGS_surf_pente_30m.tif</name><title>L930362
 2009-02-13 LANDSAT7 200_030</title><abstract>Tuile: L930362, Acquisition : 
2009-02-13, Satellite : LANDSAT7, Origine : 
200_030</abstract><srs>EPSG:2154</srs></coverage>' 
http://venuscalc.cesbio.cnes.fr:8080/geoserver/rest/workspaces/landsat/coveragestores/landsat_L930362_20090213_L7_200_030_USGS_surf_pente_30/coverages
 

when i acces to : 
http://venuscalc.cesbio.cnes.fr:8080/geoserver/rest/workspaces/landsat/coveragestores/landsat_L930362_20090213_L7_200_030_USGS_surf_pente_30/coveragestores/landsat_L930362_20090213_L7_200_030_USGS_surf_pente_30m.tif.html
 

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:ContentMetadata><wcs:CoverageOfferingBrief><wcs:name>landsat:landsat_L930362_20090213_L7_200_030_USGS_surf_pente_30m.tif</wcs:name><wcs:label>L930362
 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 

< DescribeCoverage 
version = "1.0.0" 
service = "WCS" 
xmlns = "http://www.opengis.net/wcs"; 
xmlns:nurc = "http://www.nurc.nato.int"; 
xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation = "http://www.opengis.net/wcs 
http://schemas.opengis.net/wcs/1.0.0/describeCoverage.xsd"; > 

< Coverage > 
landsat:landsat_L930362_20090213_L7_200_030_USGS_surf_pente_30m.tif </ Coverage 
> 

</ DescribeCoverage > 


response : 

<ServiceExceptionReport version="1.2.0"><ServiceException> 
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 
</ServiceException></ServiceExceptionReport> 





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:ContentMetadata><wcs:CoverageOfferingBrief><wcs:name>landsat:landsat_L930362_20090213_L7_200_030_USGS_surf_pente_30m.tif</wcs:name><wcs:label>L930362
 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:CoverageOfferingBrief><wcs:description>Generated
 from 
GeoTIFF</wcs:description><wcs:name>landsat:L930362_20090317_L7_200_030_USGS_surf_pente_30m</wcs:name><wcs:label>L930362_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:keywords><wcs:keyword>WCS</wcs:keyword><wcs:keyword>GeoTIFF</wcs:keyword><wcs:keyword>L930362_20090317_L7_200_030_USGS_surf_pente_30m</wcs:keyword></wcs:keywords></wcs:CoverageOfferingBrief></wcs:ContentMetadata>
 
... 

----> request WCS Describe coverage 

< DescribeCoverage 
version = "1.0.0" 
service = "WCS" 
xmlns = "http://www.opengis.net/wcs"; 
xmlns:nurc = "http://www.nurc.nato.int"; 
xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation = "http://www.opengis.net/wcs 
http://schemas.opengis.net/wcs/1.0.0/describeCoverage.xsd"; > 

< Coverage > landsat:L930362_20090317_L7_200_030_USGS_surf_pente_30m</ Coverage 
> 

</ DescribeCoverage > 


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:CoverageOffering><wcs:description>Generated from 
GeoTIFF</wcs:description><wcs:name>landsat:L930362_20090317_L7_200_030_USGS_surf_pente_30m</wcs:name><wcs:label>L930362_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:keywords><wcs:keyword>WCS</wcs:keyword><wcs:keyword>GeoTIFF</wcs:keyword><wcs:keyword>L930362_20090317_L7_200_030_USGS_surf_pente_30m</wcs:keyword></wcs:keywords><wcs:domainSet><wcs:spatialDomain><gml:Envelope
 srsName="EPSG:2154"><gml:pos>300060.0 6091230.0</gml:pos><gml:pos>410070.0 
6201240.0</gml:pos></gml:Envelope><gml:RectifiedGrid dimension="2" 
srsName="EPSG:2154"><gml:limits><gml:GridEnvelope><gml:low>0 
0</gml:low><gml:high>3666 
3666</gml:high></gml:GridEnvelope></gml:limits><gml:axisName>X</gml:axisName><gml:axisName>Y</gml:axisName><gml:origin><gml:pos>300075.0
 6201225.0</gml:pos></gml:origin><gml:offsetVector>30.0 
0.0</gml:offsetVector><gml:offsetVector>0.0 
-30.0</gml:offsetVector></gml:RectifiedGrid></wcs:spatialDomain></wcs:domainSet><wcs:rangeSet><wcs:RangeSet><wcs:name>L930362_20090317_L7_200_030_USGS_surf_pente_30m</wcs:name><wcs:label>L930362_20090317_L7_200_030_USGS_surf_pente_30m</wcs:label><wcs:axisDescription><wcs:AxisDescription><wcs:name>Band</wcs:name><wcs:label>Band</wcs:label><wcs:values><wcs:interval><wcs:min>1</wcs:min><wcs:max>6</wcs:max></wcs:interval></wcs:values></wcs:AxisDescription></wcs:axisDescription></wcs:RangeSet></wcs:rangeSet><wcs:supportedCRSs/><wcs:supportedFormats
 
nativeFormat="GeoTIFF"><wcs:formats>AIG</wcs:formats><wcs:formats>ArcGrid</wcs:formats><wcs:formats>DTED</wcs:formats><wcs:formats>EHdr</wcs:formats><wcs:formats>ENVIHdr</wcs:formats><wcs:formats>ERDASImg</wcs:formats><wcs:formats>GeoTIFF</wcs:formats><wcs:formats>GIF</wcs:formats><wcs:formats>Gtopo30</wcs:formats><wcs:formats>ImageMosaic</wcs:formats><wcs:formats>ImageMosaicJDBC</wcs:formats><wcs:formats>JPEG</wcs:formats><wcs:formats>NITF</wcs:formats><wcs:formats>PNG</wcs:formats><wcs:formats>RPFTOC</wcs:formats><wcs:formats>RST</wcs:formats><wcs:formats>TIFF</wcs:formats></wcs:supportedFormats><wcs:supportedInterpolations
 default="nearest neighbor"><wcs:interpolationMethod>nearest 
neighbor</wcs:interpolationMethod><wcs:interpolationMethod>bilinear</wcs:interpolationMethod><wcs:interpolationMethod>bicubic</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 ------------ 


    * Version 2.2 
    * Git Revision f5b5c35076b52d02eb9cca3fa3232bc17b5f6d80 
    * Build Date 19-Sep-2012 18:33 
    * GeoTools Version 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 : [email protected] 

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to