Hey!

I was building a mosaic index on a fairly large tiff collection and the
progress was not "linear". It seemed as if the more files get added to the
index, the slower the process became. So i did some profiling and the
profiler pointed out that the majority of time was being spent in the
CatalogManager.updateCatalog, specifically this part of the code:

// drop all the granules associated to the same         
Filter filter = Utils.FF.equal(Utils.FF.property(locationAttribute),
Utils.FF.literal(fileLocation), 
        !isCaseSensitiveFileSystem(fileBeingProcessed));
store.removeGranules(filter);

I did not have time to investigate further, so if anyone here knows why do
we have to remove the granules for every file added, please explain.

I also compiled a version with these lines commented out and the generated
mosaic was correct (and done much much faster).

I was testing this on geotools 14.3.

Cheers!



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/slow-mosaic-index-builder-tp5279228.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to