Issue Type: Bug Bug
Assignee: Unassigned
Components: imagemosaic plugin
Created: 16/Oct/13 6:42 AM
Description:

Currently it's not possible to create a mosaic (i'm using a Pgis datastore) in a schema containing other tables with no geometries.

The result is a NullPointer here:

/modules/plugin/imagemosaic/src/main/java/org/geotools/gce/imagemosaic/catalog/GTDataStoreGranuleCatalog.java
@@ -257,7 +257,7 @@ class GTDataStoreGranuleCatalog extends GranuleCatalog {

The exception is eat and the returned error is something like:

Could not list layers for this store, an error occurred retrieving them: Unable to create a GridCoverageReader for file:/usr/local/data/geoData/tech-cdr/GAEZ/mosaic/new_tiff

To solve this I'm trying to set the TypeNames parameter as false but it is always forced to true (forcing scan of all the typeNames in a database schema) here:

/modules/plugin/imagemosaic/src/main/java/org/geotools/gce/imagemosaic/ImageMosaicReader.java
@@ -324,8 +324,12 @@ public class ImageMosaicReader extends

The pull req to solve this is here:
https://github.com/geotools/geotools/pull/290

This will consider the parameter TypeNames=false (if it is set into the datastore.properties) ignoring other typeNames when configuring (and reloading) a mosaic (and apply a check for existing geometries to avoid null pointer exception).

Project: GeoTools
Priority: Major Major
Reporter: Carlo Cancellieri
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to