Hello -
I've ran into the old circular feature-chaining problem in a GeoSciML WFS
service again. Basically it is exactly the problem outlined at
http://docs.geoserver.org/stable/en/user/data/app-schema/feature-chaining.ht
ml#multi-valued-properties-by-reference-xlink-href
The approach outlined there requires that one or the other,
GeologicUnit.occurence or MappedFeature.specification, be by xlink:href all
of the time. If I make my occurrences by xlink:href, then whether I make a
WFS query for gsml:GeologicUnit or gsml:MappedFeature, the occurrences will
always be by xlink:href, and the value may or may not be resolvable,
depending on how I construct the string and what exactly is in the WFS
response document.
What you'd really like is a service which followed these rules:
1) GeologicUnits that are being returned as
MappedFeature.specifications would simply not include the optional
gsml:occurrence property.
2) MappedFeature.specifications would only be by xlink:href if those
MappedFeatures are being returned as GeologicUnit.occurrences.
3) In any other situation, occurrences or specifications would not be
by xlink:href, unless they were being repeated within a single WFS response
document.
Is there any tricky way to do this? I tried building two gsml:GeologicUnit
mapping files and using one as an includedType in the MappedFeature mapping
file, but this means you have two mappings for one type, and it gags. My
previous incarnation of a GeoSciML service accomplished this by actually
being two services, one for only GeologicUnits, one for only MappedFeatures.
The GeologicUnit service gave back MappedFeature occurrences where the
specification was by xlink:href. The MappedFeature service gave back
GeologicUnit specifications which did not include occurrences at all. This
satisfied my three rules, but meant a lot of maintenance overhead, two
services, and a bunch of duplicate mapping files.
If anyone has had any interesting ideas about how to do this, I'd love to
hear them!
Thanks,
Ryan
------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users
worldwide. Take advantage of special opportunities to increase revenue and
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users