I am back with Geoserver Coverage setup problem with ImageMosaic plugin.
Now I am successful in setting up ImageMosaic plugin with tiff files.
But since my raster tiles in TIFF are huge sizes it is quite quite not
usable on Geoserver.
So, i tried to setup up the same coverage store using JPG files.
My source rasters were in JPEG2000 formats. I converted them to JPG using
gdal_translate tool.
Caused by: javax.imageio.IIOException: Decoder cannot decode input.
at
com.sun.media.imageioimpl.plugins.jpeg.CLibJPEGImageReader.getInfoIma
ge(CLibJPEGImageReader.java:216)
at
com.sun.media.imageioimpl.plugins.jpeg.CLibJPEGImageReader.getImageTy
pes(CLibJPEGImageReader.java:274)
at javax.imageio.ImageReader.getRawImageType(ImageReader.java:665)
at
com.sun.media.jai.imageioimpl.ImageReadOpImage.layoutHelper(ImageRead
OpImage.java:228)
at
com.sun.media.jai.imageioimpl.ImageReadOpImage.<init>(ImageReadOpImag
e.java:473)
at
com.sun.media.jai.imageioimpl.ImageReadCRIF.create(ImageReadCRIF.java
:309)
... 71 more
179220 [btpool0-1] WARN org.mortbay.log - Nested in
javax.media.jai.util.Imaging
Exception: All factories fail for the operation "ImageRead":
javax.imageio.IIOException: Decoder cannot decode input.
at
com.sun.media.imageioimpl.plugins.jpeg.CLibJPEGImageReader.getInfoIma
ge(CLibJPEGImageReader.java:216)
at
com.sun.media.imageioimpl.plugins.jpeg.CLibJPEGImageReader.getImageTy
pes(CLibJPEGImageReader.java:274)
at javax.imageio.ImageReader.getRawImageType(ImageReader.java:665)
at
com.sun.media.jai.imageioimpl.ImageReadOpImage.layoutHelper(ImageRead
OpImage.java:228)
at
com.sun.media.jai.imageioimpl.ImageReadOpImage.<init>(ImageReadOpImag
e.java:473)
at
com.sun.media.jai.imageioimpl.ImageReadCRIF.create(ImageReadCRIF.java
:309)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at javax.media.jai.FactoryCache.invoke(FactoryCache.java:122)
at
javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.jav
a:1674)
at
javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeO
perationRegistry.java:473)
at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:332)
at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:819)
at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:867)
at javax.media.jai.RenderedOp.getColorModel(RenderedOp.java:2242)
at
org.geotools.gce.imagemosaic.ImageMosaicReader.loadRequestedTiles(Ima
geMosaicReader.java:1028)
at
org.geotools.gce.imagemosaic.ImageMosaicReader.loadTiles(ImageMosaicR
eader.java:713)
at
org.geotools.gce.imagemosaic.ImageMosaicReader.read(ImageMosaicReader
.java:557)
at
org.vfny.geoserver.config.CoverageConfig.<init>(CoverageConfig.java:3
12)
at
org.vfny.geoserver.action.data.DataCoveragesNewAction.newCoverageConf
ig(DataCoveragesNewAction.java:123)
at
org.vfny.geoserver.action.data.CoverageStoresEditorAction.execute(Cov
erageStoresEditorAction.java:90)
at
org.vfny.geoserver.action.ConfigAction.execute(ConfigAction.java:101)
Hi Simone,
I made progress in registering the CoverageStore and corresponding
coverage for the mosaic.
Earlier I provided wrong values for 'Levels' and Envelope2D in PROPERTIES
file.
Then I read thoroughly the ImageMosaic doc to get the proper values from
shape file and tif file using gdalinfo tool.
Now, my coverage store and coverage has been registered properly.
The info.xml generated is here:
<coverage format = "sabah" >
<name>sabah_1</name>
<description>Generated from sabah</description>
<wmspath>/</wmspath>
<keywords>WCS,sabah,sabah_1</keywords>
<!--
the default style this CoverageInfoDTO can be represented by.
at least must contain the "default" attribute
-->
<styles default = "raster" />
<envelope crs = "PROJCS['ELD79 / Libya zone 8',
GEOGCS['ELD79',
DATUM['European Libyan Datum 1979',
SPHEROID['International 1924', 6378388.0, 297.0,
AUTHORITY['EPSG','7022']],
TOWGS84[-114.7, -98.5, -150.7, 0.0, 0.0, 0.0, 0.0],
AUTHORITY['EPSG','6159']],
PRIMEM['Greenwich', 0.0, AUTHORITY['EPSG','8901']],
UNIT['degree', 0.017453292519943295],
AXIS['Geodetic longitude', EAST],
AXIS['Geodetic latitude', NORTH],
AUTHORITY['EPSG','4159']],
PROJECTION['Transverse Mercator', AUTHORITY['EPSG','9807']],
PARAMETER['central_meridian', 15.0],
PARAMETER['latitude_of_origin', 0.0],
PARAMETER['scale_factor', 0.9999],
PARAMETER['false_easting', 200000.0],
PARAMETER['false_northing', 0.0],
UNIT['m', 1.0],
AXIS['Easting', EAST],
AXIS['Northing', NORTH],
AUTHORITY['EPSG','2071']]" srsName = "EPSG:2071" >
<pos>137003.15015750666 2983850.792539627</pos>
<pos>152002.40012000577 2995850.192509625</pos>
</envelope>
<grid dimension = "2" >
<low>0 0 </low>
<high>50000 40000 </high>
<axisName>sabah</axisName>
<axisName>sabah</axisName>
<axisName>sabah</axisName>
<geoTransform >
<scaleX>0.3</scaleX>
<scaleY>-0.3</scaleY>
<shearX>0.0</shearX>
<shearY>0.0</shearY>
<translateX>137000.15</translateX>
<translateY>2995999.85</translateY>
</geoTransform>
</grid>
<CoverageDimension >
<name>sabah</name>
<description>GridSampleDimension[0.0,255.0]</description>
<interval >
<min>0.0</min>
<max>255.0</max>
</interval>
<nullValues >
</nullValues>
</CoverageDimension>
<CoverageDimension >
<name>sabah</name>
<description>GridSampleDimension[0.0,255.0]</description>
<interval >
<min>0.0</min>
<max>255.0</max>
</interval>
<nullValues >
</nullValues>
</CoverageDimension>
<CoverageDimension >
<name>sabah</name>
<description>GridSampleDimension[0.0,255.0]</description>
<interval >
<min>0.0</min>
<max>255.0</max>
</interval>
<nullValues >
</nullValues>
</CoverageDimension>
<supportedCRSs >
<requestCRSs>EPSG:2071</requestCRSs>
<responseCRSs>EPSG:2071</responseCRSs>
</supportedCRSs>
<supportedFormats nativeFormat = "ImageMosaic" >
<formats>IMAGEMOSAIC,GTOPO30,GEOTIFF,ARCGRID,GIF,PNG,JPEG,TIFF</formats>
</supportedFormats>
<supportedInterpolations default = "nearest neighbor" >
<interpolationMethods>nearest
neighbor,bilinear,bicubic</interpolationMethods>
</supportedInterpolations>
<parameters >
<parameter value = "" name = "OutputTransparentColor" />
<parameter value = "NaN" name = "InputImageThresholdValue" />
<parameter value = "" name = "InputTransparentColor" />
</parameters>
</coverage>
But the WMS request is returning empty responses. Hence I can see no
images at the end.
Here is my PROPERTIES file content :
Name=sabah
Levels=0.3,0.3
LevelsNum=1
Envelope2D=137000.0,2984000.0 152000.0,2996000.0
NumFiles=16
Here goes my PRJ file content:
PROJCS["ELD79 / Libya zone 8",
GEOGCS["ELD79",DATUM["D_European_Libyan_1979",
SPHEROID["International_1924",6378388,297]],
PRIMEM["Greenwich",0],
UNIT["Degree",0.017453292519943295]],
PROJECTION["Transverse_Mercator"],
PARAMETER["latitude_of_origin",0],
PARAMETER["central_meridian",15],
PARAMETER["scale_factor",0.9999],
PARAMETER["false_easting",200000],
PARAMETER["false_northing",0],
UNIT["Meter",1]]
Attached Shape file for the same.
This shape file generated from the TIFF image tiles using GDAL tool
gdaltindex with attribute 'location' to point to the rasters.
Actually I had the source image tiles in JPEG2000 format. As I read on
Geoserver docs that currently JPEG2000 is not supported on ImageMosaic, I
converted them to tif files using GDAL translator tool.
But finally I think, the problem is in the projection. The image tiles are
projected on ELD79/ Libya Zone 8. The EPSG for the same is : 2071
I used this EPSG in Georserver coverage setup. I di not worked. I also
tried the default value of EPSG:4326.This also gave no result.
Any, guide in this direction will be helpful.
Regards,
Suvajit
My galleria @ http://www.flickr.com/photos/jeet_sen
On Mon, Feb 9, 2009 at 2:58 AM, Simone Giannecchini
<simone.giannecchini@anonymised.com> wrote:
Ciao Suvajit,
did you make any progresses on this?
DO you have some sample data to share?
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, Feb 6, 2009 at 2:35 PM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:
> I have progressed a bit more on this.
> The error was on my PROPERTIES file on values of Envelope2D & Levels.
> But after reading the ImageMosaic Geoserver setup doc carefully and
> comparing with the default mosaic example of geoserver I could register
> the
> coverage successfully.
> But my image mosaic is not getting displayed. This time I might stuck
> in
> projection issues.
>
> @Jasun,
> Please follow the steps carefully mentioned in the ImageMosaic plugin
> document for PROPERTIES file definition.
>
> Regards,
> Suvajit
>
> My galleria @ http://www.flickr.com/photos/jeet_sen
>
>
> On Fri, Feb 6, 2009 at 6:56 PM, <jasun_chang@anonymised.com> wrote:
>>
>> Hi,
>>
>> I have encountered the similar issue. Pls advise.
>>
>> Jasun.
>>
>>
>> Suvajit Sengupta-2 wrote:
>> >
>> > Hi,
>> > I followed the instruction given in Geoserver doc page
>> > Using the ImageMosaic
>> >
>> >
>> > plugin<http://geoserver.org/display/GEOSDOC/Using+the+ImageMosaic+plugin>to
>> > setup a coverage service on Geoserver.
>> >
>> > I stored data source of images + shp file + PRJ file + properties
>> > file
>> > in
>> > GEOSERVER_DATA_DIR/coverages/mosaic directory.
>> >
>> > On New Coverage Data set editor page, I pointed to the Shape file as
>> > the
>> > URL
>> > value.
>> > On Submit, I get the error :
>> > *
>> > Invalid url: 'file:coverages/mosaic/sabah.shp' for format
>> > type:'ImageMosaic'
>> > *
>> >
>> > The shape file when added as FeatureType is working find on
>> > Geoserver.
>> > But I am unsure where things are going wrong. Any
>> > suggestions/pointers
>> > will
>> > be highly appreciated.
>> >
>> > Regards,
>> > Suvajit
>> >
>> > My galleria @ http://www.flickr.com/photos/jeet_sen
>> >
>> > Regards,
>> > Suvajit
>> >
>> > My galleria @ http://www.flickr.com/photos/jeet_sen
>> >
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > Create and Deploy Rich Internet Apps outside the browser with
>> > Adobe(R)AIR(TM)
>> > software. With Adobe AIR, Ajax developers can use existing skills
>> > and
>> > code
>> > to
>> > build responsive, highly engaging applications that combine the
>> > power of
>> > local
>> > resources and data with the reach of the web. Download the Adobe AIR
>> > SDK
>> > and
>> > Ajax docs to start building applications
>> > today-http://p.sf.net/sfu/adobe-com
>> > _______________________________________________
>> > Geoserver-users mailing list
>> > Geoserver-users@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/geoserver-users
>> >
>> >
>> Quoted from:
>>
>>
>> http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p21851243.html
>>
>
>
>
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with
> Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and
> code
> to
> build responsive, highly engaging applications that combine the power
> of
> local
> resources and data with the reach of the web. Download the Adobe AIR
> SDK and
> Ajax docs to start building applications
> today-http://p.sf.net/sfu/adobe-com
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>