Hi Nuno and Andrea, Thanks for following up. Yes I think the array would work nicely, and if it used the maxOccurs attribute to determine if a property should be encoded as an array it would bring the GeoJSON output more in line with the GML xml outputs. <element ref="gml:name" minOccurs="0" maxOccurs="unbounded"/>
If it’s ok, I’ll create a ticket on JIRA. Hopefully others will also find it useful or have other suggestions. For a little more background, I’ve been using the app-schema name[1] mapping syntax in our GeoSciML complex borehole service for the properties within the data types that can’t really be feature chained, such as positionalAccuracy and purpose. This works great for GML outputs, but GeoJSON encodes them as 1..1 taking only the last value so unfortunately not all the data is in the output - Curiously though, following the 2.16 update the gsmlbh:indexData/gsmlbh:BoreholeDetails/gsmlbh:purpose property is the only 1 to Many property to be encoded correctly as an array. See below { type: "Feature", id: "gsml.borehole.205820", geometry: {}, properties: { @featureType: "Borehole", identifier: "https://sarigdata.pir.sa.gov.au/resource/feature/gssa/borehole/205820", shape: {}, positionalAccuracy: {}, <--- [0..2] referenceLocation: {}, indexData: { @dataType: "indexData", BoreholeDetails: { @dataType: "BoreholeDetails", operator: {}, driller: {}, startPoint: {}, inclinationType: {}, boreholeMaterialCustodian: {}, <--- [0..*] purpose: [], <--- [0..*] only one already outputting as an array dataCustodian: {}, <--- [0..*] boreholeLength: {} } }, downholeDrillingDetails: [], logElement: [] } } Kind regards, Ursula From: Andrea Aime <andrea.a...@geo-solutions.it> Sent: Wednesday, 8 January 2020 8:27 PM To: Nuno Oliveira <nuno.olive...@geo-solutions.it> Cc: Michael, Ursula (DEM) <ursula.mich...@sa.gov.au>; geoserver-users@lists.sourceforge.net Subject: Re: [Geoserver-users] App-Schema GeoJSON output ignores multiple properties of the same type On Wed, Jan 8, 2020 at 10:49 AM Nuno Oliveira <nuno.olive...@geo-solutions.it<mailto:nuno.olive...@geo-solutions.it>> wrote: A pull request with this enhancement is welcome, otherwise you may want to check the commercial support page<http://geoserver.org/support/>. A ticket on Jira is also welcomed :-) https://osgeo-org.atlassian.net/projects/GEOS/summary Cheers Andrea == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it 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