[Geoserver-users] Unable to setup WCS for Image mosaic

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

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&gt;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

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:

sabah_1 Generated from sabah / WCS,sabah,sabah_1 137003.15015750666 2983850.792539627 152002.40012000577 2995850.192509625 0 0 50000 40000 sabah sabah sabah 0.3 -0.3 0.0 0.0 137000.15 2995999.85 sabah GridSampleDimension[0.0,255.0] 0.0 255.0 sabah GridSampleDimension[0.0,255.0] 0.0 255.0 sabah GridSampleDimension[0.0,255.0] 0.0 255.0 EPSG:2071 EPSG:2071 IMAGEMOSAIC,GTOPO30,GEOTIFF,ARCGRID,GIF,PNG,JPEG,TIFF nearest neighbor,bilinear,bicubic

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

sabah.zip (906 Bytes)

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.

Now when setting up the coverage for the same, the following exception was thrown:

javax.media.jai.util.ImagingException: All factories fail for the operation "ImageRead"

And the stack trace is as follows :

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

at org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:119
6)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487
)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1093)
at org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCha
racterEncodingFilter.java:108)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:264)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(Filt
erSecurityInterceptor.java:107)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(Fi
lterSecurityInterceptor.java:72)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTra
nslationFilter.java:110)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFil
ter(AnonymousProcessingFilter.java:125)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(R
ememberMeProcessingFilter.java:142)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doF
ilter(SecurityContextHolderAwareRequestFilter.java:81)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProces
singFilter.java:217)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:1
06)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilte
r(HttpSessionContextIntegrationFilter.java:229)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.jav
a:148)
at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.j
ava:98)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:73)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
at org.geoserver.filters.ReverseProxyFilter.doFilter(ReverseProxyFilter.
java:170)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:41)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:3
60)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.jav
a:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:1
81)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:7
26)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)

at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHand
lerCollection.java:206)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.
java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:1
52)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:50
5)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnectio
n.java:842)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.ja
va:395)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool
.java:450)

My setup is as folows :
Geoserver : 1.7.2
JDK :1.5.0_14
JAI :1.1.4
ImageIo : 1.2

Assuming, ImageIO cannot read the JPEG, I used the latest nightly build of JAI & IMageIO but to no avail.
Any workaround on this problem ?

Regards,
Suvajit

My galleria @ http://www.flickr.com/photos/jeet_sen

On Mon, Feb 9, 2009 at 9:50 AM, Suvajit Sengupta <suvajit.sengupta@anonymised.com> wrote:

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:

sabah_1 Generated from sabah / WCS,sabah,sabah_1 137003.15015750666 2983850.792539627 152002.40012000577 2995850.192509625 0 0 50000 40000 sabah sabah sabah 0.3 -0.3 0.0 0.0 137000.15 2995999.85 sabah GridSampleDimension[0.0,255.0] 0.0 255.0 sabah GridSampleDimension[0.0,255.0] 0.0 255.0 sabah GridSampleDimension[0.0,255.0] 0.0 255.0 EPSG:2071 EPSG:2071 IMAGEMOSAIC,GTOPO30,GEOTIFF,ARCGRID,GIF,PNG,JPEG,TIFF nearest neighbor,bilinear,bicubic

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

Ciao Suvajit,
a few thoughts:
1> a mosaic of geotiff is probably the best option you have on the
plate, you just have to preprocess them correctly. this post might
give you some hints :
http://www.nabble.com/Getting-started-with-geoserver-to21931740.html

2> as I already said, support for jpg in standard java and imageio is
far from being optimal, but still your error is a bit strange. Can you
send over one of the jpegs as well as reporting exactly how you
created it?

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, Feb 12, 2009 at 5:25 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

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.

Now when setting up the coverage for the same, the following exception was
thrown:

javax.media.jai.util.ImagingException: All factories fail for the operation
"ImageRead"

And the stack trace is as follows :

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)

        at
org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:431)
        at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:236)
        at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:119
6)
        at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487
)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1093)
        at
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCha
racterEncodingFilter.java:108)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:264)
        at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(Filt
erSecurityInterceptor.java:107)
        at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(Fi
lterSecurityInterceptor.java:72)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTra
nslationFilter.java:110)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFil
ter(AnonymousProcessingFilter.java:125)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(R
ememberMeProcessingFilter.java:142)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doF
ilter(SecurityContextHolderAwareRequestFilter.java:81)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProces
singFilter.java:217)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:1
06)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilte
r(HttpSessionContextIntegrationFilter.java:229)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.jav
a:148)
        at
org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.j
ava:98)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:73)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.geoserver.filters.ReverseProxyFilter.doFilter(ReverseProxyFilter.
java:170)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:41)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:3
60)
        at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.jav
a:216)
        at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:1
81)
        at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:7
26)
        at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)

        at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHand
lerCollection.java:206)
        at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.
java:114)
        at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:1
52)
        at org.mortbay.jetty.Server.handle(Server.java:324)
        at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:50
5)
        at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnectio
n.java:842)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
        at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.ja
va:395)
        at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool
.java:450)

My setup is as folows :
Geoserver : 1.7.2
JDK :1.5.0_14
JAI :1.1.4
ImageIo : 1.2

Assuming, ImageIO cannot read the JPEG, I used the latest nightly build of
JAI & IMageIO but to no avail.
Any workaround on this problem ?

Regards,
Suvajit

My galleria @ http://www.flickr.com/photos/jeet_sen

On Mon, Feb 9, 2009 at 9:50 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

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&gt;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
>
>

Hi Simone,
I am following the other thread that you referred.
As you have said there, I converted the rasters first to GeoTiff format.
But the problem is when I convert my JPEG2000 image tile of size 4 MB to
GeoTiff using gdal_translate tool, the generated TIFF file is of size 300MB
!!
gdal_translate command used :
gdal_translate -of GTiff -co "TILED=YES" input.jp2 out.tiff

After, I create an overview with 4 steps using gdaladdo, the final tiff file
size is aprrox 400 MB.

Now, I create a mosaic shape file using gdaltindex and feed it to Geoserver
Coverage.

My raster contains a tile of 16 images.

Geoserver cannot handle 16 images each of size 300MB+.

There is something wrong in my basic understanding i feel.

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,
a few thoughts:
1> a mosaic of geotiff is probably the best option you have on the
plate, you just have to preprocess them correctly. this post might
give you some hints :
http://www.nabble.com/Getting-started-with-geoserver-to21931740.html

2> as I already said, support for jpg in standard java and imageio is
far from being optimal, but still your error is a bit strange. Can you
send over one of the jpegs as well as reporting exactly how you
created it?

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, Feb 12, 2009 at 5:25 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

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.

Now when setting up the coverage for the same, the following exception
was
thrown:

javax.media.jai.util.ImagingException: All factories fail for the
operation
"ImageRead"

And the stack trace is as follows :

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)

        at
org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:431)
        at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:236)
        at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:119
6)
        at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487
)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1093)
        at
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCha
racterEncodingFilter.java:108)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:264)
        at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(Filt
erSecurityInterceptor.java:107)
        at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(Fi
lterSecurityInterceptor.java:72)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTra
nslationFilter.java:110)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFil
ter(AnonymousProcessingFilter.java:125)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(R
ememberMeProcessingFilter.java:142)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doF
ilter(SecurityContextHolderAwareRequestFilter.java:81)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProces
singFilter.java:217)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:1
06)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilte
r(HttpSessionContextIntegrationFilter.java:229)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.jav
a:148)
        at
org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.j
ava:98)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:73)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.geoserver.filters.ReverseProxyFilter.doFilter(ReverseProxyFilter.
java:170)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:41)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:3
60)
        at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.jav
a:216)
        at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:1
81)
        at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:7
26)
        at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)

        at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHand
lerCollection.java:206)
        at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.
java:114)
        at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:1
52)
        at org.mortbay.jetty.Server.handle(Server.java:324)
        at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:50
5)
        at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnectio
n.java:842)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
        at
org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
        at
org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
        at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.ja
va:395)
        at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool
.java:450)

My setup is as folows :
Geoserver : 1.7.2
JDK :1.5.0_14
JAI :1.1.4
ImageIo : 1.2

Assuming, ImageIO cannot read the JPEG, I used the latest nightly build
of
JAI & IMageIO but to no avail.
Any workaround on this problem ?

Regards,
Suvajit

My galleria @ http://www.flickr.com/photos/jeet_sen

On Mon, Feb 9, 2009 at 9:50 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

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&gt;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
>
>

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

--
View this message in context: http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p21990397.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Ciao Suvajit,
you are missing one step in your procedure, plus you could also add
one more to optimize.
Specifically:

1> when you converto to geotiff you might want to compress jpeg with
quality 0.75 (visually lossless) or lzw (lossless) to reduce file size
I usually do
gdal_translate -of GTiff -co "TILED=YES" -co "BLOCKXSIZE=512" -co
"BLOCKYSIZE=512" -co "COMPRESS=JPEG" -co "JPEG_QUALITY=75" input.jp2
out.tiff

2> you should use also use gdaladdo on your files to add overviews,
otherwise things will be slow

I usually do something like
gdaladdo -r average input.tiff 2 4 8 16 32 64 128

Final notice :
If you have jp2 files you might want to try out the imageio-ext gdal
extension that should handle them natively via MRSID

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 Fri, Feb 13, 2009 at 6:01 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

Hi Simone,
I am following the other thread that you referred.
As you have said there, I converted the rasters first to GeoTiff format.
But the problem is when I convert my JPEG2000 image tile of size 4 MB to
GeoTiff using gdal_translate tool, the generated TIFF file is of size 300MB
!!
gdal_translate command used :
gdal_translate -of GTiff -co "TILED=YES" input.jp2 out.tiff

After, I create an overview with 4 steps using gdaladdo, the final tiff file
size is aprrox 400 MB.

Now, I create a mosaic shape file using gdaltindex and feed it to Geoserver
Coverage.

My raster contains a tile of 16 images.

Geoserver cannot handle 16 images each of size 300MB+.

There is something wrong in my basic understanding i feel.

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,
a few thoughts:
1> a mosaic of geotiff is probably the best option you have on the
plate, you just have to preprocess them correctly. this post might
give you some hints :
http://www.nabble.com/Getting-started-with-geoserver-to21931740.html

2> as I already said, support for jpg in standard java and imageio is
far from being optimal, but still your error is a bit strange. Can you
send over one of the jpegs as well as reporting exactly how you
created it?

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, Feb 12, 2009 at 5:25 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

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.

Now when setting up the coverage for the same, the following exception
was
thrown:

javax.media.jai.util.ImagingException: All factories fail for the
operation
"ImageRead"

And the stack trace is as follows :

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)

        at
org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:431)
        at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:236)
        at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:119
6)
        at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487
)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1093)
        at
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCha
racterEncodingFilter.java:108)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:264)
        at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(Filt
erSecurityInterceptor.java:107)
        at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(Fi
lterSecurityInterceptor.java:72)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTra
nslationFilter.java:110)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFil
ter(AnonymousProcessingFilter.java:125)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(R
ememberMeProcessingFilter.java:142)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doF
ilter(SecurityContextHolderAwareRequestFilter.java:81)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProces
singFilter.java:217)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:1
06)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilte
r(HttpSessionContextIntegrationFilter.java:229)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.jav
a:148)
        at
org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.j
ava:98)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:73)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.geoserver.filters.ReverseProxyFilter.doFilter(ReverseProxyFilter.
java:170)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:41)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:3
60)
        at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.jav
a:216)
        at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:1
81)
        at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:7
26)
        at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)

        at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHand
lerCollection.java:206)
        at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.
java:114)
        at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:1
52)
        at org.mortbay.jetty.Server.handle(Server.java:324)
        at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:50
5)
        at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnectio
n.java:842)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
        at
org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
        at
org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
        at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.ja
va:395)
        at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool
.java:450)

My setup is as folows :
Geoserver : 1.7.2
JDK :1.5.0_14
JAI :1.1.4
ImageIo : 1.2

Assuming, ImageIO cannot read the JPEG, I used the latest nightly build
of
JAI & IMageIO but to no avail.
Any workaround on this problem ?

Regards,
Suvajit

My galleria @ http://www.flickr.com/photos/jeet_sen

On Mon, Feb 9, 2009 at 9:50 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

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&gt;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
>
>

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

--
View this message in context: http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p21990397.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi Simone,
  Thanks for the suggestions on setting up Image Mosaic on Geoserver.
  But creating mosaic from the tiled rasters finally did not work.

  So, I tried to go the other way round. I joined the tiles in GlobalMapper
to create a single image.
  Then I tiled the image using gdal_retile tool and created a mosaic from
it.
  This time it worked.
  My input TIFF was of a size of 250MB.
  I created 60 tiles out of it each on an average size of 10MB.

  Now though on the higher zoom levels the performance is good but on
minimum zoom it is taking consirderably very high time to load. Now this
means, I have to optimize this.
I feel the options are :
1. Compress the source TIFF file and then create tile from it to reduce the
effective total size.
2. Switch to ImagePyramid from ImageMosaic

Now for Option 1,
I tried to compress the TIFF using gdal_translate using the following
command :
gdal_translate -of Gtiff -co "COMPRESS=JPEG" -co "JPEG_QUALITY=75" sa1.tif
sa1_compressed.tif
I hit the following error :
ERROR 1: JPEGSetupEncode:PhotometricInterpretation 3 not allowed for JPEG

Googling for this error, I found this an existing bug. Not sure of my
findings. Some info on this can be helpful.

Now for Option 2,
On my Geoserver 1.7.2 binary setup, I do not find the "Image Pyramid plugin"
option in the drop down when I create a New Coverage Store in Geoserver.
How can make the Image Pyramid plugin options available to Geoserver ?

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,
you are missing one step in your procedure, plus you could also add
one more to optimize.
Specifically:

1> when you converto to geotiff you might want to compress jpeg with
quality 0.75 (visually lossless) or lzw (lossless) to reduce file size
I usually do
gdal_translate -of GTiff -co "TILED=YES" -co "BLOCKXSIZE=512" -co
"BLOCKYSIZE=512" -co "COMPRESS=JPEG" -co "JPEG_QUALITY=75" input.jp2
out.tiff

2> you should use also use gdaladdo on your files to add overviews,
otherwise things will be slow

I usually do something like
gdaladdo -r average input.tiff 2 4 8 16 32 64 128

Final notice :
If you have jp2 files you might want to try out the imageio-ext gdal
extension that should handle them natively via MRSID

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 Fri, Feb 13, 2009 at 6:01 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

Hi Simone,
I am following the other thread that you referred.
As you have said there, I converted the rasters first to GeoTiff format.
But the problem is when I convert my JPEG2000 image tile of size 4 MB to
GeoTiff using gdal_translate tool, the generated TIFF file is of size
300MB
!!
gdal_translate command used :
gdal_translate -of GTiff -co "TILED=YES" input.jp2 out.tiff

After, I create an overview with 4 steps using gdaladdo, the final tiff
file
size is aprrox 400 MB.

Now, I create a mosaic shape file using gdaltindex and feed it to
Geoserver
Coverage.

My raster contains a tile of 16 images.

Geoserver cannot handle 16 images each of size 300MB+.

There is something wrong in my basic understanding i feel.

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,
a few thoughts:
1> a mosaic of geotiff is probably the best option you have on the
plate, you just have to preprocess them correctly. this post might
give you some hints :
http://www.nabble.com/Getting-started-with-geoserver-to21931740.html

2> as I already said, support for jpg in standard java and imageio is
far from being optimal, but still your error is a bit strange. Can you
send over one of the jpegs as well as reporting exactly how you
created it?

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, Feb 12, 2009 at 5:25 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

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.

Now when setting up the coverage for the same, the following exception
was
thrown:

javax.media.jai.util.ImagingException: All factories fail for the
operation
"ImageRead"

And the stack trace is as follows :

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)

        at
org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:431)
        at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:236)
        at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:119
6)
        at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487
)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1093)
        at
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCha
racterEncodingFilter.java:108)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:264)
        at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(Filt
erSecurityInterceptor.java:107)
        at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(Fi
lterSecurityInterceptor.java:72)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTra
nslationFilter.java:110)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFil
ter(AnonymousProcessingFilter.java:125)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(R
ememberMeProcessingFilter.java:142)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doF
ilter(SecurityContextHolderAwareRequestFilter.java:81)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProces
singFilter.java:217)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:1
06)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilte
r(HttpSessionContextIntegrationFilter.java:229)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.jav
a:148)
        at
org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.j
ava:98)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:73)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.geoserver.filters.ReverseProxyFilter.doFilter(ReverseProxyFilter.
java:170)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:41)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:3
60)
        at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.jav
a:216)
        at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:1
81)
        at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:7
26)
        at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)

        at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHand
lerCollection.java:206)
        at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.
java:114)
        at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:1
52)
        at org.mortbay.jetty.Server.handle(Server.java:324)
        at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:50
5)
        at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnectio
n.java:842)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
        at
org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
        at
org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
        at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.ja
va:395)
        at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool
.java:450)

My setup is as folows :
Geoserver : 1.7.2
JDK :1.5.0_14
JAI :1.1.4
ImageIo : 1.2

Assuming, ImageIO cannot read the JPEG, I used the latest nightly
build
of
JAI & IMageIO but to no avail.
Any workaround on this problem ?

Regards,
Suvajit

My galleria @ http://www.flickr.com/photos/jeet_sen

On Mon, Feb 9, 2009 at 9:50 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

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&gt;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
>
>

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

--
View this message in context:
http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p21990397.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p22031799.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Ciao Suvajit,

1> Mosaic did not work is a bit generic as a statement, I'd need more
info. Anyway, I suspect you are still not adding overviews to your
data, is that correct?

2> If your input tiff is 250 mb you do not need to tile it or to
create a pyramid, just add overviews to it using gdaladdo.

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 Mon, Feb 16, 2009 at 6:24 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

Hi Simone,
Thanks for the suggestions on setting up Image Mosaic on Geoserver.
But creating mosaic from the tiled rasters finally did not work.

So, I tried to go the other way round. I joined the tiles in GlobalMapper
to create a single image.
Then I tiled the image using gdal_retile tool and created a mosaic from
it.
This time it worked.
My input TIFF was of a size of 250MB.
I created 60 tiles out of it each on an average size of 10MB.

Now though on the higher zoom levels the performance is good but on
minimum zoom it is taking consirderably very high time to load. Now this
means, I have to optimize this.
I feel the options are :
1. Compress the source TIFF file and then create tile from it to reduce the
effective total size.
2. Switch to ImagePyramid from ImageMosaic

Now for Option 1,
I tried to compress the TIFF using gdal_translate using the following
command :
gdal_translate -of Gtiff -co "COMPRESS=JPEG" -co "JPEG_QUALITY=75" sa1.tif
sa1_compressed.tif
I hit the following error :
ERROR 1: JPEGSetupEncode:PhotometricInterpretation 3 not allowed for JPEG

Googling for this error, I found this an existing bug. Not sure of my
findings. Some info on this can be helpful.

Now for Option 2,
On my Geoserver 1.7.2 binary setup, I do not find the "Image Pyramid plugin"
option in the drop down when I create a New Coverage Store in Geoserver.
How can make the Image Pyramid plugin options available to Geoserver ?

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,
you are missing one step in your procedure, plus you could also add
one more to optimize.
Specifically:

1> when you converto to geotiff you might want to compress jpeg with
quality 0.75 (visually lossless) or lzw (lossless) to reduce file size
I usually do
gdal_translate -of GTiff -co "TILED=YES" -co "BLOCKXSIZE=512" -co
"BLOCKYSIZE=512" -co "COMPRESS=JPEG" -co "JPEG_QUALITY=75" input.jp2
out.tiff

2> you should use also use gdaladdo on your files to add overviews,
otherwise things will be slow

I usually do something like
gdaladdo -r average input.tiff 2 4 8 16 32 64 128

Final notice :
If you have jp2 files you might want to try out the imageio-ext gdal
extension that should handle them natively via MRSID

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 Fri, Feb 13, 2009 at 6:01 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

Hi Simone,
I am following the other thread that you referred.
As you have said there, I converted the rasters first to GeoTiff format.
But the problem is when I convert my JPEG2000 image tile of size 4 MB to
GeoTiff using gdal_translate tool, the generated TIFF file is of size
300MB
!!
gdal_translate command used :
gdal_translate -of GTiff -co "TILED=YES" input.jp2 out.tiff

After, I create an overview with 4 steps using gdaladdo, the final tiff
file
size is aprrox 400 MB.

Now, I create a mosaic shape file using gdaltindex and feed it to
Geoserver
Coverage.

My raster contains a tile of 16 images.

Geoserver cannot handle 16 images each of size 300MB+.

There is something wrong in my basic understanding i feel.

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,
a few thoughts:
1> a mosaic of geotiff is probably the best option you have on the
plate, you just have to preprocess them correctly. this post might
give you some hints :
http://www.nabble.com/Getting-started-with-geoserver-to21931740.html

2> as I already said, support for jpg in standard java and imageio is
far from being optimal, but still your error is a bit strange. Can you
send over one of the jpegs as well as reporting exactly how you
created it?

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, Feb 12, 2009 at 5:25 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

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.

Now when setting up the coverage for the same, the following exception
was
thrown:

javax.media.jai.util.ImagingException: All factories fail for the
operation
"ImageRead"

And the stack trace is as follows :

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)

        at
org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:431)
        at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:236)
        at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:119
6)
        at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487
)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1093)
        at
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCha
racterEncodingFilter.java:108)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:264)
        at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(Filt
erSecurityInterceptor.java:107)
        at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(Fi
lterSecurityInterceptor.java:72)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTra
nslationFilter.java:110)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFil
ter(AnonymousProcessingFilter.java:125)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(R
ememberMeProcessingFilter.java:142)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doF
ilter(SecurityContextHolderAwareRequestFilter.java:81)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProces
singFilter.java:217)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:1
06)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilte
r(HttpSessionContextIntegrationFilter.java:229)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.jav
a:148)
        at
org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.j
ava:98)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:73)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.geoserver.filters.ReverseProxyFilter.doFilter(ReverseProxyFilter.
java:170)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:41)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:3
60)
        at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.jav
a:216)
        at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:1
81)
        at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:7
26)
        at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)

        at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHand
lerCollection.java:206)
        at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.
java:114)
        at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:1
52)
        at org.mortbay.jetty.Server.handle(Server.java:324)
        at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:50
5)
        at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnectio
n.java:842)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
        at
org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
        at
org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
        at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.ja
va:395)
        at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool
.java:450)

My setup is as folows :
Geoserver : 1.7.2
JDK :1.5.0_14
JAI :1.1.4
ImageIo : 1.2

Assuming, ImageIO cannot read the JPEG, I used the latest nightly
build
of
JAI & IMageIO but to no avail.
Any workaround on this problem ?

Regards,
Suvajit

My galleria @ http://www.flickr.com/photos/jeet_sen

On Mon, Feb 9, 2009 at 9:50 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

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&gt;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
>
>

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

--
View this message in context:
http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p21990397.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p22031799.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi Simone,

"Mosaic did not work" is not at all a generic statement .. it is a specific
statement :-).
Or I should say, i could not make Mosaic work for me using tiled images.
Please excuse me if you found my statement a bit offensive. I am sorry for
that. I will work with you on this till the problem is solved.

1> I added overview to my tiles using gdaladdo with 5 levels of 2 4 8 16
32.
    Now my properties file reads:
    Name=sabah5
    Levels=0.2,0.2 0.4,0.4 0.8,0.8 1.6,1.6 3.2,3.2
    LevelsNum=5
    Envelope2D=137000.0,2984000.0 152000.0,2996000.0
    NumFiles=16

    Geoserver failed to register the coverage store with this value in
properties file stating error of :
     "Invalid url: 'file:coverages/sabah5/sabah5.shp' for format
type:'ImageMosaic'.

     I am doubtful that I am not passing proper values for Levels in
properties as it has no relation to the native resolution of 0.3m per pixel.
     Hope, if you can provide some directions on this.

2> Ok I will try creating a overview on my untiled raster and create a
Coveragestore in geoserver out of it.

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,

1> Mosaic did not work is a bit generic as a statement, I'd need more
info. Anyway, I suspect you are still not adding overviews to your
data, is that correct?

2> If your input tiff is 250 mb you do not need to tile it or to
create a pyramid, just add overviews to it using gdaladdo.

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 Mon, Feb 16, 2009 at 6:24 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

Hi Simone,
Thanks for the suggestions on setting up Image Mosaic on Geoserver.
But creating mosaic from the tiled rasters finally did not work.

So, I tried to go the other way round. I joined the tiles in
GlobalMapper
to create a single image.
Then I tiled the image using gdal_retile tool and created a mosaic from
it.
This time it worked.
My input TIFF was of a size of 250MB.
I created 60 tiles out of it each on an average size of 10MB.

Now though on the higher zoom levels the performance is good but on
minimum zoom it is taking consirderably very high time to load. Now this
means, I have to optimize this.
I feel the options are :
1. Compress the source TIFF file and then create tile from it to reduce
the
effective total size.
2. Switch to ImagePyramid from ImageMosaic

Now for Option 1,
I tried to compress the TIFF using gdal_translate using the following
command :
gdal_translate -of Gtiff -co "COMPRESS=JPEG" -co "JPEG_QUALITY=75"
sa1.tif
sa1_compressed.tif
I hit the following error :
ERROR 1: JPEGSetupEncode:PhotometricInterpretation 3 not allowed for JPEG

Googling for this error, I found this an existing bug. Not sure of my
findings. Some info on this can be helpful.

Now for Option 2,
On my Geoserver 1.7.2 binary setup, I do not find the "Image Pyramid
plugin"
option in the drop down when I create a New Coverage Store in Geoserver.
How can make the Image Pyramid plugin options available to Geoserver ?

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,
you are missing one step in your procedure, plus you could also add
one more to optimize.
Specifically:

1> when you converto to geotiff you might want to compress jpeg with
quality 0.75 (visually lossless) or lzw (lossless) to reduce file size
I usually do
gdal_translate -of GTiff -co "TILED=YES" -co "BLOCKXSIZE=512" -co
"BLOCKYSIZE=512" -co "COMPRESS=JPEG" -co "JPEG_QUALITY=75" input.jp2
out.tiff

2> you should use also use gdaladdo on your files to add overviews,
otherwise things will be slow

I usually do something like
gdaladdo -r average input.tiff 2 4 8 16 32 64 128

Final notice :
If you have jp2 files you might want to try out the imageio-ext gdal
extension that should handle them natively via MRSID

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 Fri, Feb 13, 2009 at 6:01 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

Hi Simone,
I am following the other thread that you referred.
As you have said there, I converted the rasters first to GeoTiff
format.
But the problem is when I convert my JPEG2000 image tile of size 4 MB
to
GeoTiff using gdal_translate tool, the generated TIFF file is of size
300MB
!!
gdal_translate command used :
gdal_translate -of GTiff -co "TILED=YES" input.jp2 out.tiff

After, I create an overview with 4 steps using gdaladdo, the final tiff
file
size is aprrox 400 MB.

Now, I create a mosaic shape file using gdaltindex and feed it to
Geoserver
Coverage.

My raster contains a tile of 16 images.

Geoserver cannot handle 16 images each of size 300MB+.

There is something wrong in my basic understanding i feel.

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,
a few thoughts:
1> a mosaic of geotiff is probably the best option you have on the
plate, you just have to preprocess them correctly. this post might
give you some hints :
http://www.nabble.com/Getting-started-with-geoserver-to21931740.html

2> as I already said, support for jpg in standard java and imageio is
far from being optimal, but still your error is a bit strange. Can you
send over one of the jpegs as well as reporting exactly how you
created it?

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, Feb 12, 2009 at 5:25 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

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.

Now when setting up the coverage for the same, the following
exception
was
thrown:

javax.media.jai.util.ImagingException: All factories fail for the
operation
"ImageRead"

And the stack trace is as follows :

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)

        at
org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:431)
        at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:236)
        at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:119
6)
        at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)

        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487
)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1093)
        at
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCha
racterEncodingFilter.java:108)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:264)
        at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(Filt
erSecurityInterceptor.java:107)
        at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(Fi
lterSecurityInterceptor.java:72)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTra
nslationFilter.java:110)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFil
ter(AnonymousProcessingFilter.java:125)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(R
ememberMeProcessingFilter.java:142)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doF
ilter(SecurityContextHolderAwareRequestFilter.java:81)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProces
singFilter.java:217)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:1
06)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilte
r(HttpSessionContextIntegrationFilter.java:229)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.jav
a:148)
        at
org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.j
ava:98)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:73)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.geoserver.filters.ReverseProxyFilter.doFilter(ReverseProxyFilter.
java:170)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:41)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:3
60)
        at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.jav
a:216)
        at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:1
81)
        at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:7
26)
        at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)

        at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHand
lerCollection.java:206)
        at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.
java:114)
        at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:1
52)
        at org.mortbay.jetty.Server.handle(Server.java:324)
        at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:50
5)
        at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnectio
n.java:842)
        at
org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
        at
org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
        at
org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
        at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.ja
va:395)
        at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool
.java:450)

My setup is as folows :
Geoserver : 1.7.2
JDK :1.5.0_14
JAI :1.1.4
ImageIo : 1.2

Assuming, ImageIO cannot read the JPEG, I used the latest nightly
build
of
JAI & IMageIO but to no avail.
Any workaround on this problem ?

Regards,
Suvajit

My galleria @ http://www.flickr.com/photos/jeet_sen

On Mon, Feb 9, 2009 at 9:50 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

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&gt;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
>
>

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

--
View this message in context:
http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p21990397.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context:
http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p22031799.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p22032849.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Ciao Suvajit,
don't worry, no offense taken just trying to better understand issues :slight_smile:

1>I suspect there might be an error in the properties file (some
parameters are missing anyway) or in the index. Try adding the
following two lines to the properties file:

AbsolutePath=false
ExpandToRGB=false

How did you build the index and the properties file? Also, can you
use a more detailed log level for GeoServer so that we can have a
better idea about where the problem is?
If you can you can even upload the index file, the property and 2 of
the tiles to our FTP server, I will give you the details off list.

2> If your geotiff is just 250 mb tiling it and then adding embedded
overview should do the trick.

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 Mon, Feb 16, 2009 at 8:46 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

Hi Simone,

"Mosaic did not work" is not at all a generic statement .. it is a specific
statement :-).
Or I should say, i could not make Mosaic work for me using tiled images.
Please excuse me if you found my statement a bit offensive. I am sorry for
that. I will work with you on this till the problem is solved.

1> I added overview to my tiles using gdaladdo with 5 levels of 2 4 8 16
32.
   Now my properties file reads:
   Name=sabah5
   Levels=0.2,0.2 0.4,0.4 0.8,0.8 1.6,1.6 3.2,3.2
   LevelsNum=5
   Envelope2D=137000.0,2984000.0 152000.0,2996000.0
   NumFiles=16

   Geoserver failed to register the coverage store with this value in
properties file stating error of :
    "Invalid url: 'file:coverages/sabah5/sabah5.shp' for format
type:'ImageMosaic'.

    I am doubtful that I am not passing proper values for Levels in
properties as it has no relation to the native resolution of 0.3m per pixel.
    Hope, if you can provide some directions on this.

2> Ok I will try creating a overview on my untiled raster and create a
Coveragestore in geoserver out of it.

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,

1> Mosaic did not work is a bit generic as a statement, I'd need more
info. Anyway, I suspect you are still not adding overviews to your
data, is that correct?

2> If your input tiff is 250 mb you do not need to tile it or to
create a pyramid, just add overviews to it using gdaladdo.

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 Mon, Feb 16, 2009 at 6:24 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

Hi Simone,
Thanks for the suggestions on setting up Image Mosaic on Geoserver.
But creating mosaic from the tiled rasters finally did not work.

So, I tried to go the other way round. I joined the tiles in
GlobalMapper
to create a single image.
Then I tiled the image using gdal_retile tool and created a mosaic from
it.
This time it worked.
My input TIFF was of a size of 250MB.
I created 60 tiles out of it each on an average size of 10MB.

Now though on the higher zoom levels the performance is good but on
minimum zoom it is taking consirderably very high time to load. Now this
means, I have to optimize this.
I feel the options are :
1. Compress the source TIFF file and then create tile from it to reduce
the
effective total size.
2. Switch to ImagePyramid from ImageMosaic

Now for Option 1,
I tried to compress the TIFF using gdal_translate using the following
command :
gdal_translate -of Gtiff -co "COMPRESS=JPEG" -co "JPEG_QUALITY=75"
sa1.tif
sa1_compressed.tif
I hit the following error :
ERROR 1: JPEGSetupEncode:PhotometricInterpretation 3 not allowed for JPEG

Googling for this error, I found this an existing bug. Not sure of my
findings. Some info on this can be helpful.

Now for Option 2,
On my Geoserver 1.7.2 binary setup, I do not find the "Image Pyramid
plugin"
option in the drop down when I create a New Coverage Store in Geoserver.
How can make the Image Pyramid plugin options available to Geoserver ?

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,
you are missing one step in your procedure, plus you could also add
one more to optimize.
Specifically:

1> when you converto to geotiff you might want to compress jpeg with
quality 0.75 (visually lossless) or lzw (lossless) to reduce file size
I usually do
gdal_translate -of GTiff -co "TILED=YES" -co "BLOCKXSIZE=512" -co
"BLOCKYSIZE=512" -co "COMPRESS=JPEG" -co "JPEG_QUALITY=75" input.jp2
out.tiff

2> you should use also use gdaladdo on your files to add overviews,
otherwise things will be slow

I usually do something like
gdaladdo -r average input.tiff 2 4 8 16 32 64 128

Final notice :
If you have jp2 files you might want to try out the imageio-ext gdal
extension that should handle them natively via MRSID

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 Fri, Feb 13, 2009 at 6:01 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

Hi Simone,
I am following the other thread that you referred.
As you have said there, I converted the rasters first to GeoTiff
format.
But the problem is when I convert my JPEG2000 image tile of size 4 MB
to
GeoTiff using gdal_translate tool, the generated TIFF file is of size
300MB
!!
gdal_translate command used :
gdal_translate -of GTiff -co "TILED=YES" input.jp2 out.tiff

After, I create an overview with 4 steps using gdaladdo, the final tiff
file
size is aprrox 400 MB.

Now, I create a mosaic shape file using gdaltindex and feed it to
Geoserver
Coverage.

My raster contains a tile of 16 images.

Geoserver cannot handle 16 images each of size 300MB+.

There is something wrong in my basic understanding i feel.

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,
a few thoughts:
1> a mosaic of geotiff is probably the best option you have on the
plate, you just have to preprocess them correctly. this post might
give you some hints :
http://www.nabble.com/Getting-started-with-geoserver-to21931740.html

2> as I already said, support for jpg in standard java and imageio is
far from being optimal, but still your error is a bit strange. Can you
send over one of the jpegs as well as reporting exactly how you
created it?

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, Feb 12, 2009 at 5:25 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

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.

Now when setting up the coverage for the same, the following
exception
was
thrown:

javax.media.jai.util.ImagingException: All factories fail for the
operation
"ImageRead"

And the stack trace is as follows :

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)

        at
org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:431)
        at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:236)
        at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:119
6)
        at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)

        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487
)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1093)
        at
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCha
racterEncodingFilter.java:108)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:264)
        at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(Filt
erSecurityInterceptor.java:107)
        at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(Fi
lterSecurityInterceptor.java:72)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTra
nslationFilter.java:110)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFil
ter(AnonymousProcessingFilter.java:125)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(R
ememberMeProcessingFilter.java:142)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doF
ilter(SecurityContextHolderAwareRequestFilter.java:81)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProces
singFilter.java:217)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:1
06)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilte
r(HttpSessionContextIntegrationFilter.java:229)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.jav
a:148)
        at
org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.j
ava:98)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:73)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.geoserver.filters.ReverseProxyFilter.doFilter(ReverseProxyFilter.
java:170)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:41)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:3
60)
        at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.jav
a:216)
        at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:1
81)
        at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:7
26)
        at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)

        at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHand
lerCollection.java:206)
        at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.
java:114)
        at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:1
52)
        at org.mortbay.jetty.Server.handle(Server.java:324)
        at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:50
5)
        at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnectio
n.java:842)
        at
org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
        at
org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
        at
org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
        at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.ja
va:395)
        at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool
.java:450)

My setup is as folows :
Geoserver : 1.7.2
JDK :1.5.0_14
JAI :1.1.4
ImageIo : 1.2

Assuming, ImageIO cannot read the JPEG, I used the latest nightly
build
of
JAI & IMageIO but to no avail.
Any workaround on this problem ?

Regards,
Suvajit

My galleria @ http://www.flickr.com/photos/jeet_sen

On Mon, Feb 9, 2009 at 9:50 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

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&gt;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
>
>

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

--
View this message in context:
http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p21990397.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context:
http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p22031799.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p22032849.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi Simone,

Here goes the steps http://www.nabble.com/file/p22034426/sabah5.rar
sabah5.rar http://www.nabble.com/file/p22034426/sabah5.properties
sabah5.properties http://www.nabble.com/file/p22034426/sabah5.prj
sabah5.prj i followed :

1. Converted source JPEG2000 files to GeoTIFF using gdal_translate :
    for %%i in (*.jp2) do
     gdal_translate -of GTiff -co "TILED=YES" -co "BLOCKXSIZE=512" -co
"BLOCKYSIZE=512" -co "COMPRESS=JPEG" -co "JPEG_QUALITY=75" %%i %%i.tif

2. Added overview to each tile using gdaladdo cmd:
    for %%i in (*.tif) do
      gdaladdo -r average %%i.tif 2 4 8 16 32

3. Created index shape of the file using gdaltindex :
    gdaltindex -tileindex location sabah5 *.tif

4. Create Projection file sabah5.prj using EPSG:2071 (Libya LTM Zone 8)

5. Define the PROPERTIES file manually following the guidelines given in the
ImageMosaic setup tutorial.

6. Define CoverageStore in Geoserver.

I am uploading :
1. Shape index file
2. Properties file
3. Projection file
4. 2 sample JPEG2000 files (sorry could not upload a file of 8MB size as
normal file uploader is not allowing to transfer file of that size.. let me
know the ftp way)

For 1>
Adding the two new parameters did not make much difference.
I am using the default logging for Geoserver.. and there is no error/warning
message in the log.

Now for the 2>
I have to host 8 zones, the rasters for each zone is about 250MB. The total
raster file is is almost 2GB.
Does overview is sufficient for that amount of data ?

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,
don't worry, no offense taken just trying to better understand issues :slight_smile:

1>I suspect there might be an error in the properties file (some
parameters are missing anyway) or in the index. Try adding the
following two lines to the properties file:

AbsolutePath=false
ExpandToRGB=false

How did you build the index and the properties file? Also, can you
use a more detailed log level for GeoServer so that we can have a
better idea about where the problem is?
If you can you can even upload the index file, the property and 2 of
the tiles to our FTP server, I will give you the details off list.

2> If your geotiff is just 250 mb tiling it and then adding embedded
overview should do the trick.

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 Mon, Feb 16, 2009 at 8:46 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

Hi Simone,

"Mosaic did not work" is not at all a generic statement .. it is a
specific
statement :-).
Or I should say, i could not make Mosaic work for me using tiled images.
Please excuse me if you found my statement a bit offensive. I am sorry
for
that. I will work with you on this till the problem is solved.

1> I added overview to my tiles using gdaladdo with 5 levels of 2 4 8 16
32.
   Now my properties file reads:
   Name=sabah5
   Levels=0.2,0.2 0.4,0.4 0.8,0.8 1.6,1.6 3.2,3.2
   LevelsNum=5
   Envelope2D=137000.0,2984000.0 152000.0,2996000.0
   NumFiles=16

   Geoserver failed to register the coverage store with this value in
properties file stating error of :
    "Invalid url: 'file:coverages/sabah5/sabah5.shp' for format
type:'ImageMosaic'.

    I am doubtful that I am not passing proper values for Levels in
properties as it has no relation to the native resolution of 0.3m per
pixel.
    Hope, if you can provide some directions on this.

2> Ok I will try creating a overview on my untiled raster and create a
Coveragestore in geoserver out of it.

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,

1> Mosaic did not work is a bit generic as a statement, I'd need more
info. Anyway, I suspect you are still not adding overviews to your
data, is that correct?

2> If your input tiff is 250 mb you do not need to tile it or to
create a pyramid, just add overviews to it using gdaladdo.

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 Mon, Feb 16, 2009 at 6:24 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

Hi Simone,
Thanks for the suggestions on setting up Image Mosaic on Geoserver.
But creating mosaic from the tiled rasters finally did not work.

So, I tried to go the other way round. I joined the tiles in
GlobalMapper
to create a single image.
Then I tiled the image using gdal_retile tool and created a mosaic
from
it.
This time it worked.
My input TIFF was of a size of 250MB.
I created 60 tiles out of it each on an average size of 10MB.

Now though on the higher zoom levels the performance is good but on
minimum zoom it is taking consirderably very high time to load. Now
this
means, I have to optimize this.
I feel the options are :
1. Compress the source TIFF file and then create tile from it to reduce
the
effective total size.
2. Switch to ImagePyramid from ImageMosaic

Now for Option 1,
I tried to compress the TIFF using gdal_translate using the following
command :
gdal_translate -of Gtiff -co "COMPRESS=JPEG" -co "JPEG_QUALITY=75"
sa1.tif
sa1_compressed.tif
I hit the following error :
ERROR 1: JPEGSetupEncode:PhotometricInterpretation 3 not allowed for
JPEG

Googling for this error, I found this an existing bug. Not sure of my
findings. Some info on this can be helpful.

Now for Option 2,
On my Geoserver 1.7.2 binary setup, I do not find the "Image Pyramid
plugin"
option in the drop down when I create a New Coverage Store in
Geoserver.
How can make the Image Pyramid plugin options available to Geoserver ?

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,
you are missing one step in your procedure, plus you could also add
one more to optimize.
Specifically:

1> when you converto to geotiff you might want to compress jpeg with
quality 0.75 (visually lossless) or lzw (lossless) to reduce file size
I usually do
gdal_translate -of GTiff -co "TILED=YES" -co "BLOCKXSIZE=512" -co
"BLOCKYSIZE=512" -co "COMPRESS=JPEG" -co "JPEG_QUALITY=75" input.jp2
out.tiff

2> you should use also use gdaladdo on your files to add overviews,
otherwise things will be slow

I usually do something like
gdaladdo -r average input.tiff 2 4 8 16 32 64 128

Final notice :
If you have jp2 files you might want to try out the imageio-ext gdal
extension that should handle them natively via MRSID

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 Fri, Feb 13, 2009 at 6:01 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

Hi Simone,
I am following the other thread that you referred.
As you have said there, I converted the rasters first to GeoTiff
format.
But the problem is when I convert my JPEG2000 image tile of size 4 MB
to
GeoTiff using gdal_translate tool, the generated TIFF file is of size
300MB
!!
gdal_translate command used :
gdal_translate -of GTiff -co "TILED=YES" input.jp2 out.tiff

After, I create an overview with 4 steps using gdaladdo, the final
tiff
file
size is aprrox 400 MB.

Now, I create a mosaic shape file using gdaltindex and feed it to
Geoserver
Coverage.

My raster contains a tile of 16 images.

Geoserver cannot handle 16 images each of size 300MB+.

There is something wrong in my basic understanding i feel.

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,
a few thoughts:
1> a mosaic of geotiff is probably the best option you have on the
plate, you just have to preprocess them correctly. this post might
give you some hints :
http://www.nabble.com/Getting-started-with-geoserver-to21931740.html

2> as I already said, support for jpg in standard java and imageio
is
far from being optimal, but still your error is a bit strange. Can
you
send over one of the jpegs as well as reporting exactly how you
created it?

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, Feb 12, 2009 at 5:25 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

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.

Now when setting up the coverage for the same, the following
exception
was
thrown:

javax.media.jai.util.ImagingException: All factories fail for the
operation
"ImageRead"

And the stack trace is as follows :

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)

        at
org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:431)
        at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:236)
        at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:119
6)
        at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)

        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487
)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1093)
        at
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCha
racterEncodingFilter.java:108)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:264)
        at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(Filt
erSecurityInterceptor.java:107)
        at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(Fi
lterSecurityInterceptor.java:72)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTra
nslationFilter.java:110)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFil
ter(AnonymousProcessingFilter.java:125)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(R
ememberMeProcessingFilter.java:142)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doF
ilter(SecurityContextHolderAwareRequestFilter.java:81)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProces
singFilter.java:217)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:1
06)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilte
r(HttpSessionContextIntegrationFilter.java:229)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.jav
a:148)
        at
org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.j
ava:98)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:73)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.geoserver.filters.ReverseProxyFilter.doFilter(ReverseProxyFilter.
java:170)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:41)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:3
60)
        at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.jav
a:216)
        at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:1
81)
        at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:7
26)
        at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)

        at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHand
lerCollection.java:206)
        at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.
java:114)
        at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:1
52)
        at org.mortbay.jetty.Server.handle(Server.java:324)
        at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:50
5)
        at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnectio
n.java:842)
        at
org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
        at
org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
        at
org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
        at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.ja
va:395)
        at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool
.java:450)

My setup is as folows :
Geoserver : 1.7.2
JDK :1.5.0_14
JAI :1.1.4
ImageIo : 1.2

Assuming, ImageIO cannot read the JPEG, I used the latest nightly
build
of
JAI & IMageIO but to no avail.
Any workaround on this problem ?

Regards,
Suvajit

My galleria @ http://www.flickr.com/photos/jeet_sen

On Mon, Feb 9, 2009 at 9:50 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

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&gt;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
>
>

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

--
View this message in context:
http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p21990397.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source
code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source
code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context:
http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p22031799.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context:
http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p22032849.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p22034426.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Ciao Suvajit,
I gave a quick try to your test files ( when I will have the images I
will play with them as well).
I am not sure how you generated the prj file but geoserver is not able
to parse. I opened it up with an HEX editor and I noticed that there
are trailing hidden chars. I am not sure if they are present in yuor
original file or if they were added when you sent them, anyway I would
recommend you use this definition
http://spatialreference.org/ref/epsg/2071/ogcwkt/.

I will tell you more when you'll send over the raster data.

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, Feb 16, 2009 at 11:00 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

Hi Simone,

Here goes the steps http://www.nabble.com/file/p22034426/sabah5.rar
sabah5.rar http://www.nabble.com/file/p22034426/sabah5.properties
sabah5.properties http://www.nabble.com/file/p22034426/sabah5.prj
sabah5.prj i followed :

1. Converted source JPEG2000 files to GeoTIFF using gdal_translate :
   for %%i in (*.jp2) do
    gdal_translate -of GTiff -co "TILED=YES" -co "BLOCKXSIZE=512" -co
"BLOCKYSIZE=512" -co "COMPRESS=JPEG" -co "JPEG_QUALITY=75" %%i %%i.tif

2. Added overview to each tile using gdaladdo cmd:
   for %%i in (*.tif) do
     gdaladdo -r average %%i.tif 2 4 8 16 32

3. Created index shape of the file using gdaltindex :
   gdaltindex -tileindex location sabah5 *.tif

4. Create Projection file sabah5.prj using EPSG:2071 (Libya LTM Zone 8)

5. Define the PROPERTIES file manually following the guidelines given in the
ImageMosaic setup tutorial.

6. Define CoverageStore in Geoserver.

I am uploading :
1. Shape index file
2. Properties file
3. Projection file
4. 2 sample JPEG2000 files (sorry could not upload a file of 8MB size as
normal file uploader is not allowing to transfer file of that size.. let me
know the ftp way)

For 1>
Adding the two new parameters did not make much difference.
I am using the default logging for Geoserver.. and there is no error/warning
message in the log.

Now for the 2>
I have to host 8 zones, the rasters for each zone is about 250MB. The total
raster file is is almost 2GB.
Does overview is sufficient for that amount of data ?

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,
don't worry, no offense taken just trying to better understand issues :slight_smile:

1>I suspect there might be an error in the properties file (some
parameters are missing anyway) or in the index. Try adding the
following two lines to the properties file:

AbsolutePath=false
ExpandToRGB=false

How did you build the index and the properties file? Also, can you
use a more detailed log level for GeoServer so that we can have a
better idea about where the problem is?
If you can you can even upload the index file, the property and 2 of
the tiles to our FTP server, I will give you the details off list.

2> If your geotiff is just 250 mb tiling it and then adding embedded
overview should do the trick.

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 Mon, Feb 16, 2009 at 8:46 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

Hi Simone,

"Mosaic did not work" is not at all a generic statement .. it is a
specific
statement :-).
Or I should say, i could not make Mosaic work for me using tiled images.
Please excuse me if you found my statement a bit offensive. I am sorry
for
that. I will work with you on this till the problem is solved.

1> I added overview to my tiles using gdaladdo with 5 levels of 2 4 8 16
32.
   Now my properties file reads:
   Name=sabah5
   Levels=0.2,0.2 0.4,0.4 0.8,0.8 1.6,1.6 3.2,3.2
   LevelsNum=5
   Envelope2D=137000.0,2984000.0 152000.0,2996000.0
   NumFiles=16

   Geoserver failed to register the coverage store with this value in
properties file stating error of :
    "Invalid url: 'file:coverages/sabah5/sabah5.shp' for format
type:'ImageMosaic'.

    I am doubtful that I am not passing proper values for Levels in
properties as it has no relation to the native resolution of 0.3m per
pixel.
    Hope, if you can provide some directions on this.

2> Ok I will try creating a overview on my untiled raster and create a
Coveragestore in geoserver out of it.

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,

1> Mosaic did not work is a bit generic as a statement, I'd need more
info. Anyway, I suspect you are still not adding overviews to your
data, is that correct?

2> If your input tiff is 250 mb you do not need to tile it or to
create a pyramid, just add overviews to it using gdaladdo.

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 Mon, Feb 16, 2009 at 6:24 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

Hi Simone,
Thanks for the suggestions on setting up Image Mosaic on Geoserver.
But creating mosaic from the tiled rasters finally did not work.

So, I tried to go the other way round. I joined the tiles in
GlobalMapper
to create a single image.
Then I tiled the image using gdal_retile tool and created a mosaic
from
it.
This time it worked.
My input TIFF was of a size of 250MB.
I created 60 tiles out of it each on an average size of 10MB.

Now though on the higher zoom levels the performance is good but on
minimum zoom it is taking consirderably very high time to load. Now
this
means, I have to optimize this.
I feel the options are :
1. Compress the source TIFF file and then create tile from it to reduce
the
effective total size.
2. Switch to ImagePyramid from ImageMosaic

Now for Option 1,
I tried to compress the TIFF using gdal_translate using the following
command :
gdal_translate -of Gtiff -co "COMPRESS=JPEG" -co "JPEG_QUALITY=75"
sa1.tif
sa1_compressed.tif
I hit the following error :
ERROR 1: JPEGSetupEncode:PhotometricInterpretation 3 not allowed for
JPEG

Googling for this error, I found this an existing bug. Not sure of my
findings. Some info on this can be helpful.

Now for Option 2,
On my Geoserver 1.7.2 binary setup, I do not find the "Image Pyramid
plugin"
option in the drop down when I create a New Coverage Store in
Geoserver.
How can make the Image Pyramid plugin options available to Geoserver ?

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,
you are missing one step in your procedure, plus you could also add
one more to optimize.
Specifically:

1> when you converto to geotiff you might want to compress jpeg with
quality 0.75 (visually lossless) or lzw (lossless) to reduce file size
I usually do
gdal_translate -of GTiff -co "TILED=YES" -co "BLOCKXSIZE=512" -co
"BLOCKYSIZE=512" -co "COMPRESS=JPEG" -co "JPEG_QUALITY=75" input.jp2
out.tiff

2> you should use also use gdaladdo on your files to add overviews,
otherwise things will be slow

I usually do something like
gdaladdo -r average input.tiff 2 4 8 16 32 64 128

Final notice :
If you have jp2 files you might want to try out the imageio-ext gdal
extension that should handle them natively via MRSID

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 Fri, Feb 13, 2009 at 6:01 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

Hi Simone,
I am following the other thread that you referred.
As you have said there, I converted the rasters first to GeoTiff
format.
But the problem is when I convert my JPEG2000 image tile of size 4 MB
to
GeoTiff using gdal_translate tool, the generated TIFF file is of size
300MB
!!
gdal_translate command used :
gdal_translate -of GTiff -co "TILED=YES" input.jp2 out.tiff

After, I create an overview with 4 steps using gdaladdo, the final
tiff
file
size is aprrox 400 MB.

Now, I create a mosaic shape file using gdaltindex and feed it to
Geoserver
Coverage.

My raster contains a tile of 16 images.

Geoserver cannot handle 16 images each of size 300MB+.

There is something wrong in my basic understanding i feel.

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,
a few thoughts:
1> a mosaic of geotiff is probably the best option you have on the
plate, you just have to preprocess them correctly. this post might
give you some hints :
http://www.nabble.com/Getting-started-with-geoserver-to21931740.html

2> as I already said, support for jpg in standard java and imageio
is
far from being optimal, but still your error is a bit strange. Can
you
send over one of the jpegs as well as reporting exactly how you
created it?

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, Feb 12, 2009 at 5:25 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

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.

Now when setting up the coverage for the same, the following
exception
was
thrown:

javax.media.jai.util.ImagingException: All factories fail for the
operation
"ImageRead"

And the stack trace is as follows :

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)

        at
org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:431)
        at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:236)
        at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:119
6)
        at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)

        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487
)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1093)
        at
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCha
racterEncodingFilter.java:108)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:264)
        at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(Filt
erSecurityInterceptor.java:107)
        at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(Fi
lterSecurityInterceptor.java:72)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTra
nslationFilter.java:110)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFil
ter(AnonymousProcessingFilter.java:125)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(R
ememberMeProcessingFilter.java:142)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doF
ilter(SecurityContextHolderAwareRequestFilter.java:81)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProces
singFilter.java:217)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:1
06)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilte
r(HttpSessionContextIntegrationFilter.java:229)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.jav
a:148)
        at
org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.j
ava:98)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:73)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.geoserver.filters.ReverseProxyFilter.doFilter(ReverseProxyFilter.
java:170)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:41)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:3
60)
        at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.jav
a:216)
        at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:1
81)
        at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:7
26)
        at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)

        at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHand
lerCollection.java:206)
        at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.
java:114)
        at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:1
52)
        at org.mortbay.jetty.Server.handle(Server.java:324)
        at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:50
5)
        at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnectio
n.java:842)
        at
org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
        at
org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
        at
org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
        at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.ja
va:395)
        at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool
.java:450)

My setup is as folows :
Geoserver : 1.7.2
JDK :1.5.0_14
JAI :1.1.4
ImageIo : 1.2

Assuming, ImageIO cannot read the JPEG, I used the latest nightly
build
of
JAI & IMageIO but to no avail.
Any workaround on this problem ?

Regards,
Suvajit

My galleria @ http://www.flickr.com/photos/jeet_sen

On Mon, Feb 9, 2009 at 9:50 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

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&gt;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
>
>

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

--
View this message in context:
http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p21990397.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source
code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source
code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context:
http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p22031799.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context:
http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p22032849.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p22034426.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi Simone,
  At last I could find the error in the PROPERTIES file. The file has some
leading hidden characters.
  The characters were shown in the good old editor edit.exe. I removed them
and now the coverage store is registered successfully.
  Thanks a lot for your time and support. If you still need the image I will
upload the same.

  I have just another point to discuss.
  I created 5 levels in the overview, namely 2 4 8 16 & 32.
  But now in the PROPERTIES file if I define the levels as follows:

  Levels=0.2,0.2 0.4,0.4 0.8,0.8 1.6,1.6 3.2,3.2
  LevelsNum=5

  But in the resultant raster layer, when I view it in OpenLayers, I find
some tiles are not in proper place and haphazard. But if I define the
PROPERTIES file as following:
  Levels=0.1,0.1
  LevelsNum=1
  
  the raster layer in displayed fine. Also gdalinfo of the tiles states that
there are 5 overview for the tiles.
  So what will the right value for the Levels for an overview of 2,4,8,16,32
and native pixel size of 0.1,0.1

Regards,
Suvajit
  
Simone Giannecchini wrote:

Ciao Suvajit,
I gave a quick try to your test files ( when I will have the images I
will play with them as well).
I am not sure how you generated the prj file but geoserver is not able
to parse. I opened it up with an HEX editor and I noticed that there
are trailing hidden chars. I am not sure if they are present in yuor
original file or if they were added when you sent them, anyway I would
recommend you use this definition
http://spatialreference.org/ref/epsg/2071/ogcwkt/.

I will tell you more when you'll send over the raster data.

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, Feb 16, 2009 at 11:00 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

Hi Simone,

Here goes the steps http://www.nabble.com/file/p22034426/sabah5.rar
sabah5.rar http://www.nabble.com/file/p22034426/sabah5.properties
sabah5.properties http://www.nabble.com/file/p22034426/sabah5.prj
sabah5.prj i followed :

1. Converted source JPEG2000 files to GeoTIFF using gdal_translate :
   for %%i in (*.jp2) do
    gdal_translate -of GTiff -co "TILED=YES" -co "BLOCKXSIZE=512" -co
"BLOCKYSIZE=512" -co "COMPRESS=JPEG" -co "JPEG_QUALITY=75" %%i %%i.tif

2. Added overview to each tile using gdaladdo cmd:
   for %%i in (*.tif) do
     gdaladdo -r average %%i.tif 2 4 8 16 32

3. Created index shape of the file using gdaltindex :
   gdaltindex -tileindex location sabah5 *.tif

4. Create Projection file sabah5.prj using EPSG:2071 (Libya LTM Zone 8)

5. Define the PROPERTIES file manually following the guidelines given in
the
ImageMosaic setup tutorial.

6. Define CoverageStore in Geoserver.

I am uploading :
1. Shape index file
2. Properties file
3. Projection file
4. 2 sample JPEG2000 files (sorry could not upload a file of 8MB size as
normal file uploader is not allowing to transfer file of that size.. let
me
know the ftp way)

For 1>
Adding the two new parameters did not make much difference.
I am using the default logging for Geoserver.. and there is no
error/warning
message in the log.

Now for the 2>
I have to host 8 zones, the rasters for each zone is about 250MB. The
total
raster file is is almost 2GB.
Does overview is sufficient for that amount of data ?

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,
don't worry, no offense taken just trying to better understand issues
:slight_smile:

1>I suspect there might be an error in the properties file (some
parameters are missing anyway) or in the index. Try adding the
following two lines to the properties file:

AbsolutePath=false
ExpandToRGB=false

How did you build the index and the properties file? Also, can you
use a more detailed log level for GeoServer so that we can have a
better idea about where the problem is?
If you can you can even upload the index file, the property and 2 of
the tiles to our FTP server, I will give you the details off list.

2> If your geotiff is just 250 mb tiling it and then adding embedded
overview should do the trick.

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 Mon, Feb 16, 2009 at 8:46 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

Hi Simone,

"Mosaic did not work" is not at all a generic statement .. it is a
specific
statement :-).
Or I should say, i could not make Mosaic work for me using tiled
images.
Please excuse me if you found my statement a bit offensive. I am sorry
for
that. I will work with you on this till the problem is solved.

1> I added overview to my tiles using gdaladdo with 5 levels of 2 4 8
16
32.
   Now my properties file reads:
   Name=sabah5
   Levels=0.2,0.2 0.4,0.4 0.8,0.8 1.6,1.6 3.2,3.2
   LevelsNum=5
   Envelope2D=137000.0,2984000.0 152000.0,2996000.0
   NumFiles=16

   Geoserver failed to register the coverage store with this value in
properties file stating error of :
    "Invalid url: 'file:coverages/sabah5/sabah5.shp' for format
type:'ImageMosaic'.

    I am doubtful that I am not passing proper values for Levels in
properties as it has no relation to the native resolution of 0.3m per
pixel.
    Hope, if you can provide some directions on this.

2> Ok I will try creating a overview on my untiled raster and create a
Coveragestore in geoserver out of it.

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,

1> Mosaic did not work is a bit generic as a statement, I'd need more
info. Anyway, I suspect you are still not adding overviews to your
data, is that correct?

2> If your input tiff is 250 mb you do not need to tile it or to
create a pyramid, just add overviews to it using gdaladdo.

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 Mon, Feb 16, 2009 at 6:24 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

Hi Simone,
Thanks for the suggestions on setting up Image Mosaic on Geoserver.
But creating mosaic from the tiled rasters finally did not work.

So, I tried to go the other way round. I joined the tiles in
GlobalMapper
to create a single image.
Then I tiled the image using gdal_retile tool and created a mosaic
from
it.
This time it worked.
My input TIFF was of a size of 250MB.
I created 60 tiles out of it each on an average size of 10MB.

Now though on the higher zoom levels the performance is good but on
minimum zoom it is taking consirderably very high time to load. Now
this
means, I have to optimize this.
I feel the options are :
1. Compress the source TIFF file and then create tile from it to
reduce
the
effective total size.
2. Switch to ImagePyramid from ImageMosaic

Now for Option 1,
I tried to compress the TIFF using gdal_translate using the following
command :
gdal_translate -of Gtiff -co "COMPRESS=JPEG" -co "JPEG_QUALITY=75"
sa1.tif
sa1_compressed.tif
I hit the following error :
ERROR 1: JPEGSetupEncode:PhotometricInterpretation 3 not allowed for
JPEG

Googling for this error, I found this an existing bug. Not sure of my
findings. Some info on this can be helpful.

Now for Option 2,
On my Geoserver 1.7.2 binary setup, I do not find the "Image Pyramid
plugin"
option in the drop down when I create a New Coverage Store in
Geoserver.
How can make the Image Pyramid plugin options available to Geoserver
?

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,
you are missing one step in your procedure, plus you could also add
one more to optimize.
Specifically:

1> when you converto to geotiff you might want to compress jpeg with
quality 0.75 (visually lossless) or lzw (lossless) to reduce file
size
I usually do
gdal_translate -of GTiff -co "TILED=YES" -co "BLOCKXSIZE=512" -co
"BLOCKYSIZE=512" -co "COMPRESS=JPEG" -co "JPEG_QUALITY=75" input.jp2
out.tiff

2> you should use also use gdaladdo on your files to add overviews,
otherwise things will be slow

I usually do something like
gdaladdo -r average input.tiff 2 4 8 16 32 64 128

Final notice :
If you have jp2 files you might want to try out the imageio-ext gdal
extension that should handle them natively via MRSID

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 Fri, Feb 13, 2009 at 6:01 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

Hi Simone,
I am following the other thread that you referred.
As you have said there, I converted the rasters first to GeoTiff
format.
But the problem is when I convert my JPEG2000 image tile of size 4
MB
to
GeoTiff using gdal_translate tool, the generated TIFF file is of
size
300MB
!!
gdal_translate command used :
gdal_translate -of GTiff -co "TILED=YES" input.jp2 out.tiff

After, I create an overview with 4 steps using gdaladdo, the final
tiff
file
size is aprrox 400 MB.

Now, I create a mosaic shape file using gdaltindex and feed it to
Geoserver
Coverage.

My raster contains a tile of 16 images.

Geoserver cannot handle 16 images each of size 300MB+.

There is something wrong in my basic understanding i feel.

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,
a few thoughts:
1> a mosaic of geotiff is probably the best option you have on the
plate, you just have to preprocess them correctly. this post might
give you some hints :
http://www.nabble.com/Getting-started-with-geoserver-to21931740.html

2> as I already said, support for jpg in standard java and imageio
is
far from being optimal, but still your error is a bit strange. Can
you
send over one of the jpegs as well as reporting exactly how you
created it?

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, Feb 12, 2009 at 5:25 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

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.

Now when setting up the coverage for the same, the following
exception
was
thrown:

javax.media.jai.util.ImagingException: All factories fail for the
operation
"ImageRead"

And the stack trace is as follows :

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)

        at
org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:431)
        at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:236)
        at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:119
6)
        at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)

        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487
)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1093)
        at
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCha
racterEncodingFilter.java:108)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:264)
        at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(Filt
erSecurityInterceptor.java:107)
        at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(Fi
lterSecurityInterceptor.java:72)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTra
nslationFilter.java:110)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFil
ter(AnonymousProcessingFilter.java:125)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(R
ememberMeProcessingFilter.java:142)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doF
ilter(SecurityContextHolderAwareRequestFilter.java:81)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProces
singFilter.java:217)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:1
06)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilte
r(HttpSessionContextIntegrationFilter.java:229)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.jav
a:148)
        at
org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.j
ava:98)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:73)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.geoserver.filters.ReverseProxyFilter.doFilter(ReverseProxyFilter.
java:170)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:41)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:3
60)
        at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.jav
a:216)
        at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:1
81)
        at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:7
26)
        at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)

        at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHand
lerCollection.java:206)
        at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.
java:114)
        at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:1
52)
        at org.mortbay.jetty.Server.handle(Server.java:324)
        at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:50
5)
        at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnectio
n.java:842)
        at
org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
        at
org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
        at
org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
        at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.ja
va:395)
        at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool
.java:450)

My setup is as folows :
Geoserver : 1.7.2
JDK :1.5.0_14
JAI :1.1.4
ImageIo : 1.2

Assuming, ImageIO cannot read the JPEG, I used the latest
nightly
build
of
JAI & IMageIO but to no avail.
Any workaround on this problem ?

Regards,
Suvajit

My galleria @ http://www.flickr.com/photos/jeet_sen

On Mon, Feb 9, 2009 at 9:50 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

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&gt;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
>
>

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

--
View this message in context:
http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p21990397.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source
code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source
code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context:
http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p22031799.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source
code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source
code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context:
http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p22032849.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context:
http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p22034426.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p22039988.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Ciao Suvajit,
my best suggestion is to use the MosaicIndexBuilder to build the
relevant files once you have created the geotiff files and added
overviews.
One of the link I gave you should tell you how to use it.

Besides, well, if you can upload the data I will play with it anyway!

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 Mon, Feb 16, 2009 at 5:02 PM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

Hi Simone,
At last I could find the error in the PROPERTIES file. The file has some
leading hidden characters.
The characters were shown in the good old editor edit.exe. I removed them
and now the coverage store is registered successfully.
Thanks a lot for your time and support. If you still need the image I will
upload the same.

I have just another point to discuss.
I created 5 levels in the overview, namely 2 4 8 16 & 32.
But now in the PROPERTIES file if I define the levels as follows:

Levels=0.2,0.2 0.4,0.4 0.8,0.8 1.6,1.6 3.2,3.2
LevelsNum=5

But in the resultant raster layer, when I view it in OpenLayers, I find
some tiles are not in proper place and haphazard. But if I define the
PROPERTIES file as following:
Levels=0.1,0.1
LevelsNum=1

the raster layer in displayed fine. Also gdalinfo of the tiles states that
there are 5 overview for the tiles.
So what will the right value for the Levels for an overview of 2,4,8,16,32
and native pixel size of 0.1,0.1

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,
I gave a quick try to your test files ( when I will have the images I
will play with them as well).
I am not sure how you generated the prj file but geoserver is not able
to parse. I opened it up with an HEX editor and I noticed that there
are trailing hidden chars. I am not sure if they are present in yuor
original file or if they were added when you sent them, anyway I would
recommend you use this definition
http://spatialreference.org/ref/epsg/2071/ogcwkt/.

I will tell you more when you'll send over the raster data.

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, Feb 16, 2009 at 11:00 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

Hi Simone,

Here goes the steps http://www.nabble.com/file/p22034426/sabah5.rar
sabah5.rar http://www.nabble.com/file/p22034426/sabah5.properties
sabah5.properties http://www.nabble.com/file/p22034426/sabah5.prj
sabah5.prj i followed :

1. Converted source JPEG2000 files to GeoTIFF using gdal_translate :
   for %%i in (*.jp2) do
    gdal_translate -of GTiff -co "TILED=YES" -co "BLOCKXSIZE=512" -co
"BLOCKYSIZE=512" -co "COMPRESS=JPEG" -co "JPEG_QUALITY=75" %%i %%i.tif

2. Added overview to each tile using gdaladdo cmd:
   for %%i in (*.tif) do
     gdaladdo -r average %%i.tif 2 4 8 16 32

3. Created index shape of the file using gdaltindex :
   gdaltindex -tileindex location sabah5 *.tif

4. Create Projection file sabah5.prj using EPSG:2071 (Libya LTM Zone 8)

5. Define the PROPERTIES file manually following the guidelines given in
the
ImageMosaic setup tutorial.

6. Define CoverageStore in Geoserver.

I am uploading :
1. Shape index file
2. Properties file
3. Projection file
4. 2 sample JPEG2000 files (sorry could not upload a file of 8MB size as
normal file uploader is not allowing to transfer file of that size.. let
me
know the ftp way)

For 1>
Adding the two new parameters did not make much difference.
I am using the default logging for Geoserver.. and there is no
error/warning
message in the log.

Now for the 2>
I have to host 8 zones, the rasters for each zone is about 250MB. The
total
raster file is is almost 2GB.
Does overview is sufficient for that amount of data ?

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,
don't worry, no offense taken just trying to better understand issues
:slight_smile:

1>I suspect there might be an error in the properties file (some
parameters are missing anyway) or in the index. Try adding the
following two lines to the properties file:

AbsolutePath=false
ExpandToRGB=false

How did you build the index and the properties file? Also, can you
use a more detailed log level for GeoServer so that we can have a
better idea about where the problem is?
If you can you can even upload the index file, the property and 2 of
the tiles to our FTP server, I will give you the details off list.

2> If your geotiff is just 250 mb tiling it and then adding embedded
overview should do the trick.

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 Mon, Feb 16, 2009 at 8:46 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

Hi Simone,

"Mosaic did not work" is not at all a generic statement .. it is a
specific
statement :-).
Or I should say, i could not make Mosaic work for me using tiled
images.
Please excuse me if you found my statement a bit offensive. I am sorry
for
that. I will work with you on this till the problem is solved.

1> I added overview to my tiles using gdaladdo with 5 levels of 2 4 8
16
32.
   Now my properties file reads:
   Name=sabah5
   Levels=0.2,0.2 0.4,0.4 0.8,0.8 1.6,1.6 3.2,3.2
   LevelsNum=5
   Envelope2D=137000.0,2984000.0 152000.0,2996000.0
   NumFiles=16

   Geoserver failed to register the coverage store with this value in
properties file stating error of :
    "Invalid url: 'file:coverages/sabah5/sabah5.shp' for format
type:'ImageMosaic'.

    I am doubtful that I am not passing proper values for Levels in
properties as it has no relation to the native resolution of 0.3m per
pixel.
    Hope, if you can provide some directions on this.

2> Ok I will try creating a overview on my untiled raster and create a
Coveragestore in geoserver out of it.

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,

1> Mosaic did not work is a bit generic as a statement, I'd need more
info. Anyway, I suspect you are still not adding overviews to your
data, is that correct?

2> If your input tiff is 250 mb you do not need to tile it or to
create a pyramid, just add overviews to it using gdaladdo.

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 Mon, Feb 16, 2009 at 6:24 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

Hi Simone,
Thanks for the suggestions on setting up Image Mosaic on Geoserver.
But creating mosaic from the tiled rasters finally did not work.

So, I tried to go the other way round. I joined the tiles in
GlobalMapper
to create a single image.
Then I tiled the image using gdal_retile tool and created a mosaic
from
it.
This time it worked.
My input TIFF was of a size of 250MB.
I created 60 tiles out of it each on an average size of 10MB.

Now though on the higher zoom levels the performance is good but on
minimum zoom it is taking consirderably very high time to load. Now
this
means, I have to optimize this.
I feel the options are :
1. Compress the source TIFF file and then create tile from it to
reduce
the
effective total size.
2. Switch to ImagePyramid from ImageMosaic

Now for Option 1,
I tried to compress the TIFF using gdal_translate using the following
command :
gdal_translate -of Gtiff -co "COMPRESS=JPEG" -co "JPEG_QUALITY=75"
sa1.tif
sa1_compressed.tif
I hit the following error :
ERROR 1: JPEGSetupEncode:PhotometricInterpretation 3 not allowed for
JPEG

Googling for this error, I found this an existing bug. Not sure of my
findings. Some info on this can be helpful.

Now for Option 2,
On my Geoserver 1.7.2 binary setup, I do not find the "Image Pyramid
plugin"
option in the drop down when I create a New Coverage Store in
Geoserver.
How can make the Image Pyramid plugin options available to Geoserver
?

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,
you are missing one step in your procedure, plus you could also add
one more to optimize.
Specifically:

1> when you converto to geotiff you might want to compress jpeg with
quality 0.75 (visually lossless) or lzw (lossless) to reduce file
size
I usually do
gdal_translate -of GTiff -co "TILED=YES" -co "BLOCKXSIZE=512" -co
"BLOCKYSIZE=512" -co "COMPRESS=JPEG" -co "JPEG_QUALITY=75" input.jp2
out.tiff

2> you should use also use gdaladdo on your files to add overviews,
otherwise things will be slow

I usually do something like
gdaladdo -r average input.tiff 2 4 8 16 32 64 128

Final notice :
If you have jp2 files you might want to try out the imageio-ext gdal
extension that should handle them natively via MRSID

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 Fri, Feb 13, 2009 at 6:01 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

Hi Simone,
I am following the other thread that you referred.
As you have said there, I converted the rasters first to GeoTiff
format.
But the problem is when I convert my JPEG2000 image tile of size 4
MB
to
GeoTiff using gdal_translate tool, the generated TIFF file is of
size
300MB
!!
gdal_translate command used :
gdal_translate -of GTiff -co "TILED=YES" input.jp2 out.tiff

After, I create an overview with 4 steps using gdaladdo, the final
tiff
file
size is aprrox 400 MB.

Now, I create a mosaic shape file using gdaltindex and feed it to
Geoserver
Coverage.

My raster contains a tile of 16 images.

Geoserver cannot handle 16 images each of size 300MB+.

There is something wrong in my basic understanding i feel.

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,
a few thoughts:
1> a mosaic of geotiff is probably the best option you have on the
plate, you just have to preprocess them correctly. this post might
give you some hints :
http://www.nabble.com/Getting-started-with-geoserver-to21931740.html

2> as I already said, support for jpg in standard java and imageio
is
far from being optimal, but still your error is a bit strange. Can
you
send over one of the jpegs as well as reporting exactly how you
created it?

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, Feb 12, 2009 at 5:25 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

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.

Now when setting up the coverage for the same, the following
exception
was
thrown:

javax.media.jai.util.ImagingException: All factories fail for the
operation
"ImageRead"

And the stack trace is as follows :

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)

        at
org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:431)
        at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:236)
        at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:119
6)
        at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)

        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487
)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1093)
        at
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCha
racterEncodingFilter.java:108)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:264)
        at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(Filt
erSecurityInterceptor.java:107)
        at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(Fi
lterSecurityInterceptor.java:72)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTra
nslationFilter.java:110)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFil
ter(AnonymousProcessingFilter.java:125)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(R
ememberMeProcessingFilter.java:142)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doF
ilter(SecurityContextHolderAwareRequestFilter.java:81)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProces
singFilter.java:217)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:1
06)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilte
r(HttpSessionContextIntegrationFilter.java:229)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.jav
a:148)
        at
org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.j
ava:98)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:73)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.geoserver.filters.ReverseProxyFilter.doFilter(ReverseProxyFilter.
java:170)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:41)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:3
60)
        at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.jav
a:216)
        at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:1
81)
        at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:7
26)
        at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)

        at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHand
lerCollection.java:206)
        at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.
java:114)
        at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:1
52)
        at org.mortbay.jetty.Server.handle(Server.java:324)
        at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:50
5)
        at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnectio
n.java:842)
        at
org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
        at
org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
        at
org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
        at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.ja
va:395)
        at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool
.java:450)

My setup is as folows :
Geoserver : 1.7.2
JDK :1.5.0_14
JAI :1.1.4
ImageIo : 1.2

Assuming, ImageIO cannot read the JPEG, I used the latest
nightly
build
of
JAI & IMageIO but to no avail.
Any workaround on this problem ?

Regards,
Suvajit

My galleria @ http://www.flickr.com/photos/jeet_sen

On Mon, Feb 9, 2009 at 9:50 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

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&gt;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
>
>

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

--
View this message in context:
http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p21990397.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source
code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source
code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context:
http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p22031799.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source
code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source
code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context:
http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p22032849.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context:
http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p22034426.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p22039988.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi Simone,
Please send me the path on the FTP server to put the image tiles.

Considering your suggestion I checked out MosaicIndexBuilder source from

http://svn.geotools.org/trunk/modules/unsupported/coveragetools

Now in the coveragetools directory i tried a maven build using cmd : mvn clean install
I get this error:

[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: org.geotools
ArtifactId: unsupported
Version: 2.6-SNAPSHOT

Reason: Unable to download the artifact from any repository

org.geotools:unsupported:pom:2.6-SNAPSHOT

from the specified remote repositories:
central (http://repo1.maven.org/maven2)

What should i do?

Regards,
Suvajit

My galleria @ http://www.flickr.com/photos/jeet_sen

On Mon, Feb 16, 2009 at 10:43 PM, Simone Giannecchini <simone.giannecchini@anonymised.com> wrote:

Ciao Suvajit,
my best suggestion is to use the MosaicIndexBuilder to build the
relevant files once you have created the geotiff files and added
overviews.
One of the link I gave you should tell you how to use it.

Besides, well, if you can upload the data I will play with it anyway!

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 Mon, Feb 16, 2009 at 5:02 PM, Suvajit Sengupta

<suvajit.sengupta@anonymised.com> wrote:

Hi Simone,
At last I could find the error in the PROPERTIES file. The file has some
leading hidden characters.
The characters were shown in the good old editor edit.exe. I removed them
and now the coverage store is registered successfully.
Thanks a lot for your time and support. If you still need the image I will
upload the same.

I have just another point to discuss.
I created 5 levels in the overview, namely 2 4 8 16 & 32.
But now in the PROPERTIES file if I define the levels as follows:

Levels=0.2,0.2 0.4,0.4 0.8,0.8 1.6,1.6 3.2,3.2
LevelsNum=5

But in the resultant raster layer, when I view it in OpenLayers, I find
some tiles are not in proper place and haphazard. But if I define the
PROPERTIES file as following:
Levels=0.1,0.1
LevelsNum=1

the raster layer in displayed fine. Also gdalinfo of the tiles states that
there are 5 overview for the tiles.
So what will the right value for the Levels for an overview of 2,4,8,16,32
and native pixel size of 0.1,0.1

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,
I gave a quick try to your test files ( when I will have the images I
will play with them as well).
I am not sure how you generated the prj file but geoserver is not able
to parse. I opened it up with an HEX editor and I noticed that there
are trailing hidden chars. I am not sure if they are present in yuor
original file or if they were added when you sent them, anyway I would
recommend you use this definition
http://spatialreference.org/ref/epsg/2071/ogcwkt/.

I will tell you more when you’ll send over the raster data.

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, Feb 16, 2009 at 11:00 AM, Suvajit Sengupta
<suvajit.sengupta@…84…> wrote:

Hi Simone,

Here goes the steps http://www.nabble.com/file/p22034426/sabah5.rar
sabah5.rar http://www.nabble.com/file/p22034426/sabah5.properties
sabah5.properties http://www.nabble.com/file/p22034426/sabah5.prj
sabah5.prj i followed :

  1. Converted source JPEG2000 files to GeoTIFF using gdal_translate :
    for %%i in (*.jp2) do
    gdal_translate -of GTiff -co “TILED=YES” -co “BLOCKXSIZE=512” -co
    “BLOCKYSIZE=512” -co “COMPRESS=JPEG” -co “JPEG_QUALITY=75” %%i %%i.tif

  2. Added overview to each tile using gdaladdo cmd:
    for %%i in (*.tif) do
    gdaladdo -r average %%i.tif 2 4 8 16 32

  3. Created index shape of the file using gdaltindex :
    gdaltindex -tileindex location sabah5 *.tif

  4. Create Projection file sabah5.prj using EPSG:2071 (Libya LTM Zone 8)

  5. Define the PROPERTIES file manually following the guidelines given in
    the
    ImageMosaic setup tutorial.

  6. Define CoverageStore in Geoserver.

I am uploading :

  1. Shape index file
  2. Properties file
  3. Projection file
  4. 2 sample JPEG2000 files (sorry could not upload a file of 8MB size as
    normal file uploader is not allowing to transfer file of that size… let
    me
    know the ftp way)

For 1>
Adding the two new parameters did not make much difference.
I am using the default logging for Geoserver… and there is no
error/warning
message in the log.

Now for the 2>
I have to host 8 zones, the rasters for each zone is about 250MB. The
total
raster file is is almost 2GB.
Does overview is sufficient for that amount of data ?

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,
don’t worry, no offense taken just trying to better understand issues
:slight_smile:

1>I suspect there might be an error in the properties file (some
parameters are missing anyway) or in the index. Try adding the
following two lines to the properties file:

AbsolutePath=false
ExpandToRGB=false

How did you build the index and the properties file? Also, can you
use a more detailed log level for GeoServer so that we can have a
better idea about where the problem is?
If you can you can even upload the index file, the property and 2 of
the tiles to our FTP server, I will give you the details off list.

2> If your geotiff is just 250 mb tiling it and then adding embedded
overview should do the trick.

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 Mon, Feb 16, 2009 at 8:46 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

Hi Simone,

“Mosaic did not work” is not at all a generic statement … it is a
specific
statement :-).
Or I should say, i could not make Mosaic work for me using tiled
images.
Please excuse me if you found my statement a bit offensive. I am sorry
for
that. I will work with you on this till the problem is solved.

1> I added overview to my tiles using gdaladdo with 5 levels of 2 4 8
16
32.
Now my properties file reads:
Name=sabah5
Levels=0.2,0.2 0.4,0.4 0.8,0.8 1.6,1.6 3.2,3.2
LevelsNum=5
Envelope2D=137000.0,2984000.0 152000.0,2996000.0
NumFiles=16

Geoserver failed to register the coverage store with this value in
properties file stating error of :
"Invalid url: ‘file:coverages/sabah5/sabah5.shp’ for format
type:‘ImageMosaic’.

I am doubtful that I am not passing proper values for Levels in
properties as it has no relation to the native resolution of 0.3m per
pixel.
Hope, if you can provide some directions on this.

2> Ok I will try creating a overview on my untiled raster and create a
Coveragestore in geoserver out of it.

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,

1> Mosaic did not work is a bit generic as a statement, I’d need more
info. Anyway, I suspect you are still not adding overviews to your
data, is that correct?

2> If your input tiff is 250 mb you do not need to tile it or to
create a pyramid, just add overviews to it using gdaladdo.

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 Mon, Feb 16, 2009 at 6:24 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

Hi Simone,
Thanks for the suggestions on setting up Image Mosaic on Geoserver.
But creating mosaic from the tiled rasters finally did not work.

So, I tried to go the other way round. I joined the tiles in
GlobalMapper
to create a single image.
Then I tiled the image using gdal_retile tool and created a mosaic
from
it.
This time it worked.
My input TIFF was of a size of 250MB.
I created 60 tiles out of it each on an average size of 10MB.

Now though on the higher zoom levels the performance is good but on
minimum zoom it is taking consirderably very high time to load. Now
this
means, I have to optimize this.
I feel the options are :

  1. Compress the source TIFF file and then create tile from it to
    reduce
    the
    effective total size.
  2. Switch to ImagePyramid from ImageMosaic

Now for Option 1,
I tried to compress the TIFF using gdal_translate using the following
command :
gdal_translate -of Gtiff -co “COMPRESS=JPEG” -co “JPEG_QUALITY=75”
sa1.tif
sa1_compressed.tif
I hit the following error :
ERROR 1: JPEGSetupEncode:PhotometricInterpretation 3 not allowed for
JPEG

Googling for this error, I found this an existing bug. Not sure of my
findings. Some info on this can be helpful.

Now for Option 2,
On my Geoserver 1.7.2 binary setup, I do not find the “Image Pyramid
plugin”
option in the drop down when I create a New Coverage Store in
Geoserver.
How can make the Image Pyramid plugin options available to Geoserver
?

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,
you are missing one step in your procedure, plus you could also add
one more to optimize.
Specifically:

1> when you converto to geotiff you might want to compress jpeg with
quality 0.75 (visually lossless) or lzw (lossless) to reduce file
size
I usually do
gdal_translate -of GTiff -co “TILED=YES” -co “BLOCKXSIZE=512” -co
“BLOCKYSIZE=512” -co “COMPRESS=JPEG” -co “JPEG_QUALITY=75” input.jp2
out.tiff

2> you should use also use gdaladdo on your files to add overviews,
otherwise things will be slow

I usually do something like
gdaladdo -r average input.tiff 2 4 8 16 32 64 128

Final notice :
If you have jp2 files you might want to try out the imageio-ext gdal
extension that should handle them natively via MRSID

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 Fri, Feb 13, 2009 at 6:01 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

Hi Simone,
I am following the other thread that you referred.
As you have said there, I converted the rasters first to GeoTiff
format.
But the problem is when I convert my JPEG2000 image tile of size 4
MB
to
GeoTiff using gdal_translate tool, the generated TIFF file is of
size
300MB
!!
gdal_translate command used :
gdal_translate -of GTiff -co “TILED=YES” input.jp2 out.tiff

After, I create an overview with 4 steps using gdaladdo, the final
tiff
file
size is aprrox 400 MB.

Now, I create a mosaic shape file using gdaltindex and feed it to
Geoserver
Coverage.

My raster contains a tile of 16 images.

Geoserver cannot handle 16 images each of size 300MB+.

There is something wrong in my basic understanding i feel.

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,
a few thoughts:
1> a mosaic of geotiff is probably the best option you have on the
plate, you just have to preprocess them correctly. this post might
give you some hints :
http://www.nabble.com/Getting-started-with-geoserver-to21931740.html

2> as I already said, support for jpg in standard java and imageio
is
far from being optimal, but still your error is a bit strange. Can
you
send over one of the jpegs as well as reporting exactly how you
created it?

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, Feb 12, 2009 at 5:25 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

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.

Now when setting up the coverage for the same, the following
exception
was
thrown:

javax.media.jai.util.ImagingException: All factories fail for the
operation
“ImageRead”

And the stack trace is as follows :

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

at
org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:431)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:236)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:119
6)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)

at
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487
)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1093)
at
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCha
racterEncodingFilter.java:108)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:264)
at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(Filt
erSecurityInterceptor.java:107)
at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(Fi
lterSecurityInterceptor.java:72)
at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
at
org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTra
nslationFilter.java:110)
at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
at
org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFil
ter(AnonymousProcessingFilter.java:125)
at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
at
org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(R
ememberMeProcessingFilter.java:142)
at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
at
org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doF
ilter(SecurityContextHolderAwareRequestFilter.java:81)
at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
at
org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProces
singFilter.java:217)
at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
at
org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:1
06)
at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
at
org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilte
r(HttpSessionContextIntegrationFilter.java:229)
at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
at
org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.jav
a:148)
at
org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.j
ava:98)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
at
org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:73)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
at
org.geoserver.filters.ReverseProxyFilter.doFilter(ReverseProxyFilter.
java:170)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
at
org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:41)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:3
60)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.jav
a:216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:1
81)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:7
26)
at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)

at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHand
lerCollection.java:206)
at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.
java:114)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:1
52)
at org.mortbay.jetty.Server.handle(Server.java:324)
at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:50
5)
at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnectio
n.java:842)
at
org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
at
org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at
org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.ja
va:395)
at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool
.java:450)

My setup is as folows :
Geoserver : 1.7.2
JDK :1.5.0_14
JAI :1.1.4
ImageIo : 1.2

Assuming, ImageIO cannot read the JPEG, I used the latest
nightly
build
of
JAI & IMageIO but to no avail.
Any workaround on this problem ?

Regards,
Suvajit

My galleria @ http://www.flickr.com/photos/jeet_sen

On Mon, Feb 9, 2009 at 9:50 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

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:

sabah_1 Generated from sabah / WCS,sabah,sabah_1 137003.15015750666 2983850.792539627 152002.40012000577 2995850.192509625 0 0 50000 40000 sabah sabah sabah 0.3 -0.3 0.0 0.0 137000.15 2995999.85 sabah GridSampleDimension[0.0,255.0] 0.0 255.0 sabah GridSampleDimension[0.0,255.0] 0.0 255.0 sabah GridSampleDimension[0.0,255.0] 0.0 255.0 EPSG:2071 EPSG:2071

IMAGEMOSAIC,GTOPO30,GEOTIFF,ARCGRID,GIF,PNG,JPEG,TIFF


nearest
neighbor,bilinear,bicubic






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.com4…>
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™
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@anonymised.comrceforge.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™
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@anonymised.comet
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Create and Deploy Rich Internet Apps outside the browser with
Adobe(R)AIR™
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


View this message in context:
http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p21990397.html
Sent from the GeoServer - User mailing list archive at Nabble.com.


Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source
code:
SFAD
http://p.sf.net/sfu/XcvMzF8H


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source
code:
SFAD
http://p.sf.net/sfu/XcvMzF8H


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


View this message in context:
http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p22031799.html
Sent from the GeoServer - User mailing list archive at Nabble.com.


Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source
code:
SFAD
http://p.sf.net/sfu/XcvMzF8H


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source
code:
SFAD
http://p.sf.net/sfu/XcvMzF8H


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


View this message in context:
http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p22032849.html
Sent from the GeoServer - User mailing list archive at Nabble.com.


Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


View this message in context:
http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p22034426.html
Sent from the GeoServer - User mailing list archive at Nabble.com.


Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

View this message in context: http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p22039988.html

Sent from the GeoServer - User mailing list archive at Nabble.com.


Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi,
Instead of leveraging on trunk, I suggest to you to checkout the 2.5.x branch from the following repo:
http://svn.osgeo.org/geotools/branches/2.5.x/
Then you can do the same things you have tried on trunk.
Let us know.

Regards,
Daniele

On Tue, Feb 17, 2009 at 9:51 AM, Suvajit Sengupta <suvajit.sengupta@anonymised.com> wrote:

Hi Simone,
Please send me the path on the FTP server to put the image tiles.

Considering your suggestion I checked out MosaicIndexBuilder source from

http://svn.geotools.org/trunk/modules/unsupported/coveragetools

Now in the coveragetools directory i tried a maven build using cmd : mvn clean install
I get this error:

[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: org.geotools
ArtifactId: unsupported
Version: 2.6-SNAPSHOT

Reason: Unable to download the artifact from any repository

org.geotools:unsupported:pom:2.6-SNAPSHOT

from the specified remote repositories:
central (http://repo1.maven.org/maven2)

What should i do?

Regards,
Suvajit

My galleria @ http://www.flickr.com/photos/jeet_sen

On Mon, Feb 16, 2009 at 10:43 PM, Simone Giannecchini <simone.giannecchini@anonymised.com> wrote:

Ciao Suvajit,
my best suggestion is to use the MosaicIndexBuilder to build the
relevant files once you have created the geotiff files and added
overviews.
One of the link I gave you should tell you how to use it.

Besides, well, if you can upload the data I will play with it anyway!

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 Mon, Feb 16, 2009 at 5:02 PM, Suvajit Sengupta

<suvajit.sengupta@anonymised.com> wrote:

Hi Simone,
At last I could find the error in the PROPERTIES file. The file has some
leading hidden characters.
The characters were shown in the good old editor edit.exe. I removed them
and now the coverage store is registered successfully.
Thanks a lot for your time and support. If you still need the image I will
upload the same.

I have just another point to discuss.
I created 5 levels in the overview, namely 2 4 8 16 & 32.
But now in the PROPERTIES file if I define the levels as follows:

Levels=0.2,0.2 0.4,0.4 0.8,0.8 1.6,1.6 3.2,3.2
LevelsNum=5

But in the resultant raster layer, when I view it in OpenLayers, I find
some tiles are not in proper place and haphazard. But if I define the
PROPERTIES file as following:
Levels=0.1,0.1
LevelsNum=1

the raster layer in displayed fine. Also gdalinfo of the tiles states that
there are 5 overview for the tiles.
So what will the right value for the Levels for an overview of 2,4,8,16,32
and native pixel size of 0.1,0.1

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,
I gave a quick try to your test files ( when I will have the images I
will play with them as well).
I am not sure how you generated the prj file but geoserver is not able
to parse. I opened it up with an HEX editor and I noticed that there
are trailing hidden chars. I am not sure if they are present in yuor
original file or if they were added when you sent them, anyway I would
recommend you use this definition
http://spatialreference.org/ref/epsg/2071/ogcwkt/.

I will tell you more when you’ll send over the raster data.

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, Feb 16, 2009 at 11:00 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

Hi Simone,

Here goes the steps http://www.nabble.com/file/p22034426/sabah5.rar
sabah5.rar http://www.nabble.com/file/p22034426/sabah5.properties
sabah5.properties http://www.nabble.com/file/p22034426/sabah5.prj
sabah5.prj i followed :

  1. Converted source JPEG2000 files to GeoTIFF using gdal_translate :
    for %%i in (*.jp2) do
    gdal_translate -of GTiff -co “TILED=YES” -co “BLOCKXSIZE=512” -co
    “BLOCKYSIZE=512” -co “COMPRESS=JPEG” -co “JPEG_QUALITY=75” %%i %%i.tif

  2. Added overview to each tile using gdaladdo cmd:
    for %%i in (*.tif) do
    gdaladdo -r average %%i.tif 2 4 8 16 32

  3. Created index shape of the file using gdaltindex :
    gdaltindex -tileindex location sabah5 *.tif

  4. Create Projection file sabah5.prj using EPSG:2071 (Libya LTM Zone 8)

  5. Define the PROPERTIES file manually following the guidelines given in
    the
    ImageMosaic setup tutorial.

  6. Define CoverageStore in Geoserver.

I am uploading :

  1. Shape index file
  2. Properties file
  3. Projection file
  4. 2 sample JPEG2000 files (sorry could not upload a file of 8MB size as
    normal file uploader is not allowing to transfer file of that size… let
    me
    know the ftp way)

For 1>
Adding the two new parameters did not make much difference.
I am using the default logging for Geoserver… and there is no
error/warning
message in the log.

Now for the 2>
I have to host 8 zones, the rasters for each zone is about 250MB. The
total
raster file is is almost 2GB.
Does overview is sufficient for that amount of data ?

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,
don’t worry, no offense taken just trying to better understand issues
:slight_smile:

1>I suspect there might be an error in the properties file (some
parameters are missing anyway) or in the index. Try adding the
following two lines to the properties file:

AbsolutePath=false
ExpandToRGB=false

How did you build the index and the properties file? Also, can you
use a more detailed log level for GeoServer so that we can have a
better idea about where the problem is?
If you can you can even upload the index file, the property and 2 of
the tiles to our FTP server, I will give you the details off list.

2> If your geotiff is just 250 mb tiling it and then adding embedded
overview should do the trick.

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 Mon, Feb 16, 2009 at 8:46 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

Hi Simone,

“Mosaic did not work” is not at all a generic statement … it is a
specific
statement :-).
Or I should say, i could not make Mosaic work for me using tiled
images.
Please excuse me if you found my statement a bit offensive. I am sorry
for
that. I will work with you on this till the problem is solved.

1> I added overview to my tiles using gdaladdo with 5 levels of 2 4 8
16
32.
Now my properties file reads:
Name=sabah5
Levels=0.2,0.2 0.4,0.4 0.8,0.8 1.6,1.6 3.2,3.2
LevelsNum=5
Envelope2D=137000.0,2984000.0 152000.0,2996000.0
NumFiles=16

Geoserver failed to register the coverage store with this value in
properties file stating error of :
"Invalid url: ‘file:coverages/sabah5/sabah5.shp’ for format
type:‘ImageMosaic’.

I am doubtful that I am not passing proper values for Levels in
properties as it has no relation to the native resolution of 0.3m per
pixel.
Hope, if you can provide some directions on this.

2> Ok I will try creating a overview on my untiled raster and create a
Coveragestore in geoserver out of it.

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,

1> Mosaic did not work is a bit generic as a statement, I’d need more
info. Anyway, I suspect you are still not adding overviews to your
data, is that correct?

2> If your input tiff is 250 mb you do not need to tile it or to
create a pyramid, just add overviews to it using gdaladdo.

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 Mon, Feb 16, 2009 at 6:24 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

Hi Simone,
Thanks for the suggestions on setting up Image Mosaic on Geoserver.
But creating mosaic from the tiled rasters finally did not work.

So, I tried to go the other way round. I joined the tiles in
GlobalMapper
to create a single image.
Then I tiled the image using gdal_retile tool and created a mosaic
from
it.
This time it worked.
My input TIFF was of a size of 250MB.
I created 60 tiles out of it each on an average size of 10MB.

Now though on the higher zoom levels the performance is good but on
minimum zoom it is taking consirderably very high time to load. Now
this
means, I have to optimize this.
I feel the options are :

  1. Compress the source TIFF file and then create tile from it to
    reduce
    the
    effective total size.
  2. Switch to ImagePyramid from ImageMosaic

Now for Option 1,
I tried to compress the TIFF using gdal_translate using the following
command :
gdal_translate -of Gtiff -co “COMPRESS=JPEG” -co “JPEG_QUALITY=75”
sa1.tif
sa1_compressed.tif
I hit the following error :
ERROR 1: JPEGSetupEncode:PhotometricInterpretation 3 not allowed for
JPEG

Googling for this error, I found this an existing bug. Not sure of my
findings. Some info on this can be helpful.

Now for Option 2,
On my Geoserver 1.7.2 binary setup, I do not find the “Image Pyramid
plugin”
option in the drop down when I create a New Coverage Store in
Geoserver.
How can make the Image Pyramid plugin options available to Geoserver
?

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,
you are missing one step in your procedure, plus you could also add
one more to optimize.
Specifically:

1> when you converto to geotiff you might want to compress jpeg with
quality 0.75 (visually lossless) or lzw (lossless) to reduce file
size
I usually do
gdal_translate -of GTiff -co “TILED=YES” -co “BLOCKXSIZE=512” -co
“BLOCKYSIZE=512” -co “COMPRESS=JPEG” -co “JPEG_QUALITY=75” input.jp2
out.tiff

2> you should use also use gdaladdo on your files to add overviews,
otherwise things will be slow

I usually do something like
gdaladdo -r average input.tiff 2 4 8 16 32 64 128

Final notice :
If you have jp2 files you might want to try out the imageio-ext gdal
extension that should handle them natively via MRSID

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 Fri, Feb 13, 2009 at 6:01 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

Hi Simone,
I am following the other thread that you referred.
As you have said there, I converted the rasters first to GeoTiff
format.
But the problem is when I convert my JPEG2000 image tile of size 4
MB
to
GeoTiff using gdal_translate tool, the generated TIFF file is of
size
300MB
!!
gdal_translate command used :
gdal_translate -of GTiff -co “TILED=YES” input.jp2 out.tiff

After, I create an overview with 4 steps using gdaladdo, the final
tiff
file
size is aprrox 400 MB.

Now, I create a mosaic shape file using gdaltindex and feed it to
Geoserver
Coverage.

My raster contains a tile of 16 images.

Geoserver cannot handle 16 images each of size 300MB+.

There is something wrong in my basic understanding i feel.

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,
a few thoughts:
1> a mosaic of geotiff is probably the best option you have on the
plate, you just have to preprocess them correctly. this post might
give you some hints :
http://www.nabble.com/Getting-started-with-geoserver-to21931740.html

2> as I already said, support for jpg in standard java and imageio
is
far from being optimal, but still your error is a bit strange. Can
you
send over one of the jpegs as well as reporting exactly how you
created it?

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, Feb 12, 2009 at 5:25 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

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.

Now when setting up the coverage for the same, the following
exception
was
thrown:

javax.media.jai.util.ImagingException: All factories fail for the
operation
“ImageRead”

And the stack trace is as follows :

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

at
org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:431)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:236)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:119
6)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)

at
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487
)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1093)
at
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCha
racterEncodingFilter.java:108)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:264)
at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(Filt
erSecurityInterceptor.java:107)
at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(Fi
lterSecurityInterceptor.java:72)
at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
at
org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTra
nslationFilter.java:110)
at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
at
org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFil
ter(AnonymousProcessingFilter.java:125)
at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
at
org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(R
ememberMeProcessingFilter.java:142)
at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
at
org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doF
ilter(SecurityContextHolderAwareRequestFilter.java:81)
at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
at
org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProces
singFilter.java:217)
at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
at
org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:1
06)
at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
at
org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilte
r(HttpSessionContextIntegrationFilter.java:229)
at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
at
org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.jav
a:148)
at
org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.j
ava:98)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
at
org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:73)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
at
org.geoserver.filters.ReverseProxyFilter.doFilter(ReverseProxyFilter.
java:170)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
at
org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:41)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:3
60)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.jav
a:216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:1
81)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:7
26)
at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)

at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHand
lerCollection.java:206)
at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.
java:114)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:1
52)
at org.mortbay.jetty.Server.handle(Server.java:324)
at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:50
5)
at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnectio
n.java:842)
at
org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
at
org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at
org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.ja
va:395)
at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool
.java:450)

My setup is as folows :
Geoserver : 1.7.2
JDK :1.5.0_14
JAI :1.1.4
ImageIo : 1.2

Assuming, ImageIO cannot read the JPEG, I used the latest
nightly
build
of
JAI & IMageIO but to no avail.
Any workaround on this problem ?

Regards,
Suvajit

My galleria @ http://www.flickr.com/photos/jeet_sen

On Mon, Feb 9, 2009 at 9:50 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

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:

sabah_1 Generated from sabah / WCS,sabah,sabah_1 137003.15015750666 2983850.792539627 152002.40012000577 2995850.192509625 0 0 50000 40000 sabah sabah sabah 0.3 -0.3 0.0 0.0 137000.15 2995999.85 sabah GridSampleDimension[0.0,255.0] 0.0 255.0 sabah GridSampleDimension[0.0,255.0] 0.0 255.0 sabah GridSampleDimension[0.0,255.0] 0.0 255.0 EPSG:2071 EPSG:2071

IMAGEMOSAIC,GTOPO30,GEOTIFF,ARCGRID,GIF,PNG,JPEG,TIFF


nearest
neighbor,bilinear,bicubic






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™
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™
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@anonymised.comists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Create and Deploy Rich Internet Apps outside the browser with
Adobe(R)AIR™
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@anonymised.comnet
https://lists.sourceforge.net/lists/listinfo/geoserver-users


View this message in context:
http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p21990397.html
Sent from the GeoServer - User mailing list archive at Nabble.com.


Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source
code:
SFAD
http://p.sf.net/sfu/XcvMzF8H


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source
code:
SFAD
http://p.sf.net/sfu/XcvMzF8H


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


View this message in context:
http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p22031799.html
Sent from the GeoServer - User mailing list archive at Nabble.com.


Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source
code:
SFAD
http://p.sf.net/sfu/XcvMzF8H


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source
code:
SFAD
http://p.sf.net/sfu/XcvMzF8H


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


View this message in context:
http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p22032849.html
Sent from the GeoServer - User mailing list archive at Nabble.com.


Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


View this message in context:
http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p22034426.html
Sent from the GeoServer - User mailing list archive at Nabble.com.


Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

View this message in context: http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p22039988.html

Sent from the GeoServer - User mailing list archive at Nabble.com.


Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Eng. Daniele Romagnoli
Software Engineer

GeoSolutions S.A.S.
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 328 0559267

http://www.geo-solutions.it


Hi Simone,
  Finally I could make the mosaic work on Geoserver. I did not have to
retile either.
  Just converted JPG2000 to Geotiff, added 7 levels of overview and created
the index shape file.
  In the PROPERTIES file I had to just include the base level i.e 0.1,0.1 in
the Levels field.
  Now my properties file reads:
    Name=sabah
    Levels=0.1,0.1 0.2,0.2 0.4,0.4 0.8,0.8 1.6,1.6 3.2,3.2
    LevelsNum=5
    Envelope2D=137000.0,2984000.0 152000.0,2996000.0
    NumFiles=16

  Thanks a lot for your time and support.
  
  My total GeoTIFF raster data tiles add up to 2.7GB, makes 4.2 GB when
overview is added for the same.
  But image loading and display in Geoserver is quite fast.
  But now I have to work on two things :
  1. To make image loading faster as the site when accessed over internet is
a bit slow.
  2. To use MosaicIndexBuilder for creating Mosaic.
      Though I could make mvn build of the package. But mvn install is
failing at verify phase stating a NullPointerException.
      
Regards,
Suvajit

Suvajit Sengupta wrote:

Hi Simone,

"Mosaic did not work" is not at all a generic statement .. it is a
specific statement :-).
Or I should say, i could not make Mosaic work for me using tiled images.
Please excuse me if you found my statement a bit offensive. I am sorry for
that. I will work with you on this till the problem is solved.

1> I added overview to my tiles using gdaladdo with 5 levels of 2 4 8 16
32.
    Now my properties file reads:
    Name=sabah5
    Levels=0.2,0.2 0.4,0.4 0.8,0.8 1.6,1.6 3.2,3.2
    LevelsNum=5
    Envelope2D=137000.0,2984000.0 152000.0,2996000.0
    NumFiles=16

    Geoserver failed to register the coverage store with this value in
properties file stating error of :
     "Invalid url: 'file:coverages/sabah5/sabah5.shp' for format
type:'ImageMosaic'.

     I am doubtful that I am not passing proper values for Levels in
properties as it has no relation to the native resolution of 0.3m per
pixel.
     Hope, if you can provide some directions on this.

2> Ok I will try creating a overview on my untiled raster and create a
Coveragestore in geoserver out of it.

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,

1> Mosaic did not work is a bit generic as a statement, I'd need more
info. Anyway, I suspect you are still not adding overviews to your
data, is that correct?

2> If your input tiff is 250 mb you do not need to tile it or to
create a pyramid, just add overviews to it using gdaladdo.

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 Mon, Feb 16, 2009 at 6:24 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

Hi Simone,
Thanks for the suggestions on setting up Image Mosaic on Geoserver.
But creating mosaic from the tiled rasters finally did not work.

So, I tried to go the other way round. I joined the tiles in
GlobalMapper
to create a single image.
Then I tiled the image using gdal_retile tool and created a mosaic from
it.
This time it worked.
My input TIFF was of a size of 250MB.
I created 60 tiles out of it each on an average size of 10MB.

Now though on the higher zoom levels the performance is good but on
minimum zoom it is taking consirderably very high time to load. Now this
means, I have to optimize this.
I feel the options are :
1. Compress the source TIFF file and then create tile from it to reduce
the
effective total size.
2. Switch to ImagePyramid from ImageMosaic

Now for Option 1,
I tried to compress the TIFF using gdal_translate using the following
command :
gdal_translate -of Gtiff -co "COMPRESS=JPEG" -co "JPEG_QUALITY=75"
sa1.tif
sa1_compressed.tif
I hit the following error :
ERROR 1: JPEGSetupEncode:PhotometricInterpretation 3 not allowed for
JPEG

Googling for this error, I found this an existing bug. Not sure of my
findings. Some info on this can be helpful.

Now for Option 2,
On my Geoserver 1.7.2 binary setup, I do not find the "Image Pyramid
plugin"
option in the drop down when I create a New Coverage Store in Geoserver.
How can make the Image Pyramid plugin options available to Geoserver ?

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,
you are missing one step in your procedure, plus you could also add
one more to optimize.
Specifically:

1> when you converto to geotiff you might want to compress jpeg with
quality 0.75 (visually lossless) or lzw (lossless) to reduce file size
I usually do
gdal_translate -of GTiff -co "TILED=YES" -co "BLOCKXSIZE=512" -co
"BLOCKYSIZE=512" -co "COMPRESS=JPEG" -co "JPEG_QUALITY=75" input.jp2
out.tiff

2> you should use also use gdaladdo on your files to add overviews,
otherwise things will be slow

I usually do something like
gdaladdo -r average input.tiff 2 4 8 16 32 64 128

Final notice :
If you have jp2 files you might want to try out the imageio-ext gdal
extension that should handle them natively via MRSID

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 Fri, Feb 13, 2009 at 6:01 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

Hi Simone,
I am following the other thread that you referred.
As you have said there, I converted the rasters first to GeoTiff
format.
But the problem is when I convert my JPEG2000 image tile of size 4 MB
to
GeoTiff using gdal_translate tool, the generated TIFF file is of size
300MB
!!
gdal_translate command used :
gdal_translate -of GTiff -co "TILED=YES" input.jp2 out.tiff

After, I create an overview with 4 steps using gdaladdo, the final
tiff
file
size is aprrox 400 MB.

Now, I create a mosaic shape file using gdaltindex and feed it to
Geoserver
Coverage.

My raster contains a tile of 16 images.

Geoserver cannot handle 16 images each of size 300MB+.

There is something wrong in my basic understanding i feel.

Regards,
Suvajit

Simone Giannecchini wrote:

Ciao Suvajit,
a few thoughts:
1> a mosaic of geotiff is probably the best option you have on the
plate, you just have to preprocess them correctly. this post might
give you some hints :
http://www.nabble.com/Getting-started-with-geoserver-to21931740.html

2> as I already said, support for jpg in standard java and imageio is
far from being optimal, but still your error is a bit strange. Can
you
send over one of the jpegs as well as reporting exactly how you
created it?

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, Feb 12, 2009 at 5:25 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

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.

Now when setting up the coverage for the same, the following
exception
was
thrown:

javax.media.jai.util.ImagingException: All factories fail for the
operation
"ImageRead"

And the stack trace is as follows :

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)

        at
org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:431)
        at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:236)
        at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:119
6)
        at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)

        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487
)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1093)
        at
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCha
racterEncodingFilter.java:108)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:264)
        at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(Filt
erSecurityInterceptor.java:107)
        at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(Fi
lterSecurityInterceptor.java:72)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTra
nslationFilter.java:110)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFil
ter(AnonymousProcessingFilter.java:125)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(R
ememberMeProcessingFilter.java:142)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doF
ilter(SecurityContextHolderAwareRequestFilter.java:81)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProces
singFilter.java:217)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:1
06)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilte
r(HttpSessionContextIntegrationFilter.java:229)
        at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
ilterChainProxy.java:274)
        at
org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.jav
a:148)
        at
org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.j
ava:98)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:73)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.geoserver.filters.ReverseProxyFilter.doFilter(ReverseProxyFilter.
java:170)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:41)
        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:3
60)
        at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.jav
a:216)
        at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:1
81)
        at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:7
26)
        at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)

        at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHand
lerCollection.java:206)
        at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.
java:114)
        at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:1
52)
        at org.mortbay.jetty.Server.handle(Server.java:324)
        at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:50
5)
        at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnectio
n.java:842)
        at
org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
        at
org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
        at
org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
        at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.ja
va:395)
        at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool
.java:450)

My setup is as folows :
Geoserver : 1.7.2
JDK :1.5.0_14
JAI :1.1.4
ImageIo : 1.2

Assuming, ImageIO cannot read the JPEG, I used the latest nightly
build
of
JAI & IMageIO but to no avail.
Any workaround on this problem ?

Regards,
Suvajit

My galleria @ http://www.flickr.com/photos/jeet_sen

On Mon, Feb 9, 2009 at 9:50 AM, Suvajit Sengupta
<suvajit.sengupta@anonymised.com> wrote:

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&gt;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
>
>

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

--
View this message in context:
http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p21990397.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source
code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context:
http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p22031799.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://www.nabble.com/Unable-to-setup-WCS-for-Image-mosaic-tp21851243p22114520.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Suvajit Sengupta ha scritto:

Hi Simone,
  Finally I could make the mosaic work on Geoserver. I did not have to
retile either.
  Just converted JPG2000 to Geotiff, added 7 levels of overview and created
the index shape file.
  In the PROPERTIES file I had to just include the base level i.e 0.1,0.1 in
the Levels field.
  Now my properties file reads:
    Name=sabah
    Levels=0.1,0.1 0.2,0.2 0.4,0.4 0.8,0.8 1.6,1.6 3.2,3.2
    LevelsNum=5
    Envelope2D=137000.0,2984000.0 152000.0,2996000.0
    NumFiles=16

  Thanks a lot for your time and support.
    My total GeoTIFF raster data tiles add up to 2.7GB, makes 4.2 GB when
overview is added for the same.
  But image loading and display in Geoserver is quite fast. But now I have to work on two things :
  1. To make image loading faster as the site when accessed over internet is
a bit slow.

Did you install the JAI and JAI ImageIO native extensions?
(you can download installers for those at jai.dev.java.net and jai-imageio.dev.java.net).

Besides that, if the access is fast locally but slow over the network,
the issue is probably with the size of the generated images. Are you
using the jpeg format? PNG usually generates way too big files
with imagery data.

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Hi Andrea,
Yes, I have both JAI & JAI ImageIO installed.

My source files were JPEG2000. Since Geoserver does not recognises JPEG2000 for ImageMosaic, I have converted them to GeoTIFF with 75% JPEG compression using gdal utility.
Actually, the raster geoTIFF tiles ( 6000X6000) after conversion are of size in the range of 10 -14 MB. My JPEG2000 tiles are of size 5.2MB.
I presume, i need to reduce the size of each tile to make it faster. What are the options to reduce this raster tile size without losing much on quality ?

Regards,
Suvajit

My galleria @ http://www.flickr.com/photos/jeet_sen

On Fri, Feb 20, 2009 at 1:40 PM, Andrea Aime <aaime@anonymised.com1…> wrote:

Suvajit Sengupta ha scritto:

Hi Simone,
Finally I could make the mosaic work on Geoserver. I did not have to
retile either.
Just converted JPG2000 to Geotiff, added 7 levels of overview and created
the index shape file.
In the PROPERTIES file I had to just include the base level i.e 0.1,0.1 in
the Levels field.

Now my properties file reads:
Name=sabah

Levels=0.1,0.1 0.2,0.2 0.4,0.4 0.8,0.8 1.6,1.6 3.2,3.2
LevelsNum=5

Envelope2D=137000.0,2984000.0 152000.0,2996000.0
NumFiles=16

Thanks a lot for your time and support.

My total GeoTIFF raster data tiles add up to 2.7GB, makes 4.2 GB when
overview is added for the same.
But image loading and display in Geoserver is quite fast. But now I have to work on two things :

  1. To make image loading faster as the site when accessed over internet is
    a bit slow.

Did you install the JAI and JAI ImageIO native extensions?
(you can download installers for those at jai.dev.java.net and jai-imageio.dev.java.net).

Besides that, if the access is fast locally but slow over the network,
the issue is probably with the size of the generated images. Are you
using the jpeg format? PNG usually generates way too big files
with imagery data.

Cheers
Andrea


Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.