[Geoserver-users] Mosaic of 842 geotiffs

I've been doing more or less the same thing and it did the trick for me.

Instead of transforming to Geotiff with gdal_translate, I suppose.
I do the complete process with gdal_retile, this will retile your data
to uniform tiles (you can specify width, height and resolution), if you
use the option -co "TILED=yes" it will create internal tiles in your
tifs, and it will create your index too. Then I run the gdaladdo with
just 4 to 5 levels.

Hope it can help you.

Pedro

-----Original Message-----
From: acangi [mailto:aca@anonymised.com]
Sent: segunda-feira, 9 de Fevereiro de 2009 14:05
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] Mosaic of 842 geotiffs

Hello,

I try to create a mosaic of 842 of files. The files are originally tif

+

tfw
pairs, which I transform in geotiff and create 10 levels of overviews

for,

using gdaladdo. Then I make a mosaic of all the files using

gdaltindex.

Maybe a first problem : if I check the pixel size values of my

geotiffs in

the lines GeoTransform with gdalinfo, I see values going from 0.666648

to

0.666680, average is 0.666665. The x value is not necessarily the same

as

the y value. In my .properties file, I set 0.666666,0.666666 as my

first

level. Is there a problem with the different values ?

When I load the layer, I see in the logs that 797 mosaic images are
loaded,
then I get a
WARN [geotools.rendering] - operation "ImageRead" requires parameter

at

index 0 to be non-null.
java.lang.IllegalArgumentException: operation "ImageRead" requires
parameter
at index 0 to be non-null.
        at javax.media.jai.JAI.createNS(JAI.java:1087)
        at ...
Then
DEBUG [geotools.rendering] - Style cache hit ratio: NaN , hits 0,

requests

0
DEBUG [renderer.shape] - Style cache hit ratio: NaN , hits 0, requests

0

DEBUG [wms.responses] - asking delegate for write to
org.geoserver.ows.DispatcherOutputStream@anonymised.com
DEBUG [geotools.image] - Encoding input image to write out as JPEG.
DEBUG [geotools.image] - Getting a JPEG writer and configuring it.
ERROR [geoserver.ows] - java.lang.UnsatisfiedLinkError:
/opt/jdk1.6.0_11/jre/lib/amd64/libjpeg.so:
/opt/jdk1.6.0_11/jre/lib/amd64/libjpeg.so: cannot open shared object

file

: Too many open files
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at ...

Any idea if the number of files or the different values of resolution
might
be the reason of the problem ? Or do I have a problem in the creation

of

my
geotiffs ?

Alain
--
View this message in context: http://www.nabble.com/Mosaic-of-842-
geotiffs-tp21914665p21914665.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Ciao Pedro,
sorry to bother but, can I ask you to sum up what you did in the GeoServer wiki?

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 9, 2009 at 5:04 PM, Pedro S. Monteiro
<Pedro.S.Monteiro@anonymised.com> wrote:

I've been doing more or less the same thing and it did the trick for me.

Instead of transforming to Geotiff with gdal_translate, I suppose.
I do the complete process with gdal_retile, this will retile your data
to uniform tiles (you can specify width, height and resolution), if you
use the option -co "TILED=yes" it will create internal tiles in your
tifs, and it will create your index too. Then I run the gdaladdo with
just 4 to 5 levels.

Hope it can help you.

Pedro

-----Original Message-----
From: acangi [mailto:aca@anonymised.com]
Sent: segunda-feira, 9 de Fevereiro de 2009 14:05
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] Mosaic of 842 geotiffs

Hello,

I try to create a mosaic of 842 of files. The files are originally tif

+

tfw
pairs, which I transform in geotiff and create 10 levels of overviews

for,

using gdaladdo. Then I make a mosaic of all the files using

gdaltindex.

Maybe a first problem : if I check the pixel size values of my

geotiffs in

the lines GeoTransform with gdalinfo, I see values going from 0.666648

to

0.666680, average is 0.666665. The x value is not necessarily the same

as

the y value. In my .properties file, I set 0.666666,0.666666 as my

first

level. Is there a problem with the different values ?

When I load the layer, I see in the logs that 797 mosaic images are
loaded,
then I get a
WARN [geotools.rendering] - operation "ImageRead" requires parameter

at

index 0 to be non-null.
java.lang.IllegalArgumentException: operation "ImageRead" requires
parameter
at index 0 to be non-null.
        at javax.media.jai.JAI.createNS(JAI.java:1087)
        at ...
Then
DEBUG [geotools.rendering] - Style cache hit ratio: NaN , hits 0,

requests

0
DEBUG [renderer.shape] - Style cache hit ratio: NaN , hits 0, requests

0

DEBUG [wms.responses] - asking delegate for write to
org.geoserver.ows.DispatcherOutputStream@anonymised.com
DEBUG [geotools.image] - Encoding input image to write out as JPEG.
DEBUG [geotools.image] - Getting a JPEG writer and configuring it.
ERROR [geoserver.ows] - java.lang.UnsatisfiedLinkError:
/opt/jdk1.6.0_11/jre/lib/amd64/libjpeg.so:
/opt/jdk1.6.0_11/jre/lib/amd64/libjpeg.so: cannot open shared object

file

: Too many open files
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at ...

Any idea if the number of files or the different values of resolution
might
be the reason of the problem ? Or do I have a problem in the creation

of

my
geotiffs ?

Alain
--
View this message in context: http://www.nabble.com/Mosaic-of-842-
geotiffs-tp21914665p21914665.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

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

Well I've a Portuguese tutorial at
http://pedmon.wordpress.com/2008/08/20/preparacao-de-mosaico-para-geoser
ver-gdal_retile-gdaladdo/ , that I will translate and add it to
Geoserver wiki as soon as possible, hope it can help for now.

-----Original Message-----
From: simboss1@anonymised.com [mailto:simboss1@anonymised.com] On Behalf Of

Simone

Giannecchini
Sent: segunda-feira, 9 de Fevereiro de 2009 15:16
To: Pedro S. Monteiro
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Mosaic of 842 geotiffs

Ciao Pedro,
sorry to bother but, can I ask you to sum up what you did in the

GeoServer

wiki?

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 9, 2009 at 5:04 PM, Pedro S. Monteiro
<Pedro.S.Monteiro@anonymised.com> wrote:
>
>
> I've been doing more or less the same thing and it did the trick for

me.

>
> Instead of transforming to Geotiff with gdal_translate, I suppose.
> I do the complete process with gdal_retile, this will retile your

data

> to uniform tiles (you can specify width, height and resolution), if

you

> use the option -co "TILED=yes" it will create internal tiles in your
> tifs, and it will create your index too. Then I run the gdaladdo

with

> just 4 to 5 levels.
>
> Hope it can help you.
>
> Pedro
>
>> -----Original Message-----
>> From: acangi [mailto:aca@anonymised.com]
>> Sent: segunda-feira, 9 de Fevereiro de 2009 14:05
>> To: geoserver-users@lists.sourceforge.net
>> Subject: [Geoserver-users] Mosaic of 842 geotiffs
>>
>>
>> Hello,
>>
>> I try to create a mosaic of 842 of files. The files are originally

tif

> +
>> tfw
>> pairs, which I transform in geotiff and create 10 levels of

overviews

> for,
>> using gdaladdo. Then I make a mosaic of all the files using
> gdaltindex.
>>
>> Maybe a first problem : if I check the pixel size values of my
> geotiffs in
>> the lines GeoTransform with gdalinfo, I see values going from

0.666648

> to
>> 0.666680, average is 0.666665. The x value is not necessarily the

same

> as
>> the y value. In my .properties file, I set 0.666666,0.666666 as my
> first
>> level. Is there a problem with the different values ?
>>
>> When I load the layer, I see in the logs that 797 mosaic images are
>> loaded,
>> then I get a
>> WARN [geotools.rendering] - operation "ImageRead" requires

parameter

> at
>> index 0 to be non-null.
>> java.lang.IllegalArgumentException: operation "ImageRead" requires
>> parameter
>> at index 0 to be non-null.
>> at javax.media.jai.JAI.createNS(JAI.java:1087)
>> at ...
>> Then
>> DEBUG [geotools.rendering] - Style cache hit ratio: NaN , hits 0,
> requests
>> 0
>> DEBUG [renderer.shape] - Style cache hit ratio: NaN , hits 0,

requests

> 0
>> DEBUG [wms.responses] - asking delegate for write to
>> org.geoserver.ows.DispatcherOutputStream@anonymised.com
>> DEBUG [geotools.image] - Encoding input image to write out as JPEG.
>> DEBUG [geotools.image] - Getting a JPEG writer and configuring it.
>> ERROR [geoserver.ows] - java.lang.UnsatisfiedLinkError:
>> /opt/jdk1.6.0_11/jre/lib/amd64/libjpeg.so:
>> /opt/jdk1.6.0_11/jre/lib/amd64/libjpeg.so: cannot open shared

object

> file
>> : Too many open files
>> at java.lang.ClassLoader$NativeLibrary.load(Native Method)
>> at ...
>>
>> Any idea if the number of files or the different values of

resolution

>> might
>> be the reason of the problem ? Or do I have a problem in the

creation

> of
>> my
>> geotiffs ?
>>
>> Alain
>> --
>> View this message in context: http://www.nabble.com/Mosaic-of-842-
>> geotiffs-tp21914665p21914665.html
>> Sent from the GeoServer - User mailing list archive at Nabble.com.
>>
>>
>
>
>

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

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

Well,
that would be great, I might do that myself, in which case I will ping
you. ( I doubt I will find time in the near term though :-))

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 9, 2009 at 5:20 PM, Pedro S. Monteiro
<Pedro.S.Monteiro@anonymised.com> wrote:

Well I've a Portuguese tutorial at
http://pedmon.wordpress.com/2008/08/20/preparacao-de-mosaico-para-geoser
ver-gdal_retile-gdaladdo/ , that I will translate and add it to
Geoserver wiki as soon as possible, hope it can help for now.

-----Original Message-----
From: simboss1@anonymised.com [mailto:simboss1@anonymised.com] On Behalf Of

Simone

Giannecchini
Sent: segunda-feira, 9 de Fevereiro de 2009 15:16
To: Pedro S. Monteiro
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Mosaic of 842 geotiffs

Ciao Pedro,
sorry to bother but, can I ask you to sum up what you did in the

GeoServer

wiki?

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 9, 2009 at 5:04 PM, Pedro S. Monteiro
<Pedro.S.Monteiro@anonymised.com> wrote:
>
>
> I've been doing more or less the same thing and it did the trick for

me.

>
> Instead of transforming to Geotiff with gdal_translate, I suppose.
> I do the complete process with gdal_retile, this will retile your

data

> to uniform tiles (you can specify width, height and resolution), if

you

> use the option -co "TILED=yes" it will create internal tiles in your
> tifs, and it will create your index too. Then I run the gdaladdo

with

> just 4 to 5 levels.
>
> Hope it can help you.
>
> Pedro
>
>> -----Original Message-----
>> From: acangi [mailto:aca@anonymised.com]
>> Sent: segunda-feira, 9 de Fevereiro de 2009 14:05
>> To: geoserver-users@lists.sourceforge.net
>> Subject: [Geoserver-users] Mosaic of 842 geotiffs
>>
>>
>> Hello,
>>
>> I try to create a mosaic of 842 of files. The files are originally

tif

> +
>> tfw
>> pairs, which I transform in geotiff and create 10 levels of

overviews

> for,
>> using gdaladdo. Then I make a mosaic of all the files using
> gdaltindex.
>>
>> Maybe a first problem : if I check the pixel size values of my
> geotiffs in
>> the lines GeoTransform with gdalinfo, I see values going from

0.666648

> to
>> 0.666680, average is 0.666665. The x value is not necessarily the

same

> as
>> the y value. In my .properties file, I set 0.666666,0.666666 as my
> first
>> level. Is there a problem with the different values ?
>>
>> When I load the layer, I see in the logs that 797 mosaic images are
>> loaded,
>> then I get a
>> WARN [geotools.rendering] - operation "ImageRead" requires

parameter

> at
>> index 0 to be non-null.
>> java.lang.IllegalArgumentException: operation "ImageRead" requires
>> parameter
>> at index 0 to be non-null.
>> at javax.media.jai.JAI.createNS(JAI.java:1087)
>> at ...
>> Then
>> DEBUG [geotools.rendering] - Style cache hit ratio: NaN , hits 0,
> requests
>> 0
>> DEBUG [renderer.shape] - Style cache hit ratio: NaN , hits 0,

requests

> 0
>> DEBUG [wms.responses] - asking delegate for write to
>> org.geoserver.ows.DispatcherOutputStream@anonymised.com
>> DEBUG [geotools.image] - Encoding input image to write out as JPEG.
>> DEBUG [geotools.image] - Getting a JPEG writer and configuring it.
>> ERROR [geoserver.ows] - java.lang.UnsatisfiedLinkError:
>> /opt/jdk1.6.0_11/jre/lib/amd64/libjpeg.so:
>> /opt/jdk1.6.0_11/jre/lib/amd64/libjpeg.so: cannot open shared

object

> file
>> : Too many open files
>> at java.lang.ClassLoader$NativeLibrary.load(Native Method)
>> at ...
>>
>> Any idea if the number of files or the different values of

resolution

>> might
>> be the reason of the problem ? Or do I have a problem in the

creation

> of
>> my
>> geotiffs ?
>>
>> Alain
>> --
>> View this message in context: http://www.nabble.com/Mosaic-of-842-
>> geotiffs-tp21914665p21914665.html
>> Sent from the GeoServer - User mailing list archive at Nabble.com.
>>
>>
>
>
>

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

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

I tried Pedro's method on my data but gdal_retile process was killed by my
OS, taking too much swap space (max 2GB). I was trying to retile my 842
geotiffs, each 12000 x 7500 pixels, to 48000 x 30000 pixels for the output
files.

I'll try the pyramid method, didn't have a look at it yet.

Alain

Pedro S. Monteiro wrote:

Well I've a Portuguese tutorial at
http://pedmon.wordpress.com/2008/08/20/preparacao-de-mosaico-para-geoser
ver-gdal_retile-gdaladdo/ , that I will translate and add it to
Geoserver wiki as soon as possible, hope it can help for now.

-----Original Message-----
From: simboss1@anonymised.com [mailto:simboss1@anonymised.com] On Behalf Of

Simone

Giannecchini
Sent: segunda-feira, 9 de Fevereiro de 2009 15:16
To: Pedro S. Monteiro
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Mosaic of 842 geotiffs

Ciao Pedro,
sorry to bother but, can I ask you to sum up what you did in the

GeoServer

wiki?

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 9, 2009 at 5:04 PM, Pedro S. Monteiro
<Pedro.S.Monteiro@anonymised.com> wrote:
>
>
> I've been doing more or less the same thing and it did the trick for

me.

>
> Instead of transforming to Geotiff with gdal_translate, I suppose.
> I do the complete process with gdal_retile, this will retile your

data

> to uniform tiles (you can specify width, height and resolution), if

you

> use the option -co "TILED=yes" it will create internal tiles in your
> tifs, and it will create your index too. Then I run the gdaladdo

with

> just 4 to 5 levels.
>
> Hope it can help you.
>
> Pedro
>
>> -----Original Message-----
>> From: acangi [mailto:aca@anonymised.com]
>> Sent: segunda-feira, 9 de Fevereiro de 2009 14:05
>> To: geoserver-users@lists.sourceforge.net
>> Subject: [Geoserver-users] Mosaic of 842 geotiffs
>>
>>
>> Hello,
>>
>> I try to create a mosaic of 842 of files. The files are originally

tif

> +
>> tfw
>> pairs, which I transform in geotiff and create 10 levels of

overviews

> for,
>> using gdaladdo. Then I make a mosaic of all the files using
> gdaltindex.
>>
>> Maybe a first problem : if I check the pixel size values of my
> geotiffs in
>> the lines GeoTransform with gdalinfo, I see values going from

0.666648

> to
>> 0.666680, average is 0.666665. The x value is not necessarily the

same

> as
>> the y value. In my .properties file, I set 0.666666,0.666666 as my
> first
>> level. Is there a problem with the different values ?
>>
>> When I load the layer, I see in the logs that 797 mosaic images are
>> loaded,
>> then I get a
>> WARN [geotools.rendering] - operation "ImageRead" requires

parameter

> at
>> index 0 to be non-null.
>> java.lang.IllegalArgumentException: operation "ImageRead" requires
>> parameter
>> at index 0 to be non-null.
>> at javax.media.jai.JAI.createNS(JAI.java:1087)
>> at ...
>> Then
>> DEBUG [geotools.rendering] - Style cache hit ratio: NaN , hits 0,
> requests
>> 0
>> DEBUG [renderer.shape] - Style cache hit ratio: NaN , hits 0,

requests

> 0
>> DEBUG [wms.responses] - asking delegate for write to
>> org.geoserver.ows.DispatcherOutputStream@anonymised.com
>> DEBUG [geotools.image] - Encoding input image to write out as JPEG.
>> DEBUG [geotools.image] - Getting a JPEG writer and configuring it.
>> ERROR [geoserver.ows] - java.lang.UnsatisfiedLinkError:
>> /opt/jdk1.6.0_11/jre/lib/amd64/libjpeg.so:
>> /opt/jdk1.6.0_11/jre/lib/amd64/libjpeg.so: cannot open shared

object

> file
>> : Too many open files
>> at java.lang.ClassLoader$NativeLibrary.load(Native Method)
>> at ...
>>
>> Any idea if the number of files or the different values of

resolution

>> might
>> be the reason of the problem ? Or do I have a problem in the

creation

> of
>> my
>> geotiffs ?
>>
>> Alain
>> --
>> View this message in context: http://www.nabble.com/Mosaic-of-842-
>> geotiffs-tp21914665p21914665.html
>> Sent from the GeoServer - User mailing list archive at Nabble.com.
>>
>>
>
>
>

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

------
> 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/Mosaic-of-842-geotiffs-tp21914665p21954761.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

gdal_retile : I tried to lower the image size not to fill my swap space,
increasing the number of images, it worked for about 10 output images, then
I got a seg fault. This was the command I used :

gdal_retile.py -v -of Gtiff -co "TILED=yes" -ps 24000 15000 -tileIndex
retiled -targetDir
/opt/tomcat-6.0/webapps/geoserver/data/coverages/rasters/top10r/retile
*_map.tif

PyramidBuilder : as I'm on a server without a GUI, I couldn't use Maven and
eclipse. I downloaded the geotools jar files and tried it on the command
line but all I got was this :

tomcat@anonymised.com:/opt/geotools-2.5.1$ java -Xmx1000M -classpath
commons-beanutils-1.7.0.jar:commons-cli-2.0-gt2-pre1.jar:commons-codec-1.2.jar:commons-httpclient-3.0.1.jar:commons-io-1.2.jar:commons-lang-2.1.jar:commons-logging-1.1.1.jar:commons-pool-1.3.jar:geoapi-2.2-M0.jar:gt-api-2.5-M2.jar:gt-arcgrid-2.5-M2.jar:gt-coverage-2.5-M2.jar:gt-coverageio-2.5-M2.jar:gt-coveragetools-2.5-M2.jar:gt-epsg-hsql-2.5-M2.jar:gt-geotiff-2.5-M2.jar:gt-image-2.5-M2.jar:gt-imagemosaic-2.5-M2.jar:gt-imagepyramid-2.5-M2.jar:gt-main-2.5-M2.jar:gt-metadata-2.5-M2.jar:gt-referencing-2.5-M2.jar:gt-shapefile-2.5-M2.jar:hsqldb-1.8.0.7.jar:imageio-ext-arcgrid-1.0-SNAPSHOT.jar:imageio-ext-customstreams-1.0-SNAPSHOT.jar:jai_core-1.1.3.jar:jai_imageio-1.1.jar:jdom-1.0.jar:jsr108-0.01.jar:jts-1.9.1-SNAPSHOT.jar:junit-4.4.jar:vecmath-1.3.1.jar:velocity-1.4.jar:velocity-dep-1.4.jar
org.geotools.utils.imagepyramid.PyramidBuilder -v -s
/mnt/arcgis/rasters/top10r/top10r.shp -t "500,500" -f 2 -n 4 -w
PyramidBuilder - GeoSolutions S.a.s (C) 2006 -
v0.3tomcat@anonymised.com:/opt/geotools-2.5.1$

Do you know where I could get more information about these two errors ? a
log file somewhere ?

Alain

acangi wrote:

I tried Pedro's method on my data but gdal_retile process was killed by my
OS, taking too much swap space (max 2GB). I was trying to retile my 842
geotiffs, each 12000 x 7500 pixels, to 48000 x 30000 pixels for the output
files.

I'll try the pyramid method, didn't have a look at it yet.

Alain

Pedro S. Monteiro wrote:

Well I've a Portuguese tutorial at
http://pedmon.wordpress.com/2008/08/20/preparacao-de-mosaico-para-geoser
ver-gdal_retile-gdaladdo/ , that I will translate and add it to
Geoserver wiki as soon as possible, hope it can help for now.

-----Original Message-----
From: simboss1@anonymised.com [mailto:simboss1@anonymised.com] On Behalf Of

Simone

Giannecchini
Sent: segunda-feira, 9 de Fevereiro de 2009 15:16
To: Pedro S. Monteiro
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Mosaic of 842 geotiffs

Ciao Pedro,
sorry to bother but, can I ask you to sum up what you did in the

GeoServer

wiki?

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 9, 2009 at 5:04 PM, Pedro S. Monteiro
<Pedro.S.Monteiro@anonymised.com> wrote:
>
>
> I've been doing more or less the same thing and it did the trick for

me.

>
> Instead of transforming to Geotiff with gdal_translate, I suppose.
> I do the complete process with gdal_retile, this will retile your

data

> to uniform tiles (you can specify width, height and resolution), if

you

> use the option -co "TILED=yes" it will create internal tiles in your
> tifs, and it will create your index too. Then I run the gdaladdo

with

> just 4 to 5 levels.
>
> Hope it can help you.
>
> Pedro
>
>> -----Original Message-----
>> From: acangi [mailto:aca@anonymised.com]
>> Sent: segunda-feira, 9 de Fevereiro de 2009 14:05
>> To: geoserver-users@lists.sourceforge.net
>> Subject: [Geoserver-users] Mosaic of 842 geotiffs
>>
>>
>> Hello,
>>
>> I try to create a mosaic of 842 of files. The files are originally

tif

> +
>> tfw
>> pairs, which I transform in geotiff and create 10 levels of

overviews

> for,
>> using gdaladdo. Then I make a mosaic of all the files using
> gdaltindex.
>>
>> Maybe a first problem : if I check the pixel size values of my
> geotiffs in
>> the lines GeoTransform with gdalinfo, I see values going from

0.666648

> to
>> 0.666680, average is 0.666665. The x value is not necessarily the

same

> as
>> the y value. In my .properties file, I set 0.666666,0.666666 as my
> first
>> level. Is there a problem with the different values ?
>>
>> When I load the layer, I see in the logs that 797 mosaic images are
>> loaded,
>> then I get a
>> WARN [geotools.rendering] - operation "ImageRead" requires

parameter

> at
>> index 0 to be non-null.
>> java.lang.IllegalArgumentException: operation "ImageRead" requires
>> parameter
>> at index 0 to be non-null.
>> at javax.media.jai.JAI.createNS(JAI.java:1087)
>> at ...
>> Then
>> DEBUG [geotools.rendering] - Style cache hit ratio: NaN , hits 0,
> requests
>> 0
>> DEBUG [renderer.shape] - Style cache hit ratio: NaN , hits 0,

requests

> 0
>> DEBUG [wms.responses] - asking delegate for write to
>> org.geoserver.ows.DispatcherOutputStream@anonymised.com
>> DEBUG [geotools.image] - Encoding input image to write out as JPEG.
>> DEBUG [geotools.image] - Getting a JPEG writer and configuring it.
>> ERROR [geoserver.ows] - java.lang.UnsatisfiedLinkError:
>> /opt/jdk1.6.0_11/jre/lib/amd64/libjpeg.so:
>> /opt/jdk1.6.0_11/jre/lib/amd64/libjpeg.so: cannot open shared

object

> file
>> : Too many open files
>> at java.lang.ClassLoader$NativeLibrary.load(Native Method)
>> at ...
>>
>> Any idea if the number of files or the different values of

resolution

>> might
>> be the reason of the problem ? Or do I have a problem in the

creation

> of
>> my
>> geotiffs ?
>>
>> Alain
>> --
>> View this message in context: http://www.nabble.com/Mosaic-of-842-
>> geotiffs-tp21914665p21914665.html
>> Sent from the GeoServer - User mailing list archive at Nabble.com.
>>
>>
>
>
>

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

------
> 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/Mosaic-of-842-geotiffs-tp21914665p21974536.html
Sent from the GeoServer - User mailing list archive at Nabble.com.