I have a client application that wants to receive the WFS GML 3.1.1 attribute 
values without the namespace part. I can do some changes that might help on 
the client side, but since this is a packaged windows app, I'd like to fix it 
on the server if I can.

As an example, consider something like this (from ne:countries, with some 
parts removed to make it less ugly to read)

<?xml version="1.0" encoding="UTF-8"?>
<wfs:FeatureCollection ...>
<gml:featureMembers>
<ne:countries gml:id="countries.242">
<ne:geom><gml:MultiSurface srsName="EPSG:4326" srsDimension="2">....</
gml:MultiSurface></ne:geom>
<ne:featurecla>Admin-0 country</ne:featurecla>
<ne:scalerank>5</ne:scalerank>
<ne:LABELRANK>6</ne:LABELRANK>
...
<ne:FCLASS_TLC>Admin-0 country</ne:FCLASS_TLC>
</ne:countries>
</gml:featureMembers>
</wfs:FeatureCollection>


I do want the namespace on the top level item, but not on the attributes, so 
something like:


<?xml version="1.0" encoding="UTF-8"?>
<wfs:FeatureCollection ....>
<gml:featureMembers>
<ne:countries gml:id="countries.242">
<ne:geom><gml:MultiSurface srsName="EPSG:4326" srsDimension="2">....</
gml:MultiSurface></ne:geom>
<featurecla>Admin-0 country</featurecla>
<scalerank>5</scalerank>
<LABELRANK>6</LABELRANK>
...
<FCLASS_TLC>Admin-0 country</FCLASS_TLC>
</ne:countries>
</gml:featureMembers>
</wfs:FeatureCollection>

It looks like WFS Schema Mapping (https://docs.geoserver.org/stable/en/user/
services/wfs/schemamapping.html) might be able to help, but I'm not sure what 
the changes to the schema file would need to look like.

Can anyone suggest a way forward, or confirm this is a dead end and I'll need 
to use something heavier (like app-schema, which I'm a bit scared of)?

Brad




_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to