USDAForestService / gdalraster

R Bindings to GDAL (Geospatial Data Abstraction Library)
https://usdaforestservice.github.io/gdalraster/
Other
41 stars 7 forks source link

GDALVector: improve NULL handling for attribute and geometry fields in feature write methods #524

Closed ctoney closed 3 weeks ago

ctoney commented 3 weeks ago

On the R side, NA, NULL and empty vector like raw(0) map to OGR NULL (i.e., SetFieldNull() for attribute fields, or SetGeomField() to NULL geometry). This PR mainly improves input checking for NA/NULL and adds several tests.