[Geoserver-devel] Generating GeoPackage with GeoServer

I can successfully generate a GeoPackage file from the "nurc:Arc_Sample" layer included with GeoServer but the other raster layers (nurc:Pk50095, nurc:mosaic, nurc:Img_Sample, sf:sfdem) fail.

Environment:
GeoServer v. 2.9.1, With WPS and GeoPackage extensions installed. (geoserver-2.9-SNAPSHOT-geopkg-plugin.zip, geoserver-2.9.1-wps-plugin.zip)

The attached xml file can be used successfully to ask GeoServer to create a GeoPackage file. It requests the “nurc:Arc_Sample” raster.

Executing:
curl -u admin:geoserver -H 'Content-type: xml' -XPOST -d@'workingGeoPackageRequest.xml' http://localhost:8080/geoserver/wps

Returns:
http://localhost:8080/geoserver/ows?service=WPS&version=1.0.0&request=GetExecutionResult&executionId=56ebf82e-d111-4e3f-a287-ed5870fc2487&outputId=mygeopackage.gpkg

Testing:
Put the above URL into browser and download the GeoPackage file.
Create a new Store -> GeoPackage(mosaic) using the downloaded file.
Publish the layer
Preview the layer.

This works great with the nurc:Arc_Sample layer but fails with nurc:Pk50095, nurc:mosaic, nurc:Img_Sample, sf:sfdem or any of my own GeoTiff layers.

nurc:mosaic and sf:sfdem return: exceptionCode="NoApplicableCode" Process failed during execution java.lang.NullPointerException
nurc:Pk50095 and nurc_Img_Sample return Error rendering coverage on the fast path java.lang.IllegalArgumentException: Band number 3 is not valid.

Any idea what is going wrong or can anyone create an xml file that will successfully get the GeoPackage file for any of the other raster layers.

(attachments)

workingGeoPackageRequest.xml (1.49 KB)

Hi Bryan,
the GeoServer geopackage module is currently unsupported, so the best answer to your question likely lies in fixing the code.

That said, share a request that does not work, and the GeoServer logs of the failure (from its log file, the full stack trace),
that might give us some clue as to what might be happening.

Cheers
Andrea

···

On Fri, Oct 21, 2016 at 6:21 PM, Bryan Moore <bryan@anonymised.com> wrote:

I can successfully generate a GeoPackage file from the “nurc:Arc_Sample” layer included with GeoServer but the other raster layers (nurc:Pk50095, nurc:mosaic, nurc:Img_Sample, sf:sfdem) fail.

Environment:
GeoServer v. 2.9.1, With WPS and GeoPackage extensions installed. (geoserver-2.9-SNAPSHOT-geopkg-plugin.zip, geoserver-2.9.1-wps-plugin.zip)

The attached xml file can be used successfully to ask GeoServer to create a GeoPackage file. It requests the “nurc:Arc_Sample” raster.

Executing:
curl -u admin:geoserver -H ‘Content-type: xml’ -XPOST -d@‘workingGeoPackageRequest.xml’ http://localhost:8080/geoserver/wps

Returns:
http://localhost:8080/geoserver/ows?service=WPS&version=1.0.0&request=GetExecutionResult&executionId=56ebf82e-d111-4e3f-a287-ed5870fc2487&outputId=mygeopackage.gpkg

Testing:
Put the above URL into browser and download the GeoPackage file.
Create a new Store → GeoPackage(mosaic) using the downloaded file.
Publish the layer
Preview the layer.

This works great with the nurc:Arc_Sample layer but fails with nurc:Pk50095, nurc:mosaic, nurc:Img_Sample, sf:sfdem or any of my own GeoTiff layers.

nurc:mosaic and sf:sfdem return: exceptionCode=“NoApplicableCode” Process failed during execution java.lang.NullPointerException
nurc:Pk50095 and nurc_Img_Sample return Error rendering coverage on the fast path java.lang.IllegalArgumentException: Band number 3 is not valid.

Any idea what is going wrong or can anyone create an xml file that will successfully get the GeoPackage file for any of the other raster layers.


Check out the vibrant tech community on one of the world’s most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot


Geoserver-devel mailing list
Geoserver-devel@anonymised.com.366…sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.

Ing. Andrea Aime

@geowolf
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
phone: +39 0584 962313

fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.


I was hoping that I was just doing something silly that could be easily corrected. If nothing turns up then I guess digging into code is the next step.

Meantime attached are files containing the failing XML, the stacktrace, and the command + output.

Thanks,
Bryan

(attachments)

stacktrace.txt (10 KB)
output.txt (995 Bytes)
test.xml (1.49 KB)

···

On 10/21/16 1:33 PM, Andrea Aime wrote:

Hi Bryan,
the GeoServer geopackage module is currently unsupported, so the best answer to your question likely lies in fixing the code.

That said, share a request that does not work, and the GeoServer logs of the failure (from its log file, the full stack trace),
that might give us some clue as to what might be happening.

Cheers
Andrea

On Fri, Oct 21, 2016 at 6:21 PM, Bryan Moore <bryan@anonymised.com> wrote:

I can successfully generate a GeoPackage file from the “nurc:Arc_Sample” layer included with GeoServer but the other raster layers (nurc:Pk50095, nurc:mosaic, nurc:Img_Sample, sf:sfdem) fail.

Environment:
GeoServer v. 2.9.1, With WPS and GeoPackage extensions installed. (geoserver-2.9-SNAPSHOT-geopkg-plugin.zip, geoserver-2.9.1-wps-plugin.zip)

The attached xml file can be used successfully to ask GeoServer to create a GeoPackage file. It requests the “nurc:Arc_Sample” raster.

Executing:
curl -u admin:geoserver -H ‘Content-type: xml’ -XPOST -d@‘workingGeoPackageRequest.xml’ http://localhost:8080/geoserver/wps

Returns:
http://localhost:8080/geoserver/ows?service=WPS&version=1.0.0&request=GetExecutionResult&executionId=56ebf82e-d111-4e3f-a287-ed5870fc2487&outputId=mygeopackage.gpkg

Testing:
Put the above URL into browser and download the GeoPackage file.
Create a new Store → GeoPackage(mosaic) using the downloaded file.
Publish the layer
Preview the layer.

This works great with the nurc:Arc_Sample layer but fails with nurc:Pk50095, nurc:mosaic, nurc:Img_Sample, sf:sfdem or any of my own GeoTiff layers.

nurc:mosaic and sf:sfdem return: exceptionCode=“NoApplicableCode” Process failed during execution java.lang.NullPointerException
nurc:Pk50095 and nurc_Img_Sample return Error rendering coverage on the fast path java.lang.IllegalArgumentException: Band number 3 is not valid.

Any idea what is going wrong or can anyone create an xml file that will successfully get the GeoPackage file for any of the other raster layers.


Check out the vibrant tech community on one of the world’s most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot


Geoserver-devel mailing list
Geoserver-devel@anonymised.comsourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.

Ing. Andrea Aime

@geowolf
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
phone: +39 0584 962313

fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.


Hi Bryan,
just a wild guess here, it might be because the bbox you put in the request is so much larger than the data, causing
empty tiles to be generated. What if you use a bbox actually matching the data on bbox, which you can pick in the
WMS capabilities documents?

Cheers
Andrea

···

On Fri, Oct 21, 2016 at 7:45 PM, Bryan Moore <bryan@anonymised.com> wrote:

I was hoping that I was just doing something silly that could be easily corrected. If nothing turns up then I guess digging into code is the next step.

Meantime attached are files containing the failing XML, the stacktrace, and the command + output.

Thanks,
Bryan

On 10/21/16 1:33 PM, Andrea Aime wrote:

Hi Bryan,
the GeoServer geopackage module is currently unsupported, so the best answer to your question likely lies in fixing the code.

That said, share a request that does not work, and the GeoServer logs of the failure (from its log file, the full stack trace),
that might give us some clue as to what might be happening.

Cheers
Andrea

On Fri, Oct 21, 2016 at 6:21 PM, Bryan Moore <bryan@anonymised.com> wrote:

I can successfully generate a GeoPackage file from the “nurc:Arc_Sample” layer included with GeoServer but the other raster layers (nurc:Pk50095, nurc:mosaic, nurc:Img_Sample, sf:sfdem) fail.

Environment:
GeoServer v. 2.9.1, With WPS and GeoPackage extensions installed. (geoserver-2.9-SNAPSHOT-geopkg-plugin.zip, geoserver-2.9.1-wps-plugin.zip)

The attached xml file can be used successfully to ask GeoServer to create a GeoPackage file. It requests the “nurc:Arc_Sample” raster.

Executing:
curl -u admin:geoserver -H ‘Content-type: xml’ -XPOST -d@‘workingGeoPackageRequest.xml’ http://localhost:8080/geoserver/wps

Returns:
http://localhost:8080/geoserver/ows?service=WPS&version=1.0.0&request=GetExecutionResult&executionId=56ebf82e-d111-4e3f-a287-ed5870fc2487&outputId=mygeopackage.gpkg

Testing:
Put the above URL into browser and download the GeoPackage file.
Create a new Store → GeoPackage(mosaic) using the downloaded file.
Publish the layer
Preview the layer.

This works great with the nurc:Arc_Sample layer but fails with nurc:Pk50095, nurc:mosaic, nurc:Img_Sample, sf:sfdem or any of my own GeoTiff layers.

nurc:mosaic and sf:sfdem return: exceptionCode=“NoApplicableCode” Process failed during execution java.lang.NullPointerException
nurc:Pk50095 and nurc_Img_Sample return Error rendering coverage on the fast path java.lang.IllegalArgumentException: Band number 3 is not valid.

Any idea what is going wrong or can anyone create an xml file that will successfully get the GeoPackage file for any of the other raster layers.


Check out the vibrant tech community on one of the world’s most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot


Geoserver-devel mailing list
Geoserver-devel@anonymised.comrge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.

Ing. Andrea Aime

@geowolf
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
phone: +39 0584 962313

fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.


==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.

Ing. Andrea Aime

@geowolf
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
phone: +39 0584 962313

fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.