polygonize()
: create a polygon feature layer from raster data, wrapper for GDALPolygonize
in the GDAL Algorithms API.rasterize()
: burn vector geometries (points, lines, or polygons) into a raster, wrapper for the gdal_rasterize
command-line utilitybuildVRT()
: build a GDAL virtual raster mosaic from a list of datasets, wrapper for the gdalbuildvrt
command-line utilitytranslate()
: convert raster data between different formats, wrapper for the gdal_translate
command-line utilityt_srs
optional in warp()
TRADITIONAL_GIS_ORDER=OSR_DEFAULT_AXIS_MAPPING_STRATEGY
is now set on package loadwarp()
has additional documentation covering several processing optionsCOMPRESS_OVERVIEW
configuration option to the documentation for GDALRaster::buildOverviews()
str()
of the GDALRaster
object in the Raster API TutorialdisplayRAT()
)getDefaultRAT()
, setDefaultRAT()
getDefaultHistogram()
: fetch default raster histogram for a bandgetHistogram()
: compute raster histogram for a bandgetMinMax()
: compute min/max for a raster bandgetMetadataDomainList()
: get a list of metadata domains for a dataset or raster bandgetMetadataItem()
for a specific domain at dataset level (#109)buildRAT()
: compute for a raster band the set of unique pixel values and their counts, and build a GDAL Raster Attribute Table as data framedisplayRAT()
: generate a presentation Raster Attribute Table, showing colors if the table contains RGB columnsgdal_formats()
: report the supported raster formatsgetCreationOptions()
: get the list of creation options of a raster formatcopyDatasetFiles()
: copy all the files associated with a datasetdeleteDataset()
: delete a dataset in a format-specific wayrenameDataset()
: rename a dataset in a format-specific wayincr
for the count increment in CmbTable::update()
can be zerouint64_t
for the count accumulator (previously long long
) and make explicit the return cast in get_count()
(no user-visible changes)plot_raster()
: normalize legend correctly for minmax_def
and minmax_pct_cut
(#131)RunningStats-class
gdal_formats()
and getCreationOptions()
getColorTable()
, getPaletteInterp()
, setColorTable()
getRasterColorInterp()
, setRasterColorInterp()
: get/set color interpretation for raster bandsgetDescription()
, setDescription()
: get/set description for raster band objectsflushCache()
: flush all write cached data to diskgetFileList()
: returns a list of files forming the datasetinfoAsJSON()
: returns output of the gdalinfo
command-line utility as a JSON-formatted stringnew()
: add a warning in the class constructor if the raster has an int64 data type (would be handled as double for now)bandCopyWholeRaster()
: wrapper for GDALRasterBandCopyWholeRaster()
, efficiently copy a whole raster bandcreateColorRamp()
: wrapper for GDALCreateColorRamp()
, automatically create a ramp from one color to anothersieveFilter()
: wrapper for GDALSieveFilter()
in the Algorithms API, remove small raster polygonsproj_version()
, proj_search_paths()
, proj_networking()
(via GDAL headers)g_buffer()
: compute buffer of a WKT geometry (GEOS convenience function via GDAL headers)updateFromMatrixByRow()
: update the hash table from a matrix having integer combinations arranged in rowsasMatrix()
: return the combinations table as a numeric matrix (alternative to asDataFrame()
)warp()
caused segfault if proj.db could not be found (#96)plot_raster()
: default value of the legend
argument has been changed to FALSE
; legend can now use a color table for continuous data; add argument maxColorValue
(e.g., to use RGB 0:255 instead of 0:1 in col_tbl
)bbox_from_wkt()
, bbox_to_wkt()
: add arguments extend_x
, extend_y
add dem_proc()
: wrapper for the gdaldem
command-line utility to generate DEM derivatives
add the following set methods in class GDALRaster
: setMetadataItem()
, setUnitType()
, setScale()
, setOffset()
add GDALRaster$buildOverviews()
: build raster overviews
add GDALRaster$dim()
: returns a vector of xsize, ysize, nbands
transform_xy()
and inv_project()
: pts
can be a data frame or matrix
plot_raster()
now accepts a GDALRaster
object for the data
argument
plot_raster()
: make the legend narrower and add argument digits
to format legend labels when raster data are floating point
add test suite and code coverage report
GDALRaster::read()
: data are now read as R integer
type when possible for the raster data type (#23)
add fillNodata()
: wrapper for GDALFillNodata()
in the GDAL Algorithms API
add read_ds()
: convenience wrapper for GDALRaster$read()
add plot_raster()
: display raster data using base R graphics
add get_cache_used()
: wrapper for GDALGetCacheUsed64()
with return value in MB
add GDALRaster$getOverviewCount()
: return the number of overview layers available
GDALRaster$info()
: drop -nomd
argument from the internal call
bbox_from_wkt()
: return NA
if creation of the geometry object fails (#27)
fix GDALRaster$getMetadata()
: requesting band-level metadata for a domain other than the default metadata domain was returning dataset-level metadata instead
add vignette containing an R port of the GDAL Raster API tutorial
add description of the GDAL_RASTERIO_RESAMPLING
configuration option in the documentation for GDALRaster$read()
add web article on the GDAL block cache and configuration of GDAL_CACHEMAX
starting at v. 1.2.0, {gdalraster}
will require R >= 4.2.0
fix: check for GEOS availability in bbox geometry functions
fix: wrong array dimensions in read()
(#5). Starting at v. 1.2.0, read()
will return vector instead of matrix which better matches the concept of a native GDAL-like interface (thanks to Michael Sumner).
add: has_geos()
exported to R
add: srs_is_same()
- wrapper for OSRIsSame() in the GDAL Spatial Reference System C API
documentation - minor edits throughout to improve clarity