Unreadable by gdal type will be "missing", path willīe the input path, and all other items in the returned list will beĮxamples tif <- system.file("extdata","slope.LAYER NAME "JacksonvilleNC_CIB" DATA "Jacksonville.tif" TYPE RASTER STATUS ON CLASSITEM "" # class using simple string comparison, equivalent to ( = 0) CLASS EXPRESSION "0" STYLE COLOR 0 0 0 END END # class using an EXPRESSION using only. If the raster file is missing, corrupt, or otherwise Use print(x, all = TRUE) to printĮverything but the raw text or print(x, raw = TRUE) to print the The print method for rasterInfo will, by default, skip some The raw text returned by gdalinfo that was parsed to create all other items in this list The raster attribute table (AKA Value Attribute Table, VAT) The coordinate reference system in well known text formatĪ vector of all the files associated with the raster dataset NA if there is no No Data value or if gdalinfo reports 'nan' metadataĪny band specific metadata imagestructuremetadataĪny band specific image structure metadata The block dimensions as reported by gdal (colums, rows) type This format matches the way grid extents are defined in gridio.Ī list of lists (one per band) inner list has items id If cells are square these are calculated from origin, rows, cols and cellsize. This is reported by gdalinfo but appears to be rounded, thus the "approx"Ī list with items xll, yll, nrow, ncol, cellsize. The approximate coordinates of the corners and center. Look at raw output to see the text as reported by gdal May report more digits than R can represent. The coordinates of the origin of the file (this seems to be the upper left corner). ![]() The number of columns in the file (copied from dim) The number of rows in the file (copied from dim) This is from a raw line that reads "Size is" and reports cols then rows (reverse of order used here). The dimensions of the raster in cells (rows, then cols). Otherewise the no data value used by the band(s) NA if bands have inconsitent no data values. The resolution of the cells, as reported gdal (two dimensions, possible negative)Ĭalculated from res NA if the cells aren't square, otherwise the (positive) dimension of the cell The driver used to read the file which usually matches the file's formatĬalculated from bands will be "missing" if the raster file is missing or unreadable, "mixed" if there are multiple bands and they have varying types, otherwise the type associated with the band(s). Information returned by gdalinfo ( terra::describe()) and some additional cellsize, type, extent).Ī nested list of class rasterInfo with most of the ![]() Some return values aren't standard for gdal but are calculated here from Use print(rasterInfo(x), raw = TRUE), x$raw if x is a rasterInfo object, to see the unparsed Parse all available information for all file types. Single band ArcInfo Grids and geoTiff files so this function is unlikely to The file type described and I've developed this while working primarily with The information returned by gdalinfo depends on Use this if you think the something is being lost when the text is parsed If TRUE Then the raw text from the gdalinfo call is printed. Use print(x, all=TRUE) to print everything. If FALSE (the default) some potentially lengthly components of Sf::gdal_utils or terra::describe) that returns parsed output in a nestedįor raster info the path to a raster file.įor the print method a rasterInfo object as returned by rasterInfo. This is a wrapper for the gdalinfo utility (accessed through either Get detailed information about raster files Description
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |