![]() The following routine opens the raster map file for reading. If the user specifies a fully qualified raster map name which exists, then G_find_raster() modifies name by removing the example, to find a raster map in all mapsets listed the mapset search path: If not found, the NULL pointer is returned. If found, the mapset where the raster file lives is returned. Looks for the raster file in the database. The following routines search the database for raster map files: Often only the unqualified raster map name is provided on the command line and searched in all mapsets indicated in the mapset search path (SEARCH_PATH file in the actual mapset managed with g.mapsets command). GRASS allows the user to specify raster map names (or any other GIS database file) either as a simple unqualified name, such as "soils", or in case of input raster maps also as a fully qualified name, such as where mapset is the mapset where the raster map is to be found. 3D rasters (grid3d) is treated as DCELL (see related library). CELL is a 32-bit signed integer, FCELL is an IEEE single-precision floating-point, and DCELL is an IEEE double-precision floating-point. Raster map data can be of type CELL, FCELL or DCELL, they are defined in "gis.h". The processing of raster map files consists of determining which raster map file or files are to be processed (specified on the module command line), locating the raster map file in the database, opening the raster files, dynamically allocating i/o buffers, reading or writing the raster files, closing the raster files, and creating support files for newly created raster maps. This library provides a suite of routines which process raster map file. The upper GRASS 4.x and the lower GRASS 5.x/6.x parts need to me merged and updated to GRASS 7 Important hints for upgrades to raster modules.Guidelines for upgrading GRASS 4.x Modules.New Functions to read/write access and modify Categories structure.Categories Labeling Functions (new and upgraded).New functions to support treating a raster layer as a color image.New functions to support a default color.New functions to support a color for the NULL-value.New functions to support colors for floating-point.Upgrades to Raster Functions (comparing to GRASS 4.x). ![]() Floating-point and type-independent functions.Creating and/or Modifying the Color Table.Reading and Writing the Raster Color File.Querying and Changing the Categories Structure.Reading and Writing the Raster Category File.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |