Hi all,
currently it's not possible to create a mosaic (using a Pgis datastore) in
a schema containing tables without 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 (it 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).

-- 
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==

Dott. Carlo Cancellieri
@cancellieric
Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
mobile: +39 3371094494
fax:   +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
------------------------------------------------------------------------------
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=60134071&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