Hi App-Schema experts,
Here's another question from the newbie. I'm having a workspace
with two feature types which belong to different namespaces:
xmlns:myns="http://example.com/myns"
xmlns:otherns="http://example.com/otherns"
I'd like to run WFS requests that return a mix of both kinds
of features, where the instances may even refer one to another:
<wfs:FeatureCollection>
<gml:featureMembers>
<myns:MyFeature gml:id="...">
...
</myns:MyFeature>
<otherns:OtherFeature gml:id="...">
...
</otherns:OtherFeature>
</gml:featureMembers>
</wfs:FeatureCollection>
So I configured my workspace namespace to one of the namespaces:
.../workspaces/myns/namespace.xml
<namespace>
<id>myns_namespace</id>
<prefix>myns</prefix>
<uri>http://example.com/myns</uri>
</namespace>
And of course I mentioned both namespaces in the mappings file:
<as:AppSchemaDataAccess>
<namespaces>
<Namespace>
<prefix>myns</prefix>
<uri>http://example.com/myns</uri>
</Namespace>
<Namespace>
<prefix>otherns</prefix>
<uri>http://example.com/otherns</uri>
</Namespace>
...
</namespaces>
...
<typeMappings>
<FeatureTypeMapping>
<targetElement>myns:MyFeature</targetElement>
...
</FeatureTypeMapping>
<FeatureTypeMapping>
<targetElement>other:OtherFeature</targetElement>
...
</FeatureTypeMapping>
</typeMappings>
</as:AppSchemaDataAccess>
But with the featuretype.xml files I got into trouble. The file
for MyFeature was quite clear, because it simply refers to the
workspace's main namespace "myns":
.../MyFeature/featuretype.xml
<featureType>
<name>MyFeature</name>
<namespace>
<id>myns_namespace</id>
</namespace>
...
</featureType>
However, how do I specify the "otherns" namespace for OtherFeature?
.../OtherFeature/featuretype.xml
<featureType>
<name>OtherFeature</name>
<namespace>
<id> ? </id>
</namespace>
...
</featureType>
Any advise would be great.
Greets,
Volker
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users