GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-0b29c8ef57
|
Go to the source code of this file.
Macros | |
#define | GV_DIRECTORY "vector" |
Name of vector directory. More... | |
#define | GV_FRMT_ELEMENT "frmt" |
Format description, data location (OGR) More... | |
#define | GV_COOR_ELEMENT "coor" |
Native format, coordinates. More... | |
#define | GV_HEAD_ELEMENT "head" |
Native format, header information. More... | |
#define | GV_DBLN_ELEMENT "dbln" |
Native format, link to database. More... | |
#define | GV_HIST_ELEMENT "hist" |
Native format, history file. More... | |
#define | GV_TOPO_ELEMENT "topo" |
Native format, topology file. More... | |
#define | GV_SIDX_ELEMENT "sidx" |
Native format, spatial index. More... | |
#define | GV_CIDX_ELEMENT "cidx" |
Native format, category index. More... | |
#define | GV_FIDX_ELEMENT "fidx" |
External format (OGR), feature index. More... | |
#define | GV_COLR_ELEMENT "colr" |
Color table. More... | |
#define | GV_COLR2_DIRECTORY "vcolr2" |
Name of directory for alternative color tables. More... | |
#define | GV_TIMESTAMP_ELEMENT "timestamp" |
Name of the timestamp file. More... | |
#define | PORT_DOUBLE 8 |
Sizes of types used in portable format (different names used in Vlib/ and diglib/ for the same thing) More... | |
#define | PORT_FLOAT 4 |
#define | PORT_LONG 4 |
#define | PORT_INT 4 |
#define | PORT_SHORT 2 |
#define | PORT_CHAR 1 |
#define | PORT_OFF_T 8 |
#define | DBL_SIZ 8 |
replace by PORT_* in Vlib later and remove : More... | |
#define | FLT_SIZ 4 |
#define | LNG_SIZ 4 |
#define | SHRT_SIZ 2 |
#define | PORT_DOUBLE_MAX 1.7976931348623157e+308 |
Limits for portable types. More... | |
#define | PORT_DOUBLE_MIN 2.2250738585072014e-308 |
#define | PORT_FLOAT_MAX 3.40282347e+38F |
#define | PORT_FLOAT_MIN 1.17549435e-38F |
#define | PORT_LONG_MAX 2147483647L |
#define | PORT_LONG_MIN (-2147483647L) |
#define | PORT_INT_MAX 2147483647 |
#define | PORT_INT_MIN (-2147483647) |
#define | PORT_SHORT_MAX 32767 |
#define | PORT_SHORT_MIN (-32768) |
#define | PORT_CHAR_MAX 127 |
#define | PORT_CHAR_MIN (-128) |
#define | GV_FORMAT_NATIVE 0 |
Geometry data formats supported by lib Don't change GV_FORMAT_* values, this order is hardcoded in lib. More... | |
#define | GV_FORMAT_OGR 1 |
OGR format. More... | |
#define | GV_FORMAT_OGR_DIRECT 2 |
OGR format (direct access) More... | |
#define | GV_FORMAT_POSTGIS 3 |
PostGIS format. More... | |
#define | GV_TOPO_NATIVE 0 |
GRASS topology - native format. More... | |
#define | GV_TOPO_PSEUDO 1 |
Pseudo-topology - external simple features (OGR/PostGIS) format. More... | |
#define | GV_TOPO_POSTGIS 2 |
PostGIS topology - external PostGIS format. More... | |
#define | GV_1TABLE 0 |
One table linked to vector map. More... | |
#define | GV_MTABLE 1 |
More tables linked to vector map. More... | |
#define | GV_MODE_READ 0 |
Read-only vector map open mode. More... | |
#define | GV_MODE_WRITE 1 |
Write vector map open mode. More... | |
#define | GV_MODE_RW 2 |
Read-write vector map open mode. More... | |
#define | VECT_OPEN_CODE 0x5522AA22 |
Vector map open code. More... | |
#define | VECT_CLOSED_CODE 0x22AA2255 |
Vector map close code. More... | |
#define | LEVEL_1 1 |
Vector level - without topology. More... | |
#define | LEVEL_2 2 |
Vector level - with 2D topology. More... | |
#define | LEVEL_3 3 |
Vector level - with 3D topology (not implemented yet) More... | |
#define | GV_BUILD_NONE 0 |
Topology levels - nothing to build. More... | |
#define | GV_BUILD_BASE 1 |
Topology levels - basic level (without areas and isles) More... | |
#define | GV_BUILD_AREAS 2 |
Topology levels - build areas. More... | |
#define | GV_BUILD_ATTACH_ISLES 3 |
Topology levels - attach islands to areas. More... | |
#define | GV_BUILD_CENTROIDS 4 |
Topology levels - assign centroids to areas. More... | |
#define | GV_BUILD_ALL GV_BUILD_CENTROIDS |
Topology levels - build everything (currently same as GV_BUILD_CENTROIDS) More... | |
#define | VECT_OPEN(Map) (Map->open == VECT_OPEN_CODE) |
Check if vector map is open. More... | |
#define | GV_MEMORY_ALWAYS 1 |
Memory mode. More... | |
#define | GV_MEMORY_NEVER 2 |
#define | GV_MEMORY_AUTO 3 |
#define | GV_COOR_HEAD_SIZE 14 |
Coordinates file head size. More... | |
#define | GRASS_V_VERSION "5.0" |
#define | GV_COOR_VER_MAJOR 5 |
The latest versions of files known by current version of the library. Used for new files. More... | |
#define | GV_COOR_VER_MINOR 1 |
#define | GV_TOPO_VER_MAJOR 5 |
#define | GV_TOPO_VER_MINOR 1 |
#define | GV_SIDX_VER_MAJOR 5 |
#define | GV_SIDX_VER_MINOR 1 |
#define | GV_CIDX_VER_MAJOR 5 |
#define | GV_CIDX_VER_MINOR 0 |
#define | GV_COOR_EARLIEST_MAJOR 5 |
The oldest versions of the library, which are capable to read the files created by the current version. More... | |
#define | GV_COOR_EARLIEST_MINOR 1 |
#define | GV_TOPO_EARLIEST_MAJOR 5 |
#define | GV_TOPO_EARLIEST_MINOR 1 |
#define | GV_SIDX_EARLIEST_MAJOR 5 |
#define | GV_SIDX_EARLIEST_MINOR 1 |
#define | GV_CIDX_EARLIEST_MAJOR 5 |
#define | GV_CIDX_EARLIEST_MINOR 0 |
#define | WITHOUT_Z 0 |
2D/3D vector data More... | |
#define | WITH_Z 1 |
#define | GV_LEFT 1 |
Boundary side indicator left/right. More... | |
#define | GV_RIGHT 2 |
#define | GV_FORWARD 1 |
Line direction indicator forward/backward. More... | |
#define | GV_BACKWARD 2 |
#define | GV_POINT 0x01 |
Feature types used in memory on run time (may change) More... | |
#define | GV_LINE 0x02 |
#define | GV_BOUNDARY 0x04 |
#define | GV_CENTROID 0x08 |
#define | GV_FACE 0x10 |
#define | GV_KERNEL 0x20 |
#define | GV_AREA 0x40 |
#define | GV_VOLUME 0x80 |
#define | GV_POINTS (GV_POINT | GV_CENTROID) |
#define | GV_LINES (GV_LINE | GV_BOUNDARY) |
#define | GV_STORE_POINT 1 |
Feature types used in store like 'coor' file or postgis type column (must not change) More... | |
#define | GV_STORE_LINE 2 |
#define | GV_STORE_BOUNDARY 3 |
#define | GV_STORE_CENTROID 4 |
#define | GV_STORE_FACE 5 |
#define | GV_STORE_KERNEL 6 |
#define | GV_STORE_AREA 7 /* used in category index file */ |
#define | GV_STORE_VOLUME 8 /* used in category index file */ |
#define | GV_ON_AND "AND" /* intersect */ |
Overlay operators. More... | |
#define | GV_ON_OVERLAP "OVERLAP" |
#define | GV_NCATS_MAX PORT_INT_MAX |
Maximum number of categories for one element. More... | |
#define | GV_FIELD_MAX PORT_INT_MAX |
Maximum field. More... | |
#define | GV_CAT_MAX PORT_INT_MAX |
Maximum category value. More... | |
#define | GV_ASCII_FORMAT_POINT 0 |
GRASS ASCII vector format - point format. More... | |
#define | GV_ASCII_FORMAT_STD 1 |
GRASS ASCII vector format - standard format. More... | |
#define | GV_ASCII_FORMAT_WKT 2 |
GRASS ASCII vector format - well-known-text format. More... | |
#define | HEADSTR 50 |
#define | GV_PG_FID_COLUMN "fid" |
GRASS-PostGIS data provider - default fid column. More... | |
#define | GV_PG_GEOMETRY_COLUMN "geom" |
GRASS-PostGIS data provider - default geometry column. More... | |
Typedefs | |
typedef enum overlay_operator | OVERLAY_OPERATOR |
Enumerations | |
enum | overlay_operator { GV_O_AND , GV_O_OVERLAP } |
enum | SF_FeatureType { SF_GEOMETRY = 0 , SF_POINT = 1 , SF_LINESTRING = 2 , SF_POLYGON = 3 , SF_MULTIPOINT = 4 , SF_MULTILINESTRING = 5 , SF_MULTIPOLYGON = 6 , SF_GEOMETRYCOLLECTION = 7 , SF_NONE = 100 , SF_LINEARRING = 101 , SF_POINT25D = 0x80000001 , SF_LINESTRING25D = 0x80000002 , SF_POLYGON25D = 0x80000003 , SF_MULTIPOINT25D = 0x80000004 , SF_MULTILINESTRING25D = 0x80000005 , SF_MULTIPOLYGON25D = 0x80000006 , SF_GEOMETRYCOLLECTION25D = 0x80000007 } |
Simple feature types. More... | |
#define DBL_SIZ 8 |
replace by PORT_* in Vlib later and remove :
Definition at line 57 of file dig_defines.h.
#define FLT_SIZ 4 |
Definition at line 58 of file dig_defines.h.
#define GRASS_V_VERSION "5.0" |
Definition at line 147 of file dig_defines.h.
#define GV_1TABLE 0 |
One table linked to vector map.
Definition at line 99 of file dig_defines.h.
#define GV_AREA 0x40 |
Definition at line 189 of file dig_defines.h.
#define GV_ASCII_FORMAT_POINT 0 |
GRASS ASCII vector format - point format.
Definition at line 222 of file dig_defines.h.
#define GV_ASCII_FORMAT_STD 1 |
GRASS ASCII vector format - standard format.
Definition at line 224 of file dig_defines.h.
#define GV_ASCII_FORMAT_WKT 2 |
GRASS ASCII vector format - well-known-text format.
Definition at line 226 of file dig_defines.h.
#define GV_BACKWARD 2 |
Definition at line 180 of file dig_defines.h.
#define GV_BOUNDARY 0x04 |
Definition at line 185 of file dig_defines.h.
#define GV_BUILD_ALL GV_BUILD_CENTROIDS |
Topology levels - build everything (currently same as GV_BUILD_CENTROIDS)
Definition at line 134 of file dig_defines.h.
#define GV_BUILD_AREAS 2 |
Topology levels - build areas.
Definition at line 127 of file dig_defines.h.
#define GV_BUILD_ATTACH_ISLES 3 |
Topology levels - attach islands to areas.
Definition at line 129 of file dig_defines.h.
#define GV_BUILD_BASE 1 |
Topology levels - basic level (without areas and isles)
Definition at line 125 of file dig_defines.h.
#define GV_BUILD_CENTROIDS 4 |
Topology levels - assign centroids to areas.
Definition at line 131 of file dig_defines.h.
#define GV_BUILD_NONE 0 |
Topology levels - nothing to build.
Definition at line 123 of file dig_defines.h.
#define GV_CAT_MAX PORT_INT_MAX |
Maximum category value.
Definition at line 219 of file dig_defines.h.
#define GV_CENTROID 0x08 |
Definition at line 186 of file dig_defines.h.
#define GV_CIDX_EARLIEST_MAJOR 5 |
Definition at line 167 of file dig_defines.h.
#define GV_CIDX_EARLIEST_MINOR 0 |
Definition at line 168 of file dig_defines.h.
#define GV_CIDX_ELEMENT "cidx" |
Native format, category index.
Definition at line 24 of file dig_defines.h.
#define GV_CIDX_VER_MAJOR 5 |
Definition at line 156 of file dig_defines.h.
#define GV_CIDX_VER_MINOR 0 |
Definition at line 157 of file dig_defines.h.
#define GV_COLR2_DIRECTORY "vcolr2" |
Name of directory for alternative color tables.
Definition at line 30 of file dig_defines.h.
#define GV_COLR_ELEMENT "colr" |
Color table.
Definition at line 28 of file dig_defines.h.
#define GV_COOR_EARLIEST_MAJOR 5 |
The oldest versions of the library, which are capable to read the files created by the current version.
Definition at line 161 of file dig_defines.h.
#define GV_COOR_EARLIEST_MINOR 1 |
Definition at line 162 of file dig_defines.h.
#define GV_COOR_ELEMENT "coor" |
Native format, coordinates.
Definition at line 12 of file dig_defines.h.
#define GV_COOR_HEAD_SIZE 14 |
Coordinates file head size.
Definition at line 145 of file dig_defines.h.
#define GV_COOR_VER_MAJOR 5 |
The latest versions of files known by current version of the library. Used for new files.
Definition at line 150 of file dig_defines.h.
#define GV_COOR_VER_MINOR 1 |
Definition at line 151 of file dig_defines.h.
#define GV_DBLN_ELEMENT "dbln" |
Native format, link to database.
Definition at line 16 of file dig_defines.h.
#define GV_DIRECTORY "vector" |
Name of vector directory.
Definition at line 8 of file dig_defines.h.
#define GV_FACE 0x10 |
Definition at line 187 of file dig_defines.h.
#define GV_FIDX_ELEMENT "fidx" |
External format (OGR), feature index.
Definition at line 26 of file dig_defines.h.
#define GV_FIELD_MAX PORT_INT_MAX |
Maximum field.
Definition at line 217 of file dig_defines.h.
#define GV_FORMAT_NATIVE 0 |
Geometry data formats supported by lib Don't change GV_FORMAT_* values, this order is hardcoded in lib.
GRASS native format
Definition at line 83 of file dig_defines.h.
#define GV_FORMAT_OGR 1 |
OGR format.
Definition at line 85 of file dig_defines.h.
#define GV_FORMAT_OGR_DIRECT 2 |
OGR format (direct access)
Definition at line 87 of file dig_defines.h.
#define GV_FORMAT_POSTGIS 3 |
PostGIS format.
Definition at line 89 of file dig_defines.h.
#define GV_FORWARD 1 |
Line direction indicator forward/backward.
Definition at line 179 of file dig_defines.h.
#define GV_FRMT_ELEMENT "frmt" |
Format description, data location (OGR)
Definition at line 10 of file dig_defines.h.
#define GV_HEAD_ELEMENT "head" |
Native format, header information.
Definition at line 14 of file dig_defines.h.
#define GV_HIST_ELEMENT "hist" |
Native format, history file.
Definition at line 18 of file dig_defines.h.
#define GV_KERNEL 0x20 |
Definition at line 188 of file dig_defines.h.
#define GV_LEFT 1 |
Boundary side indicator left/right.
Definition at line 175 of file dig_defines.h.
#define GV_LINE 0x02 |
Definition at line 184 of file dig_defines.h.
#define GV_LINES (GV_LINE | GV_BOUNDARY) |
Definition at line 193 of file dig_defines.h.
#define GV_MEMORY_ALWAYS 1 |
Memory mode.
Definition at line 140 of file dig_defines.h.
#define GV_MEMORY_AUTO 3 |
Definition at line 142 of file dig_defines.h.
#define GV_MEMORY_NEVER 2 |
Definition at line 141 of file dig_defines.h.
#define GV_MODE_READ 0 |
Read-only vector map open mode.
Definition at line 104 of file dig_defines.h.
#define GV_MODE_RW 2 |
Read-write vector map open mode.
Definition at line 108 of file dig_defines.h.
#define GV_MODE_WRITE 1 |
Write vector map open mode.
Definition at line 106 of file dig_defines.h.
#define GV_MTABLE 1 |
More tables linked to vector map.
Definition at line 101 of file dig_defines.h.
#define GV_NCATS_MAX PORT_INT_MAX |
Maximum number of categories for one element.
Definition at line 215 of file dig_defines.h.
#define GV_ON_AND "AND" /* intersect */ |
Overlay operators.
Definition at line 207 of file dig_defines.h.
#define GV_ON_OVERLAP "OVERLAP" |
Definition at line 208 of file dig_defines.h.
#define GV_PG_FID_COLUMN "fid" |
GRASS-PostGIS data provider - default fid column.
Definition at line 271 of file dig_defines.h.
#define GV_PG_GEOMETRY_COLUMN "geom" |
GRASS-PostGIS data provider - default geometry column.
Definition at line 273 of file dig_defines.h.
#define GV_POINT 0x01 |
Feature types used in memory on run time (may change)
Definition at line 183 of file dig_defines.h.
#define GV_POINTS (GV_POINT | GV_CENTROID) |
Definition at line 192 of file dig_defines.h.
#define GV_RIGHT 2 |
Definition at line 176 of file dig_defines.h.
#define GV_SIDX_EARLIEST_MAJOR 5 |
Definition at line 165 of file dig_defines.h.
#define GV_SIDX_EARLIEST_MINOR 1 |
Definition at line 166 of file dig_defines.h.
#define GV_SIDX_ELEMENT "sidx" |
Native format, spatial index.
Definition at line 22 of file dig_defines.h.
#define GV_SIDX_VER_MAJOR 5 |
Definition at line 154 of file dig_defines.h.
#define GV_SIDX_VER_MINOR 1 |
Definition at line 155 of file dig_defines.h.
#define GV_STORE_AREA 7 /* used in category index file */ |
Definition at line 203 of file dig_defines.h.
#define GV_STORE_BOUNDARY 3 |
Definition at line 199 of file dig_defines.h.
#define GV_STORE_CENTROID 4 |
Definition at line 200 of file dig_defines.h.
#define GV_STORE_FACE 5 |
Definition at line 201 of file dig_defines.h.
#define GV_STORE_KERNEL 6 |
Definition at line 202 of file dig_defines.h.
#define GV_STORE_LINE 2 |
Definition at line 198 of file dig_defines.h.
#define GV_STORE_POINT 1 |
Feature types used in store like 'coor' file or postgis type column (must not change)
Definition at line 197 of file dig_defines.h.
#define GV_STORE_VOLUME 8 /* used in category index file */ |
Definition at line 204 of file dig_defines.h.
#define GV_TIMESTAMP_ELEMENT "timestamp" |
Name of the timestamp file.
Definition at line 32 of file dig_defines.h.
#define GV_TOPO_EARLIEST_MAJOR 5 |
Definition at line 163 of file dig_defines.h.
#define GV_TOPO_EARLIEST_MINOR 1 |
Definition at line 164 of file dig_defines.h.
#define GV_TOPO_ELEMENT "topo" |
Native format, topology file.
Definition at line 20 of file dig_defines.h.
#define GV_TOPO_NATIVE 0 |
GRASS topology - native format.
Definition at line 92 of file dig_defines.h.
#define GV_TOPO_POSTGIS 2 |
PostGIS topology - external PostGIS format.
Definition at line 96 of file dig_defines.h.
#define GV_TOPO_PSEUDO 1 |
Pseudo-topology - external simple features (OGR/PostGIS) format.
Definition at line 94 of file dig_defines.h.
#define GV_TOPO_VER_MAJOR 5 |
Definition at line 152 of file dig_defines.h.
#define GV_TOPO_VER_MINOR 1 |
Definition at line 153 of file dig_defines.h.
#define GV_VOLUME 0x80 |
Definition at line 190 of file dig_defines.h.
#define HEADSTR 50 |
Definition at line 268 of file dig_defines.h.
#define LEVEL_1 1 |
Vector level - without topology.
Definition at line 116 of file dig_defines.h.
#define LEVEL_2 2 |
Vector level - with 2D topology.
Definition at line 118 of file dig_defines.h.
#define LEVEL_3 3 |
Vector level - with 3D topology (not implemented yet)
Definition at line 120 of file dig_defines.h.
#define LNG_SIZ 4 |
Definition at line 59 of file dig_defines.h.
#define PORT_CHAR 1 |
Definition at line 50 of file dig_defines.h.
#define PORT_CHAR_MAX 127 |
Definition at line 76 of file dig_defines.h.
#define PORT_CHAR_MIN (-128) |
Definition at line 77 of file dig_defines.h.
#define PORT_DOUBLE 8 |
Sizes of types used in portable format (different names used in Vlib/ and diglib/ for the same thing)
Assumptions:
short = 2 byte int
Definition at line 45 of file dig_defines.h.
#define PORT_DOUBLE_MAX 1.7976931348623157e+308 |
#define PORT_DOUBLE_MIN 2.2250738585072014e-308 |
Definition at line 67 of file dig_defines.h.
#define PORT_FLOAT 4 |
Definition at line 46 of file dig_defines.h.
#define PORT_FLOAT_MAX 3.40282347e+38F |
Definition at line 68 of file dig_defines.h.
#define PORT_FLOAT_MIN 1.17549435e-38F |
Definition at line 69 of file dig_defines.h.
#define PORT_INT 4 |
Definition at line 48 of file dig_defines.h.
#define PORT_INT_MAX 2147483647 |
Definition at line 72 of file dig_defines.h.
#define PORT_INT_MIN (-2147483647) |
Definition at line 73 of file dig_defines.h.
#define PORT_LONG 4 |
Definition at line 47 of file dig_defines.h.
#define PORT_LONG_MAX 2147483647L |
Definition at line 70 of file dig_defines.h.
#define PORT_LONG_MIN (-2147483647L) |
Definition at line 71 of file dig_defines.h.
#define PORT_OFF_T 8 |
Definition at line 51 of file dig_defines.h.
#define PORT_SHORT 2 |
Definition at line 49 of file dig_defines.h.
#define PORT_SHORT_MAX 32767 |
Definition at line 74 of file dig_defines.h.
#define PORT_SHORT_MIN (-32768) |
Definition at line 75 of file dig_defines.h.
#define SHRT_SIZ 2 |
Definition at line 60 of file dig_defines.h.
#define VECT_CLOSED_CODE 0x22AA2255 |
Vector map close code.
Definition at line 113 of file dig_defines.h.
#define VECT_OPEN | ( | Map | ) | (Map->open == VECT_OPEN_CODE) |
Check if vector map is open.
Definition at line 137 of file dig_defines.h.
#define VECT_OPEN_CODE 0x5522AA22 |
Vector map open code.
Definition at line 111 of file dig_defines.h.
#define WITH_Z 1 |
Definition at line 172 of file dig_defines.h.
#define WITHOUT_Z 0 |
2D/3D vector data
Definition at line 171 of file dig_defines.h.
typedef enum overlay_operator OVERLAY_OPERATOR |
Definition at line 1 of file dig_defines.h.
enum overlay_operator |
Enumerator | |
---|---|
GV_O_AND | |
GV_O_OVERLAP |
Definition at line 210 of file dig_defines.h.
enum SF_FeatureType |
Simple feature types.
Taken from GDAL/OGR library (ogr/ogr_core.h)
Definition at line 239 of file dig_defines.h.