Hi,

in the context of georchestra, using geoserver 2.1.3/geotools 2.7.4 and 
geosource trunk with tomcat 6 i'm trying to make the geopublish feature 
from geosource to push ecw files (through REST) to geoserver. I've fixed 
various issues on the geosource/geonetwork side, but i'm facing a 
usecase that puzzles me:
- manually uploading the ecw/prj file to geoserver dir, and creating an 
ecw store from it works fine. The layer projection is correctly taken 
from the .prj file.
- uploading a zip containing a geotiff file correctly creates a tiff 
store with a correct projection
- uploading a zip (via REST/geosource) containing an ecw file (along 
correctly named .eww/.prj files) creates an ecw store, but the 
projection is not set. (I've also tried with .ecw.aux and .ecw.aux.xml 
files..) I've added some debug code to 
src/restconfig/src/main/java/org/geoserver/catalog/rest/CoverageStoreFileResource.java:165
 


LOGGER.info(" coverage store " + coveragestore + " has CRS " + 
cinfo.getSRS());

which gives me in the log :
INFO [catalog.rest] -  coverage store 7147-64377 has CRS null

so the determined CRS is not even UNKNOWN, just unset. To 'fix' it i 
need to go into geosource on the layer page and manually force the 
declared CRS, but this is not an option for my end users who should just 
see the geopublishing from geosource. I'm also confused by the CRS/SRS 
difference..

Btw, i have the tomcat 6 fix for imageio/ecw mentioned in 
http://jira.codehaus.org/browse/GEOS-4994 - this works fine for manually 
configured ecw stores.

several questions :
- did anyone try to REST-upload a zip containing an ecw file and got a 
correctly detected layer projection ? To me it's impossible to embed the 
projection directly in the ecw file so we need additional files for that..
- where should i add debug configuration to pinpoint where the 
projection is read, and from which file ? From my understanding for ecw 
files this is done in geotools.. or in imageio-ext (maybe 
geotools/modules/plugin/imageio-ext-gdal/src/main/java/org/geotools/coverageio/gdal/)
 
? Using strace, i've seen geoserver looking for .eww, .hdr, .prj and 
.aux. It's not really obvious how should i proceed to make geotools more 
verbose inside geoserver..
- what additional informations should i provide to debug this issue ?

Thanks!
-- 
Landry Breuil


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to