Hi,
I upgraded from GS 2.0.2 to GS 2.1-beta2 and most went smooth.
Environment: Ubuntu 9.10 32b, Sun JDK 1.6_22, JAI+ImageIO, Tomcat
6.0.29, no Gdal bindings.
Only had 2 issues when adding/using the ImageMosaic Store. Source data
are directories of GeoTiffs preworked with gdal_translate and gdaladdo
(not gdaltindex). The GeoTiffs are aligned historic topomaps (100s)
divided over periods of time using directories per period with softlinks
(ln -s) to the originals. Adding a IM Store was working in 2.0.2,
though there had issue (2) below. Issue (2) I could resolve, issue (1)
partly by making regular copies (cp) i.s.o. softlinks. So what remains
is my request to support softlinked files in the ImageMosaic plugin.
Details below.
1) errors adding the ImageMosaic store
06 Dec 23:12:12 ERROR [imagemosaic.Utils] - Unable to build mosaic
java.lang.StringIndexOutOfBoundsException: String index out of range: -3
at java.lang.String.substring(String.java:1937)
at java.lang.String.substring(String.java:1904)
at
org.geotools.gce.imagemosaic.catalogbuilder.CatalogBuilder$CatalogBuilderDirectoryWalker.prepareLocation(CatalogBuilder.java:707)
at
org.geotools.gce.imagemosaic.catalogbuilder.CatalogBuilder$CatalogBuilderDirectoryWalker.handleFile(CatalogBuilder.java:634)
at org.apache.commons.io.DirectoryWalker.walk(DirectoryWalker.java:367)
at org.apache.commons.io.DirectoryWalker.walk(DirectoryWalker.java:335)
at
org.geotools.gce.imagemosaic.catalogbuilder.CatalogBuilder$CatalogBuilderDirectoryWalker.<init>(CatalogBuilder.java:736)
at
org.geotools.gce.imagemosaic.catalogbuilder.CatalogBuilder.run(CatalogBuilder.java:966)
at org.geotools.gce.imagemosaic.Utils.createMosaic(Utils.java:296)
at org.geotools.gce.imagemosaic.Utils.checkSource(Utils.java:1323)
at
org.geotools.gce.imagemosaic.ImageMosaicReader.initReaderFromURL(ImageMosaicReader.java:228)
at
org.geotools.gce.imagemosaic.ImageMosaicReader.<init>(ImageMosaicReader.java:192)
and
06 Dec 23:12:12 WARN [imagemosaic.ImageMosaicFormat] - This plugin
accepts File, URL or String. The string may describe a File or an URL
org.geotools.data.DataSourceException: This plugin accepts File, URL or
String. The string may describe a File or an URL
at
org.geotools.gce.imagemosaic.ImageMosaicReader.initReaderFromURL(ImageMosaicReader.java:230)
at
org.geotools.gce.imagemosaic.ImageMosaicReader.<init>(ImageMosaicReader.java:192)
at
org.geotools.gce.imagemosaic.ImageMosaicFormat.getReader(ImageMosaicFormat.java:456)
at
org.geotools.gce.imagemosaic.ImageMosaicFormat.getReader(ImageMosaicFormat.java:104)
at
org.geoserver.catalog.ResourcePool.getGridCoverageReader(ResourcePool.java:975)
and
06 Dec 23:12:12 INFO [geoserver.web] - Getting list of coverages for
saved store file:/var/kademo/data/bonne/tiffperiod/1926-1949
java.lang.RuntimeException: Could not list layers for this store, an
error occurred retrieving them: Unable to acquire a reader for this
coverage with format: ImageMosaic
at
org.geoserver.web.data.layer.NewLayerPageProvider.getItems(NewLayerPageProvider.java:119)
at
org.geoserver.web.wicket.GeoServerDataProvider.getFilteredItems(GeoServerDataProvider.java:201)
at
org.geoserver.web.data.layer.NewLayerPageProvider.getFilteredItems(NewLayerPageProvider.java:135)
at
org.geoserver.web.wicket.GeoServerDataProvider.size(GeoServerDataProvider.java:216)
at
org.geoserver.web.wicket.GeoServerTablePanel$Pager.first(GeoServerTablePanel.java:502)
at
org.geoserver.web.wicket.GeoServerTablePanel$Pager.updateMatched(GeoServerTablePanel.java:492)
at
org.geoserver.web.wicket.GeoServerTablePanel$Pager.<init>(GeoServerTablePanel.java:467)
at
org.geoserver.web.wicket.GeoServerTablePanel.<init>(GeoServerTablePanel.java:195)
at
org.geoserver.web.wicket.GeoServerTablePanel.<init>(GeoServerTablePanel.java:86)
First thought it was this issue/solution:
http://geo-solutions.blogspot.com/2010/05/fix-geotools-and-geoserver-not-able-to.html
and set JreMemoryLeakPreventionListener attribute appContextProtection
to "false" in Tomcat's server.xml configuration.
But the real issue appeared that the ImageMosaic plugin was not able to
use (soft)linked files. This was working in GS 2.0.2.
2) problem: Exceptions: "Too many open files" when reading layer
set JAI_IMAGE_READ to false for layer
solution:
http://www.mail-archive.com/[email protected]/msg00017.html
thanks,
Just van den Broecke
www.justobjects.nl
------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users