[Geoserver-devel] [Geotools-devel] Geotools 1.7.2 bug correction with ImageMosaic Plugin

Looks like this is a message for the geoserver list? There have been some instructions on using raster symbolizer for GeoServer 1.7 so perhaps this is related to the breakage you are seeing?

Jody

On Thu, Feb 12, 2009 at 8:36 PM, Kempenaers Stephen <stephen.kempenaers@anonymised.com…> wrote:

Hi all,

I’m switching from version 1.6.2 to version 1.7.2 and I’m having problems with the ImageMosaicPlugin.

We have 32GB of data, divided into 113 separate and adjacent Geotiffs and a shapefile for the tileindex.

This data has always worked under version 1.6.2, now after we made the switch to 1.7.2 we get an exception upon startup.
When I create a new CoverageDataStore, fill in all the forms, I then press “Apply”, everything seems to work, we can request the layer.
But when I press “Save” and then “Reload”, or “Save” and then simple restart the server we get an exception:

The exception when loading the looks as follows:


12 Feb 08:21:37 WARN [geoserver.catalog] - Error loading ‘dmt_whole_64_blocks_dmt_whole/info.xml’, ignoring
12 Feb 08:21:37 INFO [geoserver.catalog] -
java.lang.NullPointerException
at org.geoserver.catalog.util.LegacyCoverageInfoReader.requestCRSs(LegacyCoverageInfoReader.java:201)
at org.geoserver.catalog.util.LegacyCatalogImporter.readCoverage(LegacyCatalogImporter.java:624)
at org.geoserver.catalog.util.LegacyCatalogImporter.imprt(LegacyCatalogImporter.java:221)
at org.geoserver.config.GeoServerLoader.initialize(GeoServerLoader.java:112)

I have corrected this error in the code in the file “org.geoserver.catalog.util.LegacyCoverageInfoReader.java”:
I have rebuild localy and everything now works for me …
Can you guys upload this correction to the repository?

+++++++++++++++++++++++
INCORRECT CODE:
+++++++++++++++++++++++

public List requestCRSs() throws Exception {
Element supportedCRS = ReaderUtils.getChildElement(coverage, “supportedCRSs” );
String requestCRS = ReaderUtils.getChildText( supportedCRS, “requestCRSs” ).trim().split(“,”);
return Arrays.asList(requestCRS);
}

public List responseCRSs() throws Exception {
Element supportedCRS = ReaderUtils.getChildElement(coverage, “supportedCRSs” );
String responseCRS = ReaderUtils.getChildText( supportedCRS, “responseCRSs” ).trim().split(“,”);
return Arrays.asList(responseCRS);
}

+++++++++++++++++++++++
CORRECTED CODE:
+++++++++++++++++++++++

public List requestCRSs() throws Exception {
Element supportedCRS = ReaderUtils.getChildElement(coverage, “supportedCRSs” );
String requestCRS = ReaderUtils.getChildText( supportedCRS, “requestCRSs” ) == null ? new String{} : ReaderUtils.getChildText( supportedCRS, “requestCRSs” ).trim().split(“,”);
return Arrays.asList(requestCRS);
}

public List responseCRSs() throws Exception {
Element supportedCRS = ReaderUtils.getChildElement(coverage, “supportedCRSs” );
String responseCRS = ReaderUtils.getChildText( supportedCRS, “responseCRSs” ) == null ? new String{} : ReaderUtils.getChildText( supportedCRS, “responseCRSs” ).trim().split(“,”);
return Arrays.asList(responseCRS);
}

+++++++++++++++++++++++

The info.xml looks like this in version 1.7.2:

dmt_whole dmt_whole is a Image mosaicking plugin Generated from dmt_whole_64_blocks / WCS,dmt_whole_64_blocks,dmt_whole 436000.0 5648999.0 610000.0 5736999.0 0 0 174000 88000 dmt_whole dmt_whole dmt_whole dmt_whole 1.0 -1.0 0.0 0.0 436000.0 5736999.0 dmt_whole GridSampleDimension[0.0,255.0] 0.0 255.0 dmt_whole GridSampleDimension[0.0,255.0] 0.0 255.0 dmt_whole GridSampleDimension[0.0,255.0] 0.0 255.0 dmt_whole GridSampleDimension[0.0,255.0] 0.0 255.0 ARCGRID,GEOTIFF,IMAGEMOSAIC,GIF,PNG,JPEG,TIFF,GTOPO30 nearest neighbor,bilinear,bicubic

and used to look like this in 1.6.2:

dmt_whole dmt_whole is a Image mosaicking plugin Generated from dmt_local_blocks /

null

WCS,dmt_local_blocks,dmt_whole 500000.0 5648999.0 600000.0 5719999.0 0 0 100000 71000 x y 0.05 -0.05 0.0 0.0 500000.025 5652548.975 dmt_whole [0 ... 255] GridSampleDimension[0.0,255.0] 0.0 255.0 dmt_whole [0 ... 255] GridSampleDimension[0.0,255.0] 0.0 255.0 dmt_whole [0 ... 255] GridSampleDimension[0.0,255.0] 0.0 255.0 ARCGRID,GTOPO30,GIF,PNG,JPEG,TIFF,GEOTIFF,IMAGEMOSAIC nearest neighbor,bilinear,bicubic

Regards,
Stephen Kempenaers


This e-mail, any attachments and the information it contains are confidential and meant only for the use of the addressee(s) only. Access to this e-mail by anyone other than the addressee(s) is unauthorized. If you are not the intended addressee (or responsible for delivery of the message to such person), you may not use, copy, distribute or deliver to anyone this message (or any part of its contents) or take any action in reliance on it. In such case, you should destroy this message and notify the sender immediately. If you have received this e-mail in error, please notify us immediately by e-mail or telephone and delete the e-mail from any computer.
All reasonable precautions have been taken to ensure no viruses are present in this e-mail and its attachments. As our company cannot accept responsibility for any loss or damage arising from the use of this e-mail or attachments we recommend that you subject these to your virus checking procedures prior to use.


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


Geotools-devel mailing list
Geotools-devel@anonymised.coms.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Hi,
I will take a look on the bug and I will fix it.

Regards,
Daniele

On Thu, Feb 12, 2009 at 11:52 AM, Jody Garnett <jody.garnett@anonymised.com> wrote:

Looks like this is a message for the geoserver list? There have been some instructions on using raster symbolizer for GeoServer 1.7 so perhaps this is related to the breakage you are seeing?

Jody

On Thu, Feb 12, 2009 at 8:36 PM, Kempenaers Stephen <stephen.kempenaers@anonymised.com> wrote:

Hi all,

I’m switching from version 1.6.2 to version 1.7.2 and I’m having problems with the ImageMosaicPlugin.

We have 32GB of data, divided into 113 separate and adjacent Geotiffs and a shapefile for the tileindex.

This data has always worked under version 1.6.2, now after we made the switch to 1.7.2 we get an exception upon startup.
When I create a new CoverageDataStore, fill in all the forms, I then press “Apply”, everything seems to work, we can request the layer.
But when I press “Save” and then “Reload”, or “Save” and then simple restart the server we get an exception:

The exception when loading the looks as follows:


12 Feb 08:21:37 WARN [geoserver.catalog] - Error loading ‘dmt_whole_64_blocks_dmt_whole/info.xml’, ignoring
12 Feb 08:21:37 INFO [geoserver.catalog] -
java.lang.NullPointerException
at org.geoserver.catalog.util.LegacyCoverageInfoReader.requestCRSs(LegacyCoverageInfoReader.java:201)
at org.geoserver.catalog.util.LegacyCatalogImporter.readCoverage(LegacyCatalogImporter.java:624)
at org.geoserver.catalog.util.LegacyCatalogImporter.imprt(LegacyCatalogImporter.java:221)
at org.geoserver.config.GeoServerLoader.initialize(GeoServerLoader.java:112)

I have corrected this error in the code in the file “org.geoserver.catalog.util.LegacyCoverageInfoReader.java”:
I have rebuild localy and everything now works for me …
Can you guys upload this correction to the repository?

+++++++++++++++++++++++
INCORRECT CODE:
+++++++++++++++++++++++

public List requestCRSs() throws Exception {
Element supportedCRS = ReaderUtils.getChildElement(coverage, “supportedCRSs” );
String requestCRS = ReaderUtils.getChildText( supportedCRS, “requestCRSs” ).trim().split(“,”);
return Arrays.asList(requestCRS);
}

public List responseCRSs() throws Exception {
Element supportedCRS = ReaderUtils.getChildElement(coverage, “supportedCRSs” );
String responseCRS = ReaderUtils.getChildText( supportedCRS, “responseCRSs” ).trim().split(“,”);
return Arrays.asList(responseCRS);
}

+++++++++++++++++++++++
CORRECTED CODE:
+++++++++++++++++++++++

public List requestCRSs() throws Exception {
Element supportedCRS = ReaderUtils.getChildElement(coverage, “supportedCRSs” );
String requestCRS = ReaderUtils.getChildText( supportedCRS, “requestCRSs” ) == null ? new String{} : ReaderUtils.getChildText( supportedCRS, “requestCRSs” ).trim().split(“,”);
return Arrays.asList(requestCRS);
}

public List responseCRSs() throws Exception {
Element supportedCRS = ReaderUtils.getChildElement(coverage, “supportedCRSs” );
String responseCRS = ReaderUtils.getChildText( supportedCRS, “responseCRSs” ) == null ? new String{} : ReaderUtils.getChildText( supportedCRS, “responseCRSs” ).trim().split(“,”);
return Arrays.asList(responseCRS);
}

+++++++++++++++++++++++

The info.xml looks like this in version 1.7.2:

dmt_whole dmt_whole is a Image mosaicking plugin Generated from dmt_whole_64_blocks / WCS,dmt_whole_64_blocks,dmt_whole 436000.0 5648999.0 610000.0 5736999.0 0 0 174000 88000 dmt_whole dmt_whole dmt_whole dmt_whole 1.0 -1.0 0.0 0.0 436000.0 5736999.0 dmt_whole GridSampleDimension[0.0,255.0] 0.0 255.0 dmt_whole GridSampleDimension[0.0,255.0] 0.0 255.0 dmt_whole GridSampleDimension[0.0,255.0] 0.0 255.0 dmt_whole GridSampleDimension[0.0,255.0] 0.0 255.0 ARCGRID,GEOTIFF,IMAGEMOSAIC,GIF,PNG,JPEG,TIFF,GTOPO30 nearest neighbor,bilinear,bicubic

and used to look like this in 1.6.2:

dmt_whole dmt_whole is a Image mosaicking plugin Generated from dmt_local_blocks /

null

WCS,dmt_local_blocks,dmt_whole 500000.0 5648999.0 600000.0 5719999.0 0 0 100000 71000 x y 0.05 -0.05 0.0 0.0 500000.025 5652548.975 dmt_whole [0 ... 255] GridSampleDimension[0.0,255.0] 0.0 255.0 dmt_whole [0 ... 255] GridSampleDimension[0.0,255.0] 0.0 255.0 dmt_whole [0 ... 255] GridSampleDimension[0.0,255.0] 0.0 255.0 ARCGRID,GTOPO30,GIF,PNG,JPEG,TIFF,GEOTIFF,IMAGEMOSAIC nearest neighbor,bilinear,bicubic

Regards,
Stephen Kempenaers


This e-mail, any attachments and the information it contains are confidential and meant only for the use of the addressee(s) only. Access to this e-mail by anyone other than the addressee(s) is unauthorized. If you are not the intended addressee (or responsible for delivery of the message to such person), you may not use, copy, distribute or deliver to anyone this message (or any part of its contents) or take any action in reliance on it. In such case, you should destroy this message and notify the sender immediately. If you have received this e-mail in error, please notify us immediately by e-mail or telephone and delete the e-mail from any computer.
All reasonable precautions have been taken to ensure no viruses are present in this e-mail and its attachments. As our company cannot accept responsibility for any loss or damage arising from the use of this e-mail or attachments we recommend that you subject these to your virus checking procedures prior to use.


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


Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel


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

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