Hi, Does the data look easier to parse in GML format? WFS is written for GML and it is hard to support all the flexible possibilities of GML in GeoJSON.
-Jukka Rahkonen- Lähettäjä: Joris Billen via Geoserver-users <geoserver-users@lists.sourceforge.net> Lähetetty: tiistai 9. huhtikuuta 2024 14.00 Vastaanottaja: geoserver-users@lists.sourceforge.net Aihe: [Geoserver-users] wfs call to retrieve features from several layers: how to know what geometric object comes from what layer? Dear experts, I make a wfs call with some CQL filter to several layers and it creates a json with all the features for all returned geometric objects(linestrings in my case). https://url:port/geoserver/wfs?service=wfs&version=1.0.0&request=GetFeature&typeName=cite:layer1,layer2,layer3&CQL_FILTER=filter1;filter2;filter3&outputFormat=json It also returns some other non-geometric properties. However, I can not see from the returned json what object comes from what layer. Is it easy to add that info in the call? I am contemplating adding a field attribute layer_type. But this would then have a constant value for all records in the layer (for layer1: layer_type=1, layer2: layer_type=2, layer3:layer_type=3) which sounds a bit silly. Is there any way of adding the layername where the geometric object came from to the response? Thanks!
_______________________________________________ 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