I have a big MULTIPOLYGON feature that I can manipulate in sf
, but when I try to save it in a Geopackage
file from sf
I get the message:
Failed to create feature 0 in T_POLIGONOS_HILUCS
and then an error
Error in st_write.sf(..., quiet = quiet, append = append, delete_layer = delete_layer) :
failed writing to temporary file C:\Users\goerlich\AppData\Local\Temp\RtmpmCJqiq\fileca058a32e7e.gpkg
The big feature comes from a disolving operation, and I can save it before disolving, but not after.
I wonder if is there a limit on the size of a single feature, because according to the OGC GeoPackage Encoding Standard
The maximum size of a GeoPackage file is about 140TB. In practice a lower size limit MAY be imposed by the filesystem to which the file is written. Many mobile devices require external memory cards to be formatted using the FAT32 file system which imposes a maximum size limit of 4GB.
And my feature is about 1GB.