[Geoserver-devel] Image Pyramidal plugin - java.lang.NullPointerException

Hello

I'm currently trying to setup an image pyramid using GeoServer's Image
Pyramidal plugin, but unfortunatelly I fail.
I have testen GeoServer 1.7.0 and 1.7.2. Both versions have the same
problem.
Here's my setup: so I have 2 levels: 0 and 2

In folder 0 there's a shapefile pyramid.shp (with pyramid.prj file) and a
file pyramid.properties
This is the content of the pyramid.properties file:
Name=pyramid
ExpandToRGB=false
Levels=2.8,2.8
LevelsNum=1
Envelope2D=147999,159921 158079,170001
NumFiles=36

In folder 2 there's a shapefile pyramid.shp (with pyramid.prj file) and a
file pyramid.properties
This is the content of the pyramid.properties file:
Name=pyramid
ExpandToRGB=false
Levels=5.6,5.6
LevelsNum=1
Envelope2D=147999,159921 158079,170001
NumFiles=9

Coordinate System I'm using is Belgian Lambert 72 (this is the CS string
from POSTGIS):

GEOGCS["Belge 1972",
  DATUM["Reseau_National_Belge_1972",
    SPHEROID["International 1924",6378388,297, AUTHORITY["EPSG","7022"]],
    AUTHORITY["EPSG","6313"]],
  PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],
  UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],
  AUTHORITY["EPSG","4313"]],
  PROJECTION["Lambert_Conformal_Conic_2SP_Belgium)"],
  PARAMETER["standard_parallel_1",49.83333333333334],
  PARAMETER["standard_parallel_2",51.16666666666666],
  PARAMETER["latitude_of_origin",90],
  PARAMETER["central_meridian",4.356939722222222],
  PARAMETER["false_easting",150000.01256],
  PARAMETER["false_northing",5400088.4378],
  UNIT["metre",1,AUTHORITY["EPSG","9001"]],
  AUTHORITY["EPSG","31300"]

At the root level there is the same pyramid.prj file and a
pyramid.properties file.
The pyramid.properties file looks like this:

#name of the coverage
Name=pyramid
#different resolution levels available
Levels=2.8,2.8 5.6,5.6
#where all the levels reside
LevelsDirs=0 2
#number of levels availaible
LevelsNum=2
#envelope for this pyramid
Envelope2D=147999,159921 158079,170001

When I create a pyramid with just one level (so only level 0 OR only level
2) the pyramid works.
Creating a mosaic on each level also works.

This is the error I'm getting when trying to create a pyramid with more than
1 level:

java.lang.NullPointerException
    
org.geotools.gce.imagepyramid.ImagePyramidFormat.accepts(ImagePyramidFormat.java:244)
    
org.vfny.geoserver.form.data.CoverageStoresEditorForm.validate(CoverageStoresEditorForm.java:285)
    
org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:950)
... ... ...

The images I'm using are tiff images (with accompagning .tfw), but I've also
tested on png images (with .pgw files) but with the same negative result.
The location field name in the shapefiles is lowercase and the images are
located within the geoserver project (within the coverages directory)
I've also downloaded the BlueMarble example you can find on the internet and
this one is going fine.

Can anyone shed some light on this issue?

Thanks very much...
Michael
--
View this message in context: http://www.nabble.com/Image-Pyramidal-plugin---java.lang.NullPointerException-tp21813319p21813319.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

Hello,

Did you find a solution to this problem ? I'm having exactly the same.

I'm running geoserver 1.7.2, two-levels pyramid fails with a
NullPointerException, but both one-level pyramids work fine.
I'm working with geotiffs made with gdal_translate from tif+tfw files,
without overviews, grouped together with gdaltindex. Both mosaics work also
fine.
My SRS is EPSG:3812 (Belgian Lambert 2008).

Alain

mvdhoyd wrote:

Hello

I'm currently trying to setup an image pyramid using GeoServer's Image
Pyramidal plugin, but unfortunatelly I fail.
I have testen GeoServer 1.7.0 and 1.7.2. Both versions have the same
problem.
Here's my setup: so I have 2 levels: 0 and 2

In folder 0 there's a shapefile pyramid.shp (with pyramid.prj file) and a
file pyramid.properties
This is the content of the pyramid.properties file:
Name=pyramid
ExpandToRGB=false
Levels=2.8,2.8
LevelsNum=1
Envelope2D=147999,159921 158079,170001
NumFiles=36

In folder 2 there's a shapefile pyramid.shp (with pyramid.prj file) and a
file pyramid.properties
This is the content of the pyramid.properties file:
Name=pyramid
ExpandToRGB=false
Levels=5.6,5.6
LevelsNum=1
Envelope2D=147999,159921 158079,170001
NumFiles=9

Coordinate System I'm using is Belgian Lambert 72 (this is the CS string
from POSTGIS):

GEOGCS["Belge 1972",
  DATUM["Reseau_National_Belge_1972",
    SPHEROID["International 1924",6378388,297, AUTHORITY["EPSG","7022"]],
    AUTHORITY["EPSG","6313"]],
  PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],
  UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],
  AUTHORITY["EPSG","4313"]],
  PROJECTION["Lambert_Conformal_Conic_2SP_Belgium)"],
  PARAMETER["standard_parallel_1",49.83333333333334],
  PARAMETER["standard_parallel_2",51.16666666666666],
  PARAMETER["latitude_of_origin",90],
  PARAMETER["central_meridian",4.356939722222222],
  PARAMETER["false_easting",150000.01256],
  PARAMETER["false_northing",5400088.4378],
  UNIT["metre",1,AUTHORITY["EPSG","9001"]],
  AUTHORITY["EPSG","31300"]

At the root level there is the same pyramid.prj file and a
pyramid.properties file.
The pyramid.properties file looks like this:

#name of the coverage
Name=pyramid
#different resolution levels available
Levels=2.8,2.8 5.6,5.6
#where all the levels reside
LevelsDirs=0 2
#number of levels availaible
LevelsNum=2
#envelope for this pyramid
Envelope2D=147999,159921 158079,170001

When I create a pyramid with just one level (so only level 0 OR only level
2) the pyramid works.
Creating a mosaic on each level also works.

This is the error I'm getting when trying to create a pyramid with more
than 1 level:

java.lang.NullPointerException
    
org.geotools.gce.imagepyramid.ImagePyramidFormat.accepts(ImagePyramidFormat.java:244)
    
org.vfny.geoserver.form.data.CoverageStoresEditorForm.validate(CoverageStoresEditorForm.java:285)
    
org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:950)
... ... ...

The images I'm using are tiff images (with accompagning .tfw), but I've
also tested on png images (with .pgw files) but with the same negative
result.
The location field name in the shapefiles is lowercase and the images are
located within the geoserver project (within the coverages directory)
I've also downloaded the BlueMarble example you can find on the internet
and this one is going fine.

Can anyone shed some light on this issue?

Thanks very much...
Michael

--
View this message in context: http://www.nabble.com/Image-Pyramidal-plugin---java.lang.NullPointerException-tp21813319p22102637.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

Hi Alain
If you create a 3 (or more level)-level pyramid, it will probably work.
I've noticed there is a bug in the java class ImagePyramidFormat.java when
specifying 2 levels.
Hope this helps...
Michael

acangi wrote:

Hello,

Did you find a solution to this problem ? I'm having exactly the same.

I'm running geoserver 1.7.2, two-levels pyramid fails with a
NullPointerException, but both one-level pyramids work fine.
I'm working with geotiffs made with gdal_translate from tif+tfw files,
without overviews, grouped together with gdaltindex. Both mosaics work
also fine.
My SRS is EPSG:3812 (Belgian Lambert 2008).

Alain

--
View this message in context: http://www.nabble.com/Image-Pyramidal-plugin---java.lang.NullPointerException-tp21813319p22103077.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

See my previous email on this thread.
It's a bug and it's been fixed. It will be part of next release.

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 19, 2009 at 4:14 PM, acangi <aca@anonymised.com> wrote:

Hello,

Did you find a solution to this problem ? I'm having exactly the same.

I'm running geoserver 1.7.2, two-levels pyramid fails with a
NullPointerException, but both one-level pyramids work fine.
I'm working with geotiffs made with gdal_translate from tif+tfw files,
without overviews, grouped together with gdaltindex. Both mosaics work also
fine.
My SRS is EPSG:3812 (Belgian Lambert 2008).

Alain

mvdhoyd wrote:

Hello

I'm currently trying to setup an image pyramid using GeoServer's Image
Pyramidal plugin, but unfortunatelly I fail.
I have testen GeoServer 1.7.0 and 1.7.2. Both versions have the same
problem.
Here's my setup: so I have 2 levels: 0 and 2

In folder 0 there's a shapefile pyramid.shp (with pyramid.prj file) and a
file pyramid.properties
This is the content of the pyramid.properties file:
Name=pyramid
ExpandToRGB=false
Levels=2.8,2.8
LevelsNum=1
Envelope2D=147999,159921 158079,170001
NumFiles=36

In folder 2 there's a shapefile pyramid.shp (with pyramid.prj file) and a
file pyramid.properties
This is the content of the pyramid.properties file:
Name=pyramid
ExpandToRGB=false
Levels=5.6,5.6
LevelsNum=1
Envelope2D=147999,159921 158079,170001
NumFiles=9

Coordinate System I'm using is Belgian Lambert 72 (this is the CS string
from POSTGIS):

GEOGCS["Belge 1972",
  DATUM["Reseau_National_Belge_1972",
    SPHEROID["International 1924",6378388,297, AUTHORITY["EPSG","7022"]],
    AUTHORITY["EPSG","6313"]],
  PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],
  UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],
  AUTHORITY["EPSG","4313"]],
  PROJECTION["Lambert_Conformal_Conic_2SP_Belgium)"],
  PARAMETER["standard_parallel_1",49.83333333333334],
  PARAMETER["standard_parallel_2",51.16666666666666],
  PARAMETER["latitude_of_origin",90],
  PARAMETER["central_meridian",4.356939722222222],
  PARAMETER["false_easting",150000.01256],
  PARAMETER["false_northing",5400088.4378],
  UNIT["metre",1,AUTHORITY["EPSG","9001"]],
  AUTHORITY["EPSG","31300"]

At the root level there is the same pyramid.prj file and a
pyramid.properties file.
The pyramid.properties file looks like this:

#name of the coverage
Name=pyramid
#different resolution levels available
Levels=2.8,2.8 5.6,5.6
#where all the levels reside
LevelsDirs=0 2
#number of levels availaible
LevelsNum=2
#envelope for this pyramid
Envelope2D=147999,159921 158079,170001

When I create a pyramid with just one level (so only level 0 OR only level
2) the pyramid works.
Creating a mosaic on each level also works.

This is the error I'm getting when trying to create a pyramid with more
than 1 level:

java.lang.NullPointerException

org.geotools.gce.imagepyramid.ImagePyramidFormat.accepts(ImagePyramidFormat.java:244)

org.vfny.geoserver.form.data.CoverageStoresEditorForm.validate(CoverageStoresEditorForm.java:285)

org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:950)
... ... ...

The images I'm using are tiff images (with accompagning .tfw), but I've
also tested on png images (with .pgw files) but with the same negative
result.
The location field name in the shapefiles is lowercase and the images are
located within the geoserver project (within the coverages directory)
I've also downloaded the BlueMarble example you can find on the internet
and this one is going fine.

Can anyone shed some light on this issue?

Thanks very much...
Michael

--
View this message in context: http://www.nabble.com/Image-Pyramidal-plugin---java.lang.NullPointerException-tp21813319p22102637.html
Sent from the GeoServer - Dev 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-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Thank you, my first pyramid in geoserver works fine.

A tip for other ones trying to build a pyramid : the Envelope2D has to be
the same in all pyramid.properties file, otherwise you get a
ConfigurationException: Coverage dimensions.

Alain

Simone Giannecchini wrote:

See my previous email on this thread.
It's a bug and it's been fixed. It will be part of next release.

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 19, 2009 at 4:14 PM, acangi <aca@anonymised.com> wrote:

Hello,

Did you find a solution to this problem ? I'm having exactly the same.

I'm running geoserver 1.7.2, two-levels pyramid fails with a
NullPointerException, but both one-level pyramids work fine.
I'm working with geotiffs made with gdal_translate from tif+tfw files,
without overviews, grouped together with gdaltindex. Both mosaics work
also
fine.
My SRS is EPSG:3812 (Belgian Lambert 2008).

Alain

mvdhoyd wrote:

Hello

I'm currently trying to setup an image pyramid using GeoServer's Image
Pyramidal plugin, but unfortunatelly I fail.
I have testen GeoServer 1.7.0 and 1.7.2. Both versions have the same
problem.
Here's my setup: so I have 2 levels: 0 and 2

In folder 0 there's a shapefile pyramid.shp (with pyramid.prj file) and
a
file pyramid.properties
This is the content of the pyramid.properties file:
Name=pyramid
ExpandToRGB=false
Levels=2.8,2.8
LevelsNum=1
Envelope2D=147999,159921 158079,170001
NumFiles=36

In folder 2 there's a shapefile pyramid.shp (with pyramid.prj file) and
a
file pyramid.properties
This is the content of the pyramid.properties file:
Name=pyramid
ExpandToRGB=false
Levels=5.6,5.6
LevelsNum=1
Envelope2D=147999,159921 158079,170001
NumFiles=9

Coordinate System I'm using is Belgian Lambert 72 (this is the CS string
from POSTGIS):

GEOGCS["Belge 1972",
  DATUM["Reseau_National_Belge_1972",
    SPHEROID["International 1924",6378388,297,
AUTHORITY["EPSG","7022"]],
    AUTHORITY["EPSG","6313"]],
  PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],
  UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],
  AUTHORITY["EPSG","4313"]],
  PROJECTION["Lambert_Conformal_Conic_2SP_Belgium)"],
  PARAMETER["standard_parallel_1",49.83333333333334],
  PARAMETER["standard_parallel_2",51.16666666666666],
  PARAMETER["latitude_of_origin",90],
  PARAMETER["central_meridian",4.356939722222222],
  PARAMETER["false_easting",150000.01256],
  PARAMETER["false_northing",5400088.4378],
  UNIT["metre",1,AUTHORITY["EPSG","9001"]],
  AUTHORITY["EPSG","31300"]

At the root level there is the same pyramid.prj file and a
pyramid.properties file.
The pyramid.properties file looks like this:

#name of the coverage
Name=pyramid
#different resolution levels available
Levels=2.8,2.8 5.6,5.6
#where all the levels reside
LevelsDirs=0 2
#number of levels availaible
LevelsNum=2
#envelope for this pyramid
Envelope2D=147999,159921 158079,170001

When I create a pyramid with just one level (so only level 0 OR only
level
2) the pyramid works.
Creating a mosaic on each level also works.

This is the error I'm getting when trying to create a pyramid with more
than 1 level:

java.lang.NullPointerException

org.geotools.gce.imagepyramid.ImagePyramidFormat.accepts(ImagePyramidFormat.java:244)

org.vfny.geoserver.form.data.CoverageStoresEditorForm.validate(CoverageStoresEditorForm.java:285)

org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:950)
... ... ...

The images I'm using are tiff images (with accompagning .tfw), but I've
also tested on png images (with .pgw files) but with the same negative
result.
The location field name in the shapefiles is lowercase and the images
are
located within the geoserver project (within the coverages directory)
I've also downloaded the BlueMarble example you can find on the internet
and this one is going fine.

Can anyone shed some light on this issue?

Thanks very much...
Michael

--
View this message in context:
http://www.nabble.com/Image-Pyramidal-plugin---java.lang.NullPointerException-tp21813319p22102637.html
Sent from the GeoServer - Dev 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-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

------------------------------------------------------------------------------
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-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
View this message in context: http://www.nabble.com/Image-Pyramidal-plugin---java.lang.NullPointerException-tp21813319p22117138.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.