[Geoserver-users] Load the Pyramid Into GeoServer (Error)

Hi,

I am trying to load the pyramid into Geoserver, but after doing the below I get the following error:

GeoServer - ExceptionThe following exception was thrown:

java.lang.ArrayIndexOutOfBoundsException: 1
-----------------------------------------------

I have attached a tomcat5.5 log

Below is the tutorial that I followed:

Load the Pyramid Into GeoServer

1) Start up GeoServer, then navigate to Config->Data->CoverageStores->New

2) Select Image Pyramidal Plugin then enter a name for your pyramid. Hit the New button.

3) You will now be at the CoverageStore edit screen. Enter in the location of the pyramid. If it is in the data directory, then it can be referenced relatively to it. If it is somewhere else on your file system, you can give it the absolute path.
The file you want to point at is the pyramid.properties file at the root of the pyramid structure that was generated.
When finished, hit the Submit button.

Thanks,

John Mitchell

On 3/28/07, Andrea Aime < aaime@anonymised.com> wrote:

John Mitchell ha scritto:

Hi,

Is their documentation on the correct format for the
pyramid.propertiesfile, so that I can set up the
pyramid.properties file to reference my already created pyramid geotiffs
and
shapefiles, and then display it within Geoserver?

Documentation is rather scarce, but anyways, there’s something in the
pyramid reader javadocs:


This reader is repsonsible for providing access to a pyramid of mosaics
of georeferenced coverages that are read directly through imageio
readers, like tiff, pngs, etc…

Specifically this plugin relies on the image mosaic plugin to handle
each single level of resolutions avaible, hence all the magic is done
inside the mosaic plugin.

For information on how to build a mosaic, please refere to the
ImageMosaicReader documentation.

If you are looking for information on how to create a pyramid, here you
go. The pyramid itself does no magic. All the magic is performed by the
single mosaic readers that are polled depending on the requeste
resolution levels. Therefore the first step is having a mosaic of images
like geotiff, tiff, jpeg, or png which is going to be the base for te
pyramid.

The second step is to build the next (lower resolution) levels for the
pyramid.
If you look inside the spike dire of the geotools project you will find
a (growing) set of tools that can be used for doing processing on
coverages.
Specifically there is one tool called PyramidBuilder that can be used to
build the pyramid level by level.

Last step is providing a prj file with the projection of the pyramid
(btw all the levels has to be in the same projection) as well as a
properties file with this structure:

#Mon Aug 21 22:23:27 CEST 2006
#name of the coverage
Name=ikonos
#different resolution levels available
Levels=1.2218682749859724E-5,9.220132503102996E-6
2.4428817977683634E-5,1.844026500620314E-5
4.8840552865873626E-5,3.686350299024973E-5
9.781791400307775E-5,7.372700598049946E-5
1.956358280061555E-4 ,1.4786360643866836E-4
3.901787184256844E-4,2.9572721287731037E-4
#where all the levels reside
LevelsDirs=0 2 4 8 16 32
#number of levels availaible
LevelsNum=6
#envelope for this pyramid
Envelope2D=13.398228477973406,43.591366397808976
13.537912459169803,43.67121274528585


So, to make things work you’ll also have to set up properly
the property files for each mosaic. Information on how to
setup the property file for image mosaic is here:

http://docs.codehaus.org/display/GEOSDOC/Using+the+ImageMosaic+plugin

Hope this helps. Let me know if you succeed.
Cheers
Andrea


John J. Mitchell

localhost.2007-05-02.log (18.7 KB)

Hi,

Please ignore the previous email. I have fixed the problem within the pyramid.properties file where I had embedded return characters within the “Levels=” line.

John Mitchell

On 5/2/07, John Mitchell <mitchelljj98@anonymised.com> wrote:

Hi,

I am trying to load the pyramid into Geoserver, but after doing the below I get the following error:

GeoServer - ExceptionThe following exception was thrown:

java.lang.ArrayIndexOutOfBoundsException: 1
-----------------------------------------------

I have attached a tomcat5.5 log

Below is the tutorial that I followed:

Load the Pyramid Into GeoServer

1) Start up GeoServer, then navigate to Config->Data->CoverageStores->New

2) Select Image Pyramidal Plugin then enter a name for your pyramid. Hit the New button.

3) You will now be at the CoverageStore edit screen. Enter in the location of the pyramid. If it is in the data directory, then it can be referenced relatively to it. If it is somewhere else on your file system, you can give it the absolute path.
The file you want to point at is the pyramid.properties file at the root of the pyramid structure that was generated.
When finished, hit the Submit button.

Thanks,

John Mitchell

On 3/28/07, Andrea Aime < aaime@anonymised.com> wrote:

John Mitchell ha scritto:

Hi,

Is their documentation on the correct format for the
pyramid.propertiesfile, so that I can set up the
pyramid.properties file to reference my already created pyramid geotiffs
and
shapefiles, and then display it within Geoserver?

Documentation is rather scarce, but anyways, there’s something in the
pyramid reader javadocs:


This reader is repsonsible for providing access to a pyramid of mosaics
of georeferenced coverages that are read directly through imageio
readers, like tiff, pngs, etc…

Specifically this plugin relies on the image mosaic plugin to handle
each single level of resolutions avaible, hence all the magic is done
inside the mosaic plugin.

For information on how to build a mosaic, please refere to the
ImageMosaicReader documentation.

If you are looking for information on how to create a pyramid, here you
go. The pyramid itself does no magic. All the magic is performed by the
single mosaic readers that are polled depending on the requeste
resolution levels. Therefore the first step is having a mosaic of images
like geotiff, tiff, jpeg, or png which is going to be the base for te
pyramid.

The second step is to build the next (lower resolution) levels for the
pyramid.
If you look inside the spike dire of the geotools project you will find
a (growing) set of tools that can be used for doing processing on
coverages.
Specifically there is one tool called PyramidBuilder that can be used to
build the pyramid level by level.

Last step is providing a prj file with the projection of the pyramid
(btw all the levels has to be in the same projection) as well as a
properties file with this structure:

#Mon Aug 21 22:23:27 CEST 2006
#name of the coverage
Name=ikonos
#different resolution levels available
Levels=1.2218682749859724E-5,9.220132503102996E-6
2.4428817977683634E-5,1.844026500620314E-5
4.8840552865873626E-5,3.686350299024973E-5
9.781791400307775E-5,7.372700598049946E-5
1.956358280061555E-4 ,1.4786360643866836E-4
3.901787184256844E-4,2.9572721287731037E-4
#where all the levels reside
LevelsDirs=0 2 4 8 16 32
#number of levels availaible
LevelsNum=6
#envelope for this pyramid
Envelope2D=13.398228477973406,43.591366397808976
13.537912459169803,43.67121274528585


So, to make things work you’ll also have to set up properly
the property files for each mosaic. Information on how to
setup the property file for image mosaic is here:

http://docs.codehaus.org/display/GEOSDOC/Using+the+ImageMosaic+plugin

Hope this helps. Let me know if you succeed.
Cheers
Andrea


John J. Mitchell


John J. Mitchell