Hi, See the answer in https://gis.stackexchange.com/questions/380677/wfs-getfeature-with-propertyname-get-response-without-geometry about how to select just certain properties. Unfortunately the demo server at GIS Solutions seems to be down. But if all the properties are mandatory (check with DescribeFeatureType) then WFS standard does not allow to drop any. Then schema mapping may come to rescue https://docs.geoserver.org/latest/en/user/services/wfs/schemamapping.html.
-Jukka Rahkonen- Lähettäjä: Prem Kumar <prem.net...@gmail.com> Lähetetty: perjantai 25. maaliskuuta 2022 16.04 Vastaanottaja: Michael Steigemann via Geoserver-users <Geoserver-users@lists.sourceforge.net> Aihe: [Geoserver-users] WFS GetFeature Request with PropertyName Hi Team, Off late, I'm dealing with rendering large geojson data in the MapBox frontend page using Geoserver WFS service to load the geojson data. Although I'm able to successfully render millions of points on the map with point clustering behavior, I see entire geojson data being downloaded onto the client side via WFS request. I'm looking for a way to fetch only point geometry from geoserver WFS GetFeature request ignoring all its attributes data for rendering purposes and later display properties of selected points in another request. I have tried to use propertyName parameter in the GetFeature request, however, I still see all the attributes being downloaded on the client side. The only observation I had is that all the fields are marked as not-nullable/mandatory fields in the Postgres database. Here is the sample request, would be greatly appreciated if someone can help me whether Im missing anything to avoid loading attribute data. https://localhost:8080/geoserver/wfs?service=WFS&version=2.0.0&request=GetFeature&typeNames=demo:demo_assets&propertyName=asset_id&outputFormat=application/json -Prem
_______________________________________________ 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