Hi Simone and Andrea,
We had the image mosaic working for Tiffs on a network drive using absolute UNC paths inside the mosaic.SHP DBF, which was on a local drive. However, this no longer seems to work on 1.7.5 (we skipped 1.7.4).
Turning full debugging on, I see this inside the trace (full trace below)
2009-06-12 10:29:36,077 INFO [gce.imagemosai] - Unable to read image for file D:\GeoServer_Coverages\NAIP_2008\Ogisrv103\ogisrv103_F\GeoServer_Coverages\NAIP_2008_2\QQTile2249.tif
2009-06-12 10:29:36,077 DEBUG [gce.imagemosai] - About to read image number 0
2009-06-12 10:29:36,077 INFO [gce.imagemosai] - Unable to read image for file D:\GeoServer_Coverages\NAIP_2008\Ogisrv103\ogisrv103_F\GeoServer_Coverages\NAIP_2008_2\QQTile2254.tif
2009-06-12 10:29:36,077 DEBUG [gce.imagemosai] - About to read image number 0
The actual UNC path to the Tiffs should be just:
\Ogisrv103\ogisrv103_F\GeoServer_Coverages\NAIP_2008_2\QQTile2249.tif
Not with
D:\GeoServer_Coverages\NAIP_2008\
prepended (which is the path to the mosaic SHP file itself, which is on a local drive)
I know this may seem peculiar, but was the only way to get UNC paths working on 1.7.3.
To me it looks like the mosaic code is thinking the UNC path is a relative path, relative to the mosaic.shp file rather than an absolute path. Any suggestions to get UNC paths working again? We have to use UNC, because Windows will not use mapped drive letters if GeoServer is running as a Windows service, which it is.
I would really like to try the new “Point at the directory where the Tiffs are” functionality, but unfortunately, the Tiffs are in a Read Only directory, and the mosaic.SHP cannot be created this way.
Thanks in advance,
Roger
2009-06-12 10:29:32,889 DEBUG [geotools.rendering] - Transforming coverage envelope with transform PARAM_MT[“Affine”,
PARAMETER[“num_row”, 3],
PARAMETER[“num_col”, 3]]
2009-06-12 10:29:32,889 DEBUG [geotools.rendering] - Using interpolation javax.media.jai.InterpolationBilinear@anonymised.com
2009-06-12 10:29:32,889 DEBUG [geotools.rendering] - Raster Symbolizer
2009-06-12 10:29:32,889 DEBUG [geotools.rendering] - Raster Symbolizer
2009-06-12 10:29:32,889 DEBUG [geotools.rendering] - clonedFinalWorldToGrid AffineTransform[[1.0, 0.0, 0.0], [-0.0, 1.0, 0.0]]
2009-06-12 10:29:32,889 DEBUG [geotools.rendering] - Raster rendered
2009-06-12 10:29:32,889 DEBUG [geotools.rendering] - Style cache hit ratio: NaN , hits 0, requests 0
2009-06-12 10:29:32,889 DEBUG [renderer.shape] - Style cache hit ratio: NaN , hits 0, requests 0
2009-06-12 10:29:32,889 DEBUG [wms.responses] - asking delegate for write to org.geoserver.ows.DispatcherOutputStream@anonymised.com
2009-06-12 10:29:32,905 DEBUG [geotools.image] - Encoding input image to write out as JPEG.
2009-06-12 10:29:32,905 DEBUG [geotools.image] - Getting a JPEG writer and configuring it.
2009-06-12 10:29:32,905 DEBUG [geotools.image] - Writing out…
2009-06-12 10:29:36,077 DEBUG [geoserver.filters] - filtering http://ogi.state.ok.us/geoserver/wms
2009-06-12 10:29:36,077 DEBUG [geoserver.global] - getting coverage ogi:NAIP2008
2009-06-12 10:29:36,077 DEBUG [geoserver.ows] - Getting layers and styles from LAYERS and STYLES
2009-06-12 10:29:36,077 DEBUG [geoserver.ows] - establishing Raster style for ogi:NAIP2008
2009-06-12 10:29:36,077 DEBUG [wms.responses] - setting up map
2009-06-12 10:29:36,077 DEBUG [wms.map] - setting up 800x569 image
2009-06-12 10:29:36,077 DEBUG [geotools.styling] - number of fts set 1
2009-06-12 10:29:36,077 DEBUG [renderer.shape] - Affine Transform is AffineTransform[[8904.820061500466, 0.0, 868279.7670205899], [0.0, -8904.82006150055, 316375.36584907974]]
2009-06-12 10:29:36,077 DEBUG [geotools.styling] - number of fts set 1
2009-06-12 10:29:36,077 DEBUG [geotools.rendering] - processing 1 stylers for http://www.opengis.net/gmlGridCoverage
2009-06-12 10:29:36,077 DEBUG [geotools.rendering] - creating rules for scale denominator - 44,646.563
2009-06-12 10:29:36,077 DEBUG [geotools.rendering] - added attribute grid
2009-06-12 10:29:36,077 DEBUG [geotools.rendering] - added attribute params
2009-06-12 10:29:36,077 DEBUG [geotools.rendering] - Querying layer GridCoverage with bbox: ReferencedEnvelope[-97.50671670217717 : -97.41687771672044, 35.4646543858252 : 35.5285523642313]
2009-06-12 10:29:36,077 DEBUG [geotools.rendering] - rendering Raster for feature org.geotools.feature.simple.SimpleFeatureImpl@anonymised.com - org.geotools.gce.imagemosaic.ImageMosaicReader@anonymised.com
2009-06-12 10:29:36,077 DEBUG [gce.imagemosai] - Reading mosaic from file:/D:/GeoServer_Coverages/NAIP_2008/mosaic.shp
2009-06-12 10:29:36,077 DEBUG [gce.imagemosai] - Highest res 8.998230948E-6 8.998230948E-6
2009-06-12 10:29:36,077 DEBUG [gce.imagemosai] - Adjusted Requested Envelope = ReferencedEnvelope[-97.50671670217717 : -97.41687771672044, 35.4646543858252 : 35.5285523642313]
Requested raster dimension = java.awt.Rectangle[x=0,y=0,width=800,height=569]
Corresponding raster source region = java.awt.Rectangle[x=0,y=0,width=800,height=569]
2009-06-12 10:29:36,077 DEBUG [gce.imagemosai] - Loading level 4 with subsampling factors 1 1
2009-06-12 10:29:36,077 DEBUG [gce.imagemosai] - Index does not need to be created…
2009-06-12 10:29:36,077 DEBUG [gce.imagemosai] - About to read image number 0
2009-06-12 10:29:36,077 INFO [gce.imagemosai] - Unable to read image for file D:\GeoServer_Coverages\NAIP_2008\Ogisrv103\ogisrv103_F\GeoServer_Coverages\NAIP_2008_2\QQTile2249.tif
2009-06-12 10:29:36,077 DEBUG [gce.imagemosai] - About to read image number 0
2009-06-12 10:29:36,077 INFO [gce.imagemosai] - Unable to read image for file D:\GeoServer_Coverages\NAIP_2008\Ogisrv103\ogisrv103_F\GeoServer_Coverages\NAIP_2008_2\QQTile2254.tif
2009-06-12 10:29:36,077 DEBUG [gce.imagemosai] - About to read image number 0
2009-06-12 10:29:36,077 INFO [gce.imagemosai] - Unable to read image for file D:\GeoServer_Coverages\NAIP_2008\Ogisrv103\ogisrv103_F\GeoServer_Coverages\NAIP_2008_2\QQTile1950.tif
2009-06-12 10:29:36,077 DEBUG [gce.imagemosai] - About to read image number 0
2009-06-12 10:29:36,077 INFO [gce.imagemosai] - Unable to read image for file D:\GeoServer_Coverages\NAIP_2008\Ogisrv103\ogisrv103_F\GeoServer_Coverages\NAIP_2008_2\QQTile1955.tif
2009-06-12 10:29:36,077 DEBUG [gce.imagemosai] - About to read image number 0
2009-06-12 10:29:36,077 INFO [gce.imagemosai] - Unable to read image for file D:\GeoServer_Coverages\NAIP_2008\Ogisrv103\ogisrv103_F\GeoServer_Coverages\NAIP_2008_2\QQTile2260.tif
2009-06-12 10:29:36,077 DEBUG [gce.imagemosai] - About to read image number 0
2009-06-12 10:29:36,077 INFO [gce.imagemosai] - Unable to read image for file D:\GeoServer_Coverages\NAIP_2008\Ogisrv103\ogisrv103_F\GeoServer_Coverages\NAIP_2008_2\QQTile1961.tif
2009-06-12 10:29:36,077 DEBUG [gce.imagemosai] - Unable to load any granule
2009-06-12 10:29:36,077 DEBUG [geotools.rendering] - Drawing coverage GridCoverage2D[“Pilot_Mosaic”, GeneralEnvelope[(-97.50671670217717, 35.4646543858252), (-97.41687771672044, 35.5285523642313)], DefaultGeographicCRS[“WGS 84”]]
? RenderedSampleDimension(“Pilot_Mosaic”:[0.0 … 255.0])
? ? Category(“Pilot_Mosaic”:[0…255])
? Image=RenderedOp[“Constant”] as views [NATIVE, PACKED, RENDERED, GEOPHYSICS, PHOTOGRAPHIC]
2009-06-12 10:29:36,077 DEBUG [geotools.rendering] - Transforming coverage envelope with transform PARAM_MT[“Affine”,
PARAMETER[“num_row”, 3],
PARAMETER[“num_col”, 3]]
2009-06-12 10:29:36,077 DEBUG [geotools.rendering] - Using interpolation javax.media.jai.InterpolationBilinear@anonymised.com
2009-06-12 10:29:36,077 DEBUG [geotools.rendering] - Raster Symbolizer
2009-06-12 10:29:36,077 DEBUG [geotools.rendering] - Raster Symbolizer
2009-06-12 10:29:36,092 DEBUG [geotools.rendering] - clonedFinalWorldToGrid AffineTransform[[1.0, 0.0, 0.0], [-0.0, 1.0, 5.8208E-11]]
2009-06-12 10:29:36,092 DEBUG [geotools.rendering] - Raster rendered
2009-06-12 10:29:36,092 DEBUG [geotools.rendering] - Style cache hit ratio: NaN , hits 0, requests 0
2009-06-12 10:29:36,092 DEBUG [renderer.shape] - Style cache hit ratio: NaN , hits 0, requests 0
2009-06-12 10:29:36,092 DEBUG [wms.responses] - asking delegate for write to org.geoserver.ows.DispatcherOutputStream@anonymised.com
2009-06-12 10:29:36,092 DEBUG [geotools.image] - Encoding input image to write out as JPEG.
2009-06-12 10:29:36,092 DEBUG [geotools.image] - Getting a JPEG writer and configuring it.
2009-06-12 10:29:36,092 DEBUG [geotools.image] - Writing out…