mountainMath / cancensus

R wrapper for calling CensusMapper APIs

Home Page:https://mountainmath.github.io/cancensus/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GDAL Error 1: geoJSON object too complex

mountainMath opened this issue · comments

{cancensus} does not read complex geometries like Nunavut any more. It throws an error

GDAL Error 1: geoJSON object too complex

My hunch is that the {sf} package recently switched out their geoJSON driver to rely on GDAL, which has a fairly low memory limit (unless explicitly compiled with higher memory limit).

One way around this is to use a different geoJSON driver. For example, geojsonsf::geojson_sf is very fast and has no problem reading in large geojson.