Hi Even,

Both extent-spatial-bbox and numberMatched are optional in the OAPIF standard 
so good that they now got tested with our service 😉. I don’t know why we have 
not configured the extents, we could well use the fixed BBOX of Finland for 
most collections. Omitting numberMatched is intentional. You know how slow it 
can be to run “select count(*) from
” .

-Jukka Rahkonen-

LÀhettÀjÀ: Even Rouault <even.roua...@spatialys.com>
LĂ€hetetty: perjantai 15. syyskuuta 2023 20.49
Vastaanottaja: Rahkonen Jukka <jukka.rahko...@maanmittauslaitos.fi>; 
qgis-user@lists.osgeo.org
Aihe: Re: [Qgis-user] OAPIF does not honour the view extent


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

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

QGIS-User@lists.osgeo.org<mailto:QGIS-User@lists.osgeo.org>

List info: https://lists.osgeo.org/mailman/listinfo/qgis-user

Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

--

http://www.spatialys.com<http://www.spatialys.com/>

My software is free, but my time generally not.
_______________________________________________
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to