geosolutions-it/geonode

Build Geoserver 2.19.x for Geoserver with KMLPPIO plugin

Closed this issue · 2 comments

We need to ship Geoserver 2.19.x for GeoNode ((and 2.20.x afterwards) with the KMLPPIO plugin.

A new build of the Geoserver 2.19.x war is needed.

I suppose we can keep the same s3 link @randomorder right? This way no change is required on the GeoNode side.

Ok @giohappy the plugin is in the GeoServer 2.19.x already
I had a go with @aaime on stable geonode

image

KML is not there so I have tweaked the outputformat from the CSV request
image

  <wps:Input>
     <ows:Identifier>outputFormat</ows:Identifier>
     <wps:Data>
        <wps:LiteralData>application/vnd.google-earth.kml+xml</wps:LiteralData>
     </wps:Data>
  </wps:Input>
<?xml version="1.0" encoding="UTF-8"?>
<wps:Execute xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns="http://www.opengis.net/wps/1.0.0" xmlns:dwn="http://geoserver.org/wps/download" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:wfs="http://www.opengis.net/wfs" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0.0" service="WPS" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
   <ows:Identifier>gs:Download</ows:Identifier>
   <wps:DataInputs>
      <wps:Input>
         <ows:Identifier>layerName</ows:Identifier>
         <wps:Data>
            <wps:LiteralData>geonode:Asansol</wps:LiteralData>
         </wps:Data>
      </wps:Input>
      <wps:Input>
         <ows:Identifier>outputFormat</ows:Identifier>
         <wps:Data>
            <wps:LiteralData>application/vnd.google-earth.kml+xml</wps:LiteralData>
         </wps:Data>
      </wps:Input>
      <wps:Input>
         <ows:Identifier>cropToROI</ows:Identifier>
         <wps:Data>
            <wps:LiteralData>false</wps:LiteralData>
         </wps:Data>
      </wps:Input>
   </wps:DataInputs>
   <wps:ResponseForm>
      <wps:ResponseDocument storeExecuteResponse="true" status="true">
         <wps:Output asReference="true">
            <ows:Identifier>result</ows:Identifier>
         </wps:Output>
      </wps:ResponseDocument>
   </wps:ResponseForm>
</wps:Execute>

image

result (1).zip

By the way, you probably know already but I report that GeoNode is using WFS for the download of the vector data and mapstore is using WPS instead:
This is from GeoNode:

https://stable.demo.geonode.org/geoserver/ows?service=WFS&version=1.0.0&request=GetFeature&typename=geonode%3AAsansol&outputFormat=SHAPE-ZIP&srs=EPSG%3A4326&format_options=charset%3AUTF-8

image

When we create the branch for GS for GeoNode version 2.20.x the plugin will be there for free

Thanks @randomorder

KML is not there so I have tweaked the outputformat from the CSV request

yes, MapStore must add the format to the available ones yet.

By the way, you probably know already but I report that GeoNode is using WFS for the download of the vector data and Mapstore is using WPS instead

Yes, GN 3.3.x is still like that. GN master uses WPS also for the direct downloads instead.