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.