On Mon, Jun 5, 2023 at 12:32 PM Brad Hards <br...@frogmouth.net> wrote:
> 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> > 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 > <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 <https://docs.geoserver.org/stable/en/user/community/features-templating/index.html>, 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