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.
<?xml version="1.0" encoding="UTF-8"?><wps:Execute version="1.0.0" service="WPS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns="http://www.opengis.net/wps/1.0.0"; xmlns:wfs="http://www.opengis.net/wfs"; xmlns:wps="http://www.opengis.net/wps/1.0.0"; xmlns:ows="http://www.opengis.net/ows/1.1"; xmlns:gml="http://www.opengis.net/gml"; xmlns:ogc="http://www.opengis.net/ogc"; xmlns:wcs="http://www.opengis.net/wcs/1.1.1"; xmlns:xlink="http://www.w3.org/1999/xlink"; xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd";>
  <ows:Identifier>gs:GeoPackage</ows:Identifier>
  <wps:DataInputs>
    <wps:Input>
      <ows:Identifier>contents</ows:Identifier>
      <wps:Data>
        <wps:ComplexData mimeType="text/xml; subtype=geoserver/geopackage"><![CDATA[<geopackage name="mygeopackage" xmlns="http://www.opengis.net/gpkg";>
   <tiles name="mytileslayer" identifier="L02">
        <description>Arc Sample</description>
        <srs>EPSG:4326</srs>
        <bbox>
                <minx>-180</minx>
                <miny>-90</miny>
                <maxx>180</maxx>
                <maxy>90</maxy>
        </bbox>
        <layers>nurc:Arc_Sample</layers>
        <styles>dem</styles>
        <format>image/png</format>
   </tiles>
   </geopackage>]]></wps:ComplexData>
      </wps:Data>
    </wps:Input>
  </wps:DataInputs>
  <wps:ResponseForm>
    <wps:RawDataOutput>
      <ows:Identifier>geopackage</ows:Identifier>
    </wps:RawDataOutput>
  </wps:ResponseForm>
</wps:Execute>
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to