Question: XSD Mapping/featureType files and annotation?

2 messages Options
Embed this post
Permalink
Chandler, Peter - 0443 - MITLL

Question: XSD Mapping/featureType files and annotation?

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

You need to add annotations to your feature type XSD file(s) to perform the datasource mapping.

My Question is: there a way to validate the Deegree mapping annotations in the XSD? How do I know if I make a mistake?

 

Example the following will validate:

 

                  <xsd:annotation>

                     <xsd:appinfo>

                        <deegreewfs:JUNK>

                           <deegreewfs:MappingField field="systemid" type="BIGINT"/>

                        </deegreewfs:JUNK>

                     </xsd:appinfo>

                  </xsd:annotation>

 

Peter.

 

Peter Chandler

MIT Lincoln Laboratory

244 Wood Street

Lexington, MA  02420

Email:  [hidden email]

781-981-3938

 


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
deegree-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/deegree-users
Markus Schneider-4

Re: Question: XSD Mapping/featureType files and annotation?

Reply Threaded More More options
Print post
Permalink
Hi Peter,

no there is currently no way to do this (except by loading it in to the WFS, of course). It would however be possible to
write a little command line tool that reads in the document (as a starter have a look at class
org.deegree.io.datastore.schema.MappedGMLSchemaDocument and see how it is used by the WFS) and reports any parsing errors.

We're aware of this shortcoming and this is one reason why we're moving away from schema annotations in the upcoming
deegree 3 WFS. Instead, it will use a custom XML format for mapped feature type definitions, which will be much simpler
and less talkative then GML schema and will also enable the option to validate definitions in any XML schema-aware editor.

Best regards,
Markus


Chandler, Peter - 0443 - MITLL wrote:

> You need to add annotations to your feature type XSD file(s) to perform
> the datasource mapping.
>
> My Question is: there a way to validate the Deegree mapping annotations
> in the XSD? How do I know if I make a mistake?
>
>  
>
> Example the following will validate:
>
>  
>
>                   <xsd:annotation>
>
>                      <xsd:appinfo>
>
>                         <deegreewfs:JUNK>
>
>                            <deegreewfs:MappingField field="systemid"
> type="BIGINT"/>
>
>                         </deegreewfs:JUNK>
>
>                      </xsd:appinfo>
>
>                   </xsd:annotation>
>
>  
>
> Peter.
>
>  
>
> /Peter Chandler/
>
> /MIT Lincoln Laboratory/
>
> /244 Wood Street/
>
> /Lexington, MA  02420/
>
> /Email:  [hidden email]/
>
> /781-981-3938/
>
>  
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> deegree-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/deegree-users

--
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



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
deegree-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/deegree-users

signature.asc (268 bytes) Download Attachment