Re: [Geoserver-users] Using WFS Schema mapping to remove namespace?

2023-06-05 Thread Andrea Aime
On Mon, Jun 5, 2023 at 12:32 PM Brad Hards  wrote:

> I do want the namespace on the top level item, but not on the attributes,
> so
> something like:
>
>
> 
> 
> 
> 
>  gml:MultiSurface>
> Admin-0 country
> 5
> 6
> ...
> Admin-0 country
> 
> 
> 
>

This is really weird... and would be valid only if "ne" is made the default
namespace,
in addition to being also declared on the "ne" prefix. So odd that I'm not
sure it's even completely valid LOL.
Unless you are implying that stuff like scalerank is not associated to any
namespace at all... which
again I'm not sure is valid or not, schema compliance wise).


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

I doubt either would work, since they are both schema driven systems... but
who knows.
What might give you enough control is features-templating
,
where you basically have a template engine that might give you enough
control over the output (no promises, never tried to do something like
you're looking for).

Cheers
Andrea


==
GeoServer Professional Services from the experts!

Visit http://bit.ly/gs-services-us for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions Group
phone: +39 0584 962313

fax: +39 0584 1660272

mob:   +39  339 8844549

https://www.geosolutionsgroup.com/

http://twitter.com/geosolutions_it

---

Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE
2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si
precisa che ogni circostanza inerente alla presente email (il suo
contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è
riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il
messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra
operazione è illecita. Le sarei comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to which it is
addressed and may contain information that is privileged, confidential or
otherwise protected from disclosure. We remind that - as provided by
European Regulation 2016/679 “GDPR” - copying, dissemination or use of this
e-mail or the information herein by anyone other than the intended
recipient is prohibited. If you have received this email by mistake, please
notify us immediately by telephone or e-mail
___
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


[Geoserver-users] Using WFS Schema mapping to remove namespace?

2023-06-05 Thread Brad Hards
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)






Admin-0 country
5
6
...
Admin-0 country





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







Admin-0 country
5
6
...
Admin-0 country




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