Jukka,
Fixed per https://github.com/qgis/QGIS/pull/54617 . The infinite items
request came from when requesting the feature count.
The server returns sub-optimal content for QGIS usage:
- the collection metadata does not advertize a extent.spatial.bbox
- the /items answers don't include a "|numberMatched|" property that
would help to get the feature count (QGIS emits a /items?limit=1 hoping
that it returns numberMatched)
Even
Le 12/09/2023 à 17:01, Rahkonen Jukka via QGIS-User a écrit :
Hi,
I hoped that the OAPIF driver would honor the check box “Only request
features overlapping the view extent” but at least in QGIS 3.32 that
does not happen.
How to test:
- Set project into EPSG:4326
- Open the Debugging/development tools
- Zoom for example to lat-lon 63.189111,23.538514 and set scale into
1:5000
- Add collection “building” from an open OAPIF service
https://beta-paikkatieto.maanmittauslaitos.fi/inspire-buildings/features/v1/.
Use feature paging with page size 1000.
- Remove the layer from the project because otherwise QGIS continues
downloading a few million building polygons
- Check the http requests
The http history shows that after a bunch of probing OAPIF requests
QGIS sends plain &items= request without &bbox= and thus asks the
server to send the whole collection. What QGIS does right is that it
follows the next-links and continues downloading.
https://beta-paikkatieto.maanmittauslaitos.fi/inspire-buildings/features/v1/collections/building/items?limit=1000&crs=http://www.opengis.net/def/crs/EPSG/0/4326
<https://beta-paikkatieto.maanmittauslaitos.fi/inspire-buildings/features/v1/collections/building/items?limit=1000&crs=http://www.opengis.net/def/crs/EPSG/0/4326>
I wonder if the view extent limit should work also for OAPIF or is a
not-yet implemented feature?
-Jukka Rahkonen-
_______________________________________________
QGIS-User mailing list
[email protected]
List info:https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe:https://lists.osgeo.org/mailman/listinfo/qgis-user
--
http://www.spatialys.com
My software is free, but my time generally not.
_______________________________________________
QGIS-User mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user