deegree WFS 1.1.0 & wfs:MetadataURL

2 messages Options
Embed this post
Permalink
Oliver Beckmann

deegree WFS 1.1.0 & wfs:MetadataURL

Reply Threaded More More options
Print post
Permalink
Hi there,

I am on my diploma thesis and I want to enable WPS'es for
(data- and service level-) metadata continuation. Which means,
that WPS'es should generate "new" and change "old" metadata
for processed data wich are provided by WFS or WCS.
For this I need "external" data-metadata...

After having trouble to enable Geoserver's WFS to provide
data metadata I decided to switch to deegree's WFS.
Looks very nice! But as in Geoserver I miss the "MetadataURL"
element in the GetCapabilities request (FeatureTypeList) to have
access to external data-metadata.
OGC Spec. (p 81) for WFS V1.1.0 defines this element (see third
last line):

</xsd:complexType>
 <xsd:complexType name="FeatureTypeType">
  <xsd:sequence>
   <xsd:element name="Name" type="xsd:QName"/>
   <xsd:element name="Title" type="xsd:string">
   <xsd:element name="Abstract" type="xsd:string" minOccurs="0"/>
  <xsd:element ref="ows:Keywords" minOccurs="0" maxOccurs="unbounded"/>
  <xsd:choice>
   <xsd:sequence>
    <xsd:element name="DefaultSRS" type="xsd:anyURI"/>
    <xsd:element name="OtherSRS" type="xsd:anyURI" minOccurs="0"
maxOccurs="unbounded">
   </xsd:sequence>
   <xsd:element name="NoSRS">
    <xsd:complexType/>
   </xsd:element>
  </xsd:choice>
 <xsd:element name="Operations" type="wfs:OperationsType" minOccurs="0"/>
 <xsd:element name="OutputFormats" type="wfs:OutputFormatListType"
minOccurs="0"/>
 <xsd:element ref="ows:WGS84BoundingBox" minOccurs="1" maxOccurs="unbounded"/>
 <xsd:element name="MetadataURL" type="wfs:MetadataURLType"
minOccurs="0" maxOccurs="unbounded"/>
 </xsd:sequence>
</xsd:complexType>

Is it possible to enable this element in the deegree WFS 1.1.0
GetCapabilities FeatureTypeList uncomplicated?
What do I have to do? (PS: I am using the war file! I don't yet have
any deegree Java project...)

Gruß

Oliver Beckmann

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
deegree-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/deegree-users
Markus Schneider-4

Re: deegree WFS 1.1.0 & wfs:MetadataURL

Reply Threaded More More options
Print post
Permalink
Hi Oliver,

Oliver Beckmann wrote:

> After having trouble to enable Geoserver's WFS to provide
> data metadata I decided to switch to deegree's WFS.
> Looks very nice! But as in Geoserver I miss the "MetadataURL"
> element in the GetCapabilities request (FeatureTypeList) to have
> access to external data-metadata.
> OGC Spec. (p 81) for WFS V1.1.0 defines this element (see third
> last line):
>
> </xsd:complexType>
>  <xsd:complexType name="FeatureTypeType">
>   <xsd:sequence>
>    <xsd:element name="Name" type="xsd:QName"/>
>    <xsd:element name="Title" type="xsd:string">
>    <xsd:element name="Abstract" type="xsd:string" minOccurs="0"/>
>   <xsd:element ref="ows:Keywords" minOccurs="0" maxOccurs="unbounded"/>
>   <xsd:choice>
>    <xsd:sequence>
>     <xsd:element name="DefaultSRS" type="xsd:anyURI"/>
>     <xsd:element name="OtherSRS" type="xsd:anyURI" minOccurs="0"
> maxOccurs="unbounded">
>    </xsd:sequence>
>    <xsd:element name="NoSRS">
>     <xsd:complexType/>
>    </xsd:element>
>   </xsd:choice>
>  <xsd:element name="Operations" type="wfs:OperationsType" minOccurs="0"/>
>  <xsd:element name="OutputFormats" type="wfs:OutputFormatListType"
> minOccurs="0"/>
>  <xsd:element ref="ows:WGS84BoundingBox" minOccurs="1" maxOccurs="unbounded"/>
>  <xsd:element name="MetadataURL" type="wfs:MetadataURLType"
> minOccurs="0" maxOccurs="unbounded"/>
>  </xsd:sequence>
> </xsd:complexType>
>
> Is it possible to enable this element in the deegree WFS 1.1.0
> GetCapabilities FeatureTypeList uncomplicated?
> What do I have to do? (PS: I am using the war file! I don't yet have
> any deegree Java project...)
This is indeed possible, but you need a newer deegree build (2.2 doesn't support it). The first 2.3-rc will be out very
soon, in the meantime you have the option to replace the deegree2.jar in your WFS 2.2. demo installation with a nightly
build.

- Goto http://www.deegree.org -> Download -> API,Source,Binaries. Download the nightly deegree2.jar.
- Place the deegree2.jar in ${TOMCAT}/webapps/deegree-wfs/WEB-INF/lib (overwrite the existing file)

To add a metadata URL to a feature type:

- Edit ${TOMCAT}/webapps/deegree-wfs/WEB-INF/conf/wfs/wfs_configuration.xml

In the wfs:FeatureTypeList-Element, add a wfs:MetadataURL element in the respective "wfs:FeatureType" element (e.g. for
app:Springs):

<wfs:FeatureType>
  <wfs:Name>app:Springs</wfs:Name>
  <wfs:Title>Spring in Utah</wfs:Title>
  <wfs:Abstract>All Springs in Utah</wfs:Abstract>
  <ows:Keywords>
    <ows:Keyword>Springs</ows:Keyword>
  </ows:Keywords>
  <wfs:DefaultSRS>EPSG:26912</wfs:DefaultSRS>
  <wfs:OtherSRS>EPSG:4326</wfs:OtherSRS>
  <wfs:OutputFormats>
    <wfs:Format>text/xml; subtype=gml/3.1.1</wfs:Format>
   </wfs:OutputFormats>
  <ows:WGS84BoundingBox>
    <ows:LowerCorner>-180 -90</ows:LowerCorner>
    <ows:UpperCorner>180 90</ows:UpperCorner>
  </ows:WGS84BoundingBox>

 <!-- This element does the trick -->
 <wfs:MetadataURL type="19115" format="text/xml">http://www.whatever.org/metadata.xml</wfs:MetadataURL>

</wfs:FeatureType>

Restart Tomcat and you should get the MetadataURL in the GetCapabilities response (for app:Springs).

Best regards,
Markus


--
Markus Schneider

l a t / l o n  GmbH
Aennchenstrasse 19           53177 Bonn, Germany
phone ++49 +228 184960       fax ++49 +228 1849629
http://www.lat-lon.de        http://www.deegree.org



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
deegree-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/deegree-users

signature.asc (268 bytes) Download Attachment