GeoServer : WFS 1.1 XLink
This page last changed on Oct 30, 2007 by jdeolive.
This page contains some design and brainstorming about the partial support of XLink for WFS 1.1.
We can limit some scope to make things a bit simpler:
A natural way to model an association is with foreign keys in a database. Determining
Consider the following example of a simple table representing the flag of a country:
This maps straight across to a feature type:
Now consider the following table representing the country itself:
Now consider the following association from flag to country:
Where the country column is a foreign key link to the fid column of the country table. This is where things get interesting. The question is how to model this relationship in a feature type. There are two alternatives:
In the geoapi feature model ( geotools feature model 2 ), feature types may contain "associations" explicitly. This would result in the following feature type:
One of the problems with the previous approach is that it requires use of the complex version of the feature model, as associations fall out of the realm of "simple features". Unfortunately this ups the level of effort required to pull it off. So an alternative is just to model with an attribute:
|Document generated by Confluence on May 14, 2014 23:00|