INSPIRE NATURA2000 – Protected Sites Demo
The web services below show GO Publisher’s ability to serve out the ProtectedSites layer of INSPIRE Natura2000 data as GML3.2.1.
We loaded the ProtectedSites layer of INSPIRE Natura2000 data into Oracle 11g and published it back out using the GOPublisher WFS serving GML3.2.1.
GO Publisher WFS serving ProtectedSites layer of the INSPIRE Natura2000 Demo
| Landing page |
GetCapabilities | DescribeFeature |
| http://demo.snowflakesoftware.com:8080/INSPIRE_Natura2k/ | GetCapabilities | DescribeFeatureType |
http GET Bounding Box query
WFS HTTP Post Request -
This sample POST query returns a protected site where the site identifier of the protected site matches the value of the literal.
Here’s the query, try it for yourself by pasting the query below into the WFS HTTP Post Request dialogue box here: http://demo.snowflakesoftware.com:8080/INSPIRE_Natura2k/httpPost.jsp.
<?xml version="1.0" encoding="UTF-8"?> <wfs:GetFeature service="WFS" version="2.0.0" outputFormat="application/gml+xml; version=3.2" xmlns:wfs="http://www.opengis.net/wfs/2.0" xmlns:ps-f="urn:x-inspire:specification:gmlas:ProtectedSitesFull:3.0" xmlns:ps-n2000="urn:x-inspire:specification:gmlas:ProtectedSitesNatura2000:3.0" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:fes="http://www.opengis.net/fes/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd http://www.opengis.net/gml/3.2 http://schemas.opengis.net/gml/3.2.1/gml.xsd"> <wfs:Query typeNames="ps-n2000:ProtectedSite" handle="Q01"> <fes:Filter> <fes:PropertyIsEqualTo> <fes:ValueReference>ps-f:siteIdentifier/ps-f:SiteIdentifierType/ps-f:siteIdentifier</fes:ValueReference> <fes:Literal>BE34016A0</fes:Literal> </fes:PropertyIsEqualTo> </fes:Filter> </wfs:Query> </wfs:GetFeature>
Sample HTTP Post Queries
There are lots of sample HTTP Post queries below that you can try, just paste them into the HTTP Post form here: http://demo.snowflakesoftware.com:8080/INSPIRE_Natura2k/httpPost.jsp.
Sample Query 1: PropertyIsEqual
<?xml version="1.0" encoding="UTF-8"?> <wfs:GetFeature service="WFS" version="2.0.0" outputFormat="application/gml+xml; version=3.2" xmlns:wfs="http://www.opengis.net/wfs/2.0" xmlns:ps-f="urn:x-inspire:specification:gmlas:ProtectedSitesFull:3.0" xmlns:ps-n2000="urn:x-inspire:specification:gmlas:ProtectedSitesNatura2000:3.0" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:fes="http://www.opengis.net/fes/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd http://www.opengis.net/gml/3.2 http://schemas.opengis.net/gml/3.2.1/gml.xsd"> <wfs:Query typeNames="ps-n2000:ProtectedSite" handle="Q01"> <fes:Filter> <fes:PropertyIsEqualTo> <fes:ValueReference>ps-f:siteIdentifier/ps-f:SiteIdentifierType/ps-f:siteIdentifier</fes:ValueReference> <fes:Literal>BE34016A0</fes:Literal> </fes:PropertyIsEqualTo> </fes:Filter> </wfs:Query> </wfs:GetFeature>
Sample Query 2: PropertyLike
<?xml version="1.0" encoding="UTF-8"?> <wfs:GetFeature service="WFS" version="2.0.0" outputFormat="application/gml+xml; version=3.2" xmlns:wfs="http://www.opengis.net/wfs/2.0" xmlns:ps-f="urn:x-inspire:specification:gmlas:ProtectedSitesFull:3.0" xmlns:ps-n2000="urn:x-inspire:specification:gmlas:ProtectedSitesNatura2000:3.0" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:fes="http://www.opengis.net/fes/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd http://www.opengis.net/gml/3.2 http://schemas.opengis.net/gml/3.2.1/gml.xsd"> <wfs:Query typeNames="ps-n2000:ProtectedSite" handle="Q01"> <fes:Filter> <fes:PropertyIsLike wildCard="*" singleChar="." escapeChar="!"> <fes:ValueReference>ps-f:siteIdentifier/ps-f:SiteIdentifierType/ps-f:siteIdentifier</fes:ValueReference> <fes:Literal>*BE3402*</fes:Literal> </fes:PropertyIsLike> </fes:Filter> </wfs:Query> </wfs:GetFeature>
Sample Query 3: BBox
<?xml version="1.0" encoding="UTF-8"?>
<wfs:GetFeature service="WFS" version="2.0.0"
outputFormat="application/gml+xml; version=3.2"
xmlns:wfs="http://www.opengis.net/wfs/2.0"
xmlns:ps-f="urn:x-inspire:specification:gmlas:ProtectedSitesFull:3.0"
xmlns:ps-n2000="urn:x-inspire:specification:gmlas:ProtectedSitesNatura2000:3.0"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:fes="http://www.opengis.net/fes/2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/wfs/2.0
http://schemas.opengis.net/wfs/2.0/wfs.xsd
http://www.opengis.net/gml/3.2
http://schemas.opengis.net/gml/3.2.1/gml.xsd">
<wfs:Query typeNames="ps-n2000:ProtectedSite" handle="Q01">
<fes:Filter>
<fes:BBOX>
<gml:Envelope srsName="urn:ogc:def:crs:EPSG::3035">
<gml:lowerCorner>2984908.5164 1987392.617</gml:lowerCorner>
<gml:upperCorner>3229750.3790 2133840.0865</gml:upperCorner>
</gml:Envelope>
</fes:BBOX>
</fes:Filter>
</wfs:Query>
</wfs:GetFeature>
Sample Query 4: PropertyComparison
<?xml version="1.0" encoding="UTF-8"?> <wfs:GetFeature service="WFS" version="2.0.0" outputFormat="application/gml+xml; version=3.2" xmlns:wfs="http://www.opengis.net/wfs/2.0" xmlns:ps-f="urn:x-inspire:specification:gmlas:ProtectedSitesFull:3.0" xmlns:ps-n2000="urn:x-inspire:specification:gmlas:ProtectedSitesNatura2000:3.0" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:fes="http://www.opengis.net/fes/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd http://www.opengis.net/gml/3.2 http://schemas.opengis.net/gml/3.2.1/gml.xsd"> <wfs:Query typeNames="ps-n2000:ProtectedSite" handle="Q01"> <fes:Filter> <fes:PropertyIsLessThanOrEqualTo> <fes:ValueReference>//ps-f:officialsiteArea</fes:ValueReference> <fes:Literal>700</fes:Literal> </fes:PropertyIsLessThanOrEqualTo> </fes:Filter> </wfs:Query> </wfs:GetFeature>
Sample Query 5: PropertyBetween
<?xml version="1.0" encoding="UTF-8"?> <wfs:GetFeature service="WFS" version="2.0.0" outputFormat="application/gml+xml; version=3.2" xmlns:wfs="http://www.opengis.net/wfs/2.0" xmlns:ps-f="urn:x-inspire:specification:gmlas:ProtectedSitesFull:3.0" xmlns:ps-n2000="urn:x-inspire:specification:gmlas:ProtectedSitesNatura2000:3.0" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:fes="http://www.opengis.net/fes/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd http://www.opengis.net/gml/3.2 http://schemas.opengis.net/gml/3.2.1/gml.xsd"> <wfs:Query typeNames="ps-n2000:ProtectedSite" handle="Q01"> <fes:Filter> <fes:PropertyIsBetween> <fes:ValueReference>//ps-f:officialsiteArea</fes:ValueReference> <fes:LowerBoundary> <fes:Literal>600</fes:Literal> </fes:LowerBoundary> <fes:UpperBoundary> <fes:Literal>800</fes:Literal> </fes:UpperBoundary> </fes:PropertyIsBetween> </fes:Filter> </wfs:Query> </wfs:GetFeature>

