Internal helper function to retrieve spatial data from Statistics Finland's OGC API. Handles pagination for large datasets and single requests with specified limits.
fetch_ogc_api_statfi(api_url, limit = NULL, crs)
An sf
object containing the requested spatial data, or NULL if no data is retrieved.
Character. The API URL to query.
Integer or NULL. Number of features to retrieve. If NULL, fetches all available features (max 10000 per request).
Integer. Coordinate Reference System (EPSG code). Options: 3067 (ETRS89 / TM35FIN), 4326 (WGS84).
Markus Kainu markus.kainu@kapsi.fi