[Geoserver-users] Image Mosaic UNC Paths no longer works going from 1.7.3 to 1.7.5

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…

Ciao Roger,
can you copy and paste the properties files for your mosaic? It looks
like you are missing the AbsolutePath property in property file.

Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

-------------------------------------------------------

On Fri, Jun 12, 2009 at 6:07 PM, Roger Bedell<sylvanascent@anonymised.com> wrote:

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...

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Simone, sorry, I forgot to cc to the list.

Also, a little more information, I rolled back to 1.7.4, and this problem exists there as well. Rolling back to 1.7.3, it all works fine. Also, I tried your fancy new "Automatic mosaic builder" in 1.7.5, and it is fantastic!

Roger
--------------------------------------------------
From: "Roger Bedell" <sylvanascent@anonymised.com>
Sent: Monday, June 15, 2009 6:16 AM
To: "Simone Giannecchini" <simone.giannecchini@anonymised.com>
Subject: Re: [Geoserver-users] Image Mosaic UNC Paths no longer works going from 1.7.3 to 1.7.5

Simone,
Thank you for getting back to me on this. I didn't know the AbsolutePath
property existed. This is what I had:

Name=OK_City_2008_One_Foot_3
Levels=2.6994692844E-06,2.6994692844E-06 5.3989385688E-06,5.3989385688E-06
1.07978771376E-05,1.07978771376E-05 2.15957542752E-05,2.15957542752E-05
4.31915085504E-05,4.31915085504E-05 8.63830171008E-05,8.63830171008E-05
0.0001727660342016,0.0001727660342016
LevelsNum=7
Envelope2D=-97.8125013497346,35.1875005373926 -97.1875005373929,35.8125013497343
NumFiles=84

I changed this to:

Name=OK_City_2008_One_Foot_3
Levels=2.6994692844E-06,2.6994692844E-06 5.3989385688E-06,5.3989385688E-06
1.07978771376E-05,1.07978771376E-05 2.15957542752E-05,2.15957542752E-05
4.31915085504E-05,4.31915085504E-05 8.63830171008E-05,8.63830171008E-05
0.0001727660342016,0.0001727660342016
LevelsNum=7
Envelope2D=-97.8125013497346,35.1875005373926 -97.1875005373929,35.8125013497343
NumFiles=84
AbsolutePath=true

But unfortunately, it still doesn't work. Still getting in the log:

2009-06-14 23:12:25,535 INFO [gce.imagemosai] - Unable to read image for
file
D:\GeoServer_Coverages\OK_City_2008_One_Foot_3\Ogisrv103\ogisrv103_F\GeoServer_Coverages\OK_City_2008_One_Foot_3\35097-D51.tif

Ciao,
Roger
--------------------------------------------------
From: "Simone Giannecchini" <simone.giannecchini@anonymised.com>
Sent: Sunday, June 14, 2009 10:46 PM
To: "Roger Bedell" <roger@anonymised.com>
Cc: <geoserver-users@lists.sourceforge.net>
Subject: Re: [Geoserver-users] Image Mosaic UNC Paths no longer works going
from 1.7.3 to 1.7.5

Ciao Roger,
can you copy and paste the properties files for your mosaic? It looks
like you are missing the AbsolutePath property in property file.

Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

-------------------------------------------------------

Simone, sorry, I forgot to cc to the list.

Also, a little more information, I rolled back to 1.7.4, and this problem exists there as well. Rolling back to 1.7.3, it all works fine. Also, I tried your fancy new "Automatic mosaic builder" in 1.7.5, and it is fantastic!

Roger
--------------------------------------------------
From: "Roger Bedell" <sylvanascent@anonymised.com>
Sent: Monday, June 15, 2009 6:16 AM
To: "Simone Giannecchini" <simone.giannecchini@anonymised.com>
Subject: Re: [Geoserver-users] Image Mosaic UNC Paths no longer works going from 1.7.3 to 1.7.5

Simone,
Thank you for getting back to me on this. I didn't know the AbsolutePath
property existed. This is what I had:

Name=OK_City_2008_One_Foot_3
Levels=2.6994692844E-06,2.6994692844E-06 5.3989385688E-06,5.3989385688E-06
1.07978771376E-05,1.07978771376E-05 2.15957542752E-05,2.15957542752E-05
4.31915085504E-05,4.31915085504E-05 8.63830171008E-05,8.63830171008E-05
0.0001727660342016,0.0001727660342016
LevelsNum=7
Envelope2D=-97.8125013497346,35.1875005373926 -97.1875005373929,35.8125013497343
NumFiles=84

I changed this to:

Name=OK_City_2008_One_Foot_3
Levels=2.6994692844E-06,2.6994692844E-06 5.3989385688E-06,5.3989385688E-06
1.07978771376E-05,1.07978771376E-05 2.15957542752E-05,2.15957542752E-05
4.31915085504E-05,4.31915085504E-05 8.63830171008E-05,8.63830171008E-05
0.0001727660342016,0.0001727660342016
LevelsNum=7
Envelope2D=-97.8125013497346,35.1875005373926 -97.1875005373929,35.8125013497343
NumFiles=84
AbsolutePath=true

But unfortunately, it still doesn't work. Still getting in the log:

2009-06-14 23:12:25,535 INFO [gce.imagemosai] - Unable to read image for
file
D:\GeoServer_Coverages\OK_City_2008_One_Foot_3\Ogisrv103\ogisrv103_F\GeoServer_Coverages\OK_City_2008_One_Foot_3\35097-D51.tif

Ciao,
Roger
--------------------------------------------------
From: "Simone Giannecchini" <simone.giannecchini@anonymised.com>
Sent: Sunday, June 14, 2009 10:46 PM
To: "Roger Bedell" <roger@anonymised.com>
Cc: <geoserver-users@lists.sourceforge.net>
Subject: Re: [Geoserver-users] Image Mosaic UNC Paths no longer works going
from 1.7.3 to 1.7.5

Ciao Roger,
can you copy and paste the properties files for your mosaic? It looks
like you are missing the AbsolutePath property in property file.

Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

-------------------------------------------------------

Simone, UNC paths are now working. Thanks!!

Roger

--------------------------------------------------
From: "Simone Giannecchini" <simone.giannecchini@anonymised.com>
Sent: Friday, June 19, 2009 12:54 AM
To: "Roger Bedell" <roger@anonymised.com>
Subject: Re: [Geoserver-users] Image Mosaic UNC Paths no longer works going from 1.7.3 to 1.7.5

Ciao Roger,
please, try next nightly buids, more info should be logged in case we
still don't succeed.
The sample mosaic I have been using can be found inside the
imagemosaic testdata, gray directory.

I have also added some code to try and respect interpolation.

Ciao,
Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

-------------------------------------------------------

On Thu, Jun 18, 2009 at 11:40 AM, Roger Bedell<sylvanascent@anonymised.com> wrote:

Simone

I tried out our data again using the latest nightly build, and still get
nothing (well just black), and the errors. Attached are my files, similar to
yours.

Still getting in the log:
2009-06-18 04:30:49,457 DEBUG [gce.imagemosai] - About to read image number
0
2009-06-18 04:30:49,457 INFO [gce.imagemosai] - Unable to read image for
file
D:\GeoServer_Coverages\OK_City_2008_One_Foot_3\Ogisrv103\ogisrv103_F\GeoServer_Coverages\OK_City_2008_One_Foot_3\35097-D51.tif

The tif is located here:
\\Ogisrv103\ogisrv103_F\GeoServer_Coverages\OK_City_2008_One_Foot_3\35097-D51.tif

Note that \\Ogisrv103\ogisrv103_F\ is read-only, would that have an effect?

Perhaps you can send me your 2 tifs, and I can try it here? Thanks for all
your help!

Ciao,

Roger

--------------------------------------------------
From: "Simone Giannecchini" <simone.giannecchini@anonymised.com>
Sent: Thursday, June 18, 2009 12:20 AM
To: "Roger Bedell" <roger@anonymised.com>
Subject: Re: [Geoserver-users] Image Mosaic UNC Paths no longer works going
from 1.7.3 to 1.7.5

Ciao Roger,
this is the shapefile that I tested and it seems to work for me.

Can you try with a nightly build?

Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

-------------------------------------------------------

On Mon, Jun 15, 2009 at 7:20 PM, Roger Bedell<sylvanascent@anonymised.com>
wrote:

Thank you Simone, I will do that and report back.
Ciao,

Roger

--------------------------------------------------
From: "Simone Giannecchini" <simone.giannecchini@anonymised.com>
Sent: Monday, June 15, 2009 7:18 PM
To: "Roger Bedell" <roger@anonymised.com>
Subject: Re: [Geoserver-users] Image Mosaic UNC Paths no longer works
going
from 1.7.3 to 1.7.5

Ciao Roger,
I have tried that, and it seems to work for me.

I will commit a few improvement later today, so that you can test
tomorow with a nightly build.

Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

-------------------------------------------------------

On Mon, Jun 15, 2009 at 6:15 PM, Roger Bedell<sylvanascent@anonymised.com>
wrote:

Simone,
Please also try:

A mosaic SHP file on your local machine that contains UNC paths for the
images inside the dbf. (The images are on the networked machine, the
.properties, .shp, .dbf, .prj are on the local machine)

Thanks!
Roger

--------------------------------------------------
From: "Simone Giannecchini" <simone.giannecchini@anonymised.com>
Sent: Monday, June 15, 2009 1:46 PM
To: "Roger Bedell" <roger@anonymised.com>
Subject: Re: [Geoserver-users] Image Mosaic UNC Paths no longer works
going
from 1.7.3 to 1.7.5

Ciao Roger,
I just tested this and UNC works for me. I have modified an existing
index file to make it point to an UNC path. I am going to test a bit
more just out of curiosity and then I will report.

Simone.

-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

-------------------------------------------------------

On Mon, Jun 15, 2009 at 6:16 AM, Roger
Bedell<sylvanascent@anonymised.com>
wrote:

Simone,
Thank you for getting back to me on this. I didn't know the
AbsolutePath
property existed. This is what I had:

Name=OK_City_2008_One_Foot_3
Levels=2.6994692844E-06,2.6994692844E-06
5.3989385688E-06,5.3989385688E-06
1.07978771376E-05,1.07978771376E-05
2.15957542752E-05,2.15957542752E-05
4.31915085504E-05,4.31915085504E-05
8.63830171008E-05,8.63830171008E-05
0.0001727660342016,0.0001727660342016
LevelsNum=7
Envelope2D=-97.8125013497346,35.1875005373926
-97.1875005373929,35.8125013497343
NumFiles=84

I changed this to:

Name=OK_City_2008_One_Foot_3
Levels=2.6994692844E-06,2.6994692844E-06
5.3989385688E-06,5.3989385688E-06
1.07978771376E-05,1.07978771376E-05
2.15957542752E-05,2.15957542752E-05
4.31915085504E-05,4.31915085504E-05
8.63830171008E-05,8.63830171008E-05
0.0001727660342016,0.0001727660342016
LevelsNum=7
Envelope2D=-97.8125013497346,35.1875005373926
-97.1875005373929,35.8125013497343
NumFiles=84
AbsolutePath=true

But unfortunately, it still doesn't work. Still getting in the log:

2009-06-14 23:12:25,535 INFO [gce.imagemosai] - Unable to read image
for
file

D:\GeoServer_Coverages\OK_City_2008_One_Foot_3\Ogisrv103\ogisrv103_F\GeoServer_Coverages\OK_City_2008_One_Foot_3\35097-D51.tif

Ciao,
Roger
--------------------------------------------------
From: "Simone Giannecchini" <simone.giannecchini@anonymised.com>
Sent: Sunday, June 14, 2009 10:46 PM
To: "Roger Bedell" <roger@anonymised.com>
Cc: <geoserver-users@lists.sourceforge.net>
Subject: Re: [Geoserver-users] Image Mosaic UNC Paths no longer works
going
from 1.7.3 to 1.7.5

Ciao Roger,
can you copy and paste the properties files for your mosaic? It
looks
like you are missing the AbsolutePath property in property file.

Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

-------------------------------------------------------