INSPIRE Thematic Clusters

Good news - WPS service that accepts WFS2.0 GML3.2 data

442 Views

Good news - WPS service that accepts WFS2.0 GML3.2 data

Started by Sorin RUSU

Hi everyone,

I have just successfully used GML3.2 data in a geospatial analysis using a WPS1.0 server. The input data is obtained from INSPIRE Download Services, for two data themes: ps:ProtectedSite and br:Bio-geographicalRegion, and it was processed using 52°North WPS server, and output the data as GML 3.2 again.

This is very good news as I have been struggling for the past 6 months to find a WPS processing solution, that accepts complex feaures encoded as GML3.2 and there are few solutions/software in the geospatial environment that manages to do that.

While there is a lot of push from the INSPIRE community for WFS 2.0 and GML 3.2 complex feature types as the preferred way to encode and distribute geometries, there are very few geospatial tools able to work with these types of features, and until now there were no WPS implementations ready to read GML 3.2 data. That was until Iurie Maxim pointed me in the direction of 52°North.

While the server still has issues that need to be fixed, the community is helpful and quick to react to some of the bugs I found. Initially not even their demo was working, but they fixed this, by updating their GML Parser (which by the way, was pointing to a wrong featured.XSD location).

The analysis is still tricky: the geometry srsName is declared 4326 (Lat/Long) by default if the WFS service doesn't contain the bounding boxes for the elements, the output only contains the first simple feature element, so analysing multiple datasets will lead to inconclusive data etc. In my example bellow, this element would be the value of the gml:identifier, namely: http://inspire.biodiversity.ro/WFS/RO_ENV_PADS/wfs?service=WFS&version=2.0.0&request=GetFeature&STOREDQUERY_ID=GETpsPSRefByInspireId&localId=ROSCI0008

WPS should be very important in the context of the INSPIRE directive, as they would allow to process data directly from the end-points of Member States, and deliver geospatial knowledge from the raw data published as WFS.

Link to test:
http://geoprocessing.demo.52north.org:8080/latest-wps/test.html

Request body, using the Intersect Process, and using the ROSCI0008 protected site and the Pannonian Bio-geographical Region :


<Execute service="WPS" version="1.0.0"
xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:ns="http://www.opengis.net/ows/1.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:base="http://inspire.ec.europa.eu/schemas/base/3.3"
xmlns:au="http://inspire.ec.europa.eu/schemas/au/4.0"
xmlns:br="http://inspire.ec.europa.eu/schemas/br/4.0"
xmlns:ps="http://inspire.ec.europa.eu/schemas/ps/4.0"
xmlns:gn="http://inspire.ec.europa.eu/schemas/gn/4.0"
xmlns:gco="http://www.isotc211.org/2005/gco"
xmlns:gmd="http://www.isotc211.org/2005/gmd"
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/3.2"
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"
xmlns:it.geosolutions="http://www.geo-solutions.it"
xsi:schemaLocation="
http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd
http://inspire.ec.europa.eu/schemas/au/4.0 http://inspire.ec.europa.eu/schemas/au/4.0/AdministrativeUnits.xsd
http://www.opengis.net/gml/3.2
http://inspire.biodiversity.ro:80/geoserver/schemas/gml/3.2.1/gml.xsd
http://www.opengis.net/wfs/2.0
http://inspire.biodiversity.ro:80/geoserver/schemas/wfs/2.0/wfs.xsd"
>  <ns:Identifier>org.n52.wps.server.algorithm.intersection.IntersectionAlgorithm</ns:Identifier>
  <DataInputs>
    <Input>
      <ns:Identifier>Polygon1</ns:Identifier>
      <Reference mimeType="text/xml; subtype=gml/3.2.1" xlink:href="http://inspire.biodiversity.ro/WFS/RO_ENV_PADS/wfs?service=wfs&amp;version=2.0.0&amp;request=GetFeature&amp;STOREDQUERY_ID=GETpsPSRefByInspireId&amp;localId=ROSCI0008&amp;versionId="/>
    </Input>
    <Input>
      <ns:Identifier>Polygon2</ns:Identifier>
      <Reference mimeType="text/xml; subtype=gml/3.2.1" xlink:href="http://inspire.biodiversity.ro/WFS/RO_ENV_PADS/wfs?service=wfs&amp;version=2.0.0&amp;request=GetFeature&amp;STOREDQUERY_ID=GETbrBRRefByInspireId&amp;localId=PAN&amp;versionId="/>
    </Input>
  </DataInputs>
  <ResponseForm>
    <ResponseDocument>
      <Output mimeType="text/xml; subtype=gml/3.2.1">
        <ns2:Identifier xmlns:ns1="http://www.opengis.net/ows/1.1" xmlns:ns="http://www.opengis.net/wps/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns2="http://www.opengis.net/ows/1.1">intersection_result</ns2:Identifier>
      </Output>
    </ResponseDocument>
  </ResponseForm>
</Execute>

This discussion is closed.

This discussion is closed and is not accepting new comments.

Biodiversity and Management Areas Cluster

Biodiversity and Management Areas Cluster

Thematic Biodiversity and Management Areas Cluster. If themes like Protected Sites, Area Management/Restriction/Regulation Zones and Reporting Units, Habitats and Biotopes, Species Distribution, Bio-geographical Regions matters to you, join these groups!