GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
dig_defines.h File Reference
This graph shows which files directly or indirectly include this file:

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...
 

Macro Definition Documentation

◆ DBL_SIZ

#define DBL_SIZ   8

replace by PORT_* in Vlib later and remove :

Todo:
To be removed ?

Definition at line 57 of file dig_defines.h.

◆ FLT_SIZ

#define FLT_SIZ   4

Definition at line 58 of file dig_defines.h.

◆ GRASS_V_VERSION

#define GRASS_V_VERSION   "5.0"

Definition at line 146 of file dig_defines.h.

◆ GV_1TABLE

#define GV_1TABLE   0

One table linked to vector map.

Definition at line 99 of file dig_defines.h.

◆ GV_AREA

#define GV_AREA   0x40

Definition at line 188 of file dig_defines.h.

Referenced by dig_type_from_store().

◆ GV_ASCII_FORMAT_POINT

#define GV_ASCII_FORMAT_POINT   0

GRASS ASCII vector format - point format.

Definition at line 224 of file dig_defines.h.

◆ GV_ASCII_FORMAT_STD

#define GV_ASCII_FORMAT_STD   1

GRASS ASCII vector format - standard format.

Definition at line 226 of file dig_defines.h.

◆ GV_ASCII_FORMAT_WKT

#define GV_ASCII_FORMAT_WKT   2

GRASS ASCII vector format - well-known-text format.

Definition at line 228 of file dig_defines.h.

◆ GV_BACKWARD

#define GV_BACKWARD   2

Definition at line 179 of file dig_defines.h.

◆ GV_BOUNDARY

◆ GV_BUILD_ALL

#define GV_BUILD_ALL   GV_BUILD_CENTROIDS

Topology levels - build everything (currently same as GV_BUILD_CENTROIDS)

Definition at line 133 of file dig_defines.h.

Referenced by Vect_build(), Vect_build_partial(), Vect_close(), and Vect_save_fidx().

◆ GV_BUILD_AREAS

#define GV_BUILD_AREAS   2

Topology levels - build areas.

Definition at line 127 of file dig_defines.h.

◆ GV_BUILD_ATTACH_ISLES

#define GV_BUILD_ATTACH_ISLES   3

Topology levels - attach islands to areas.

Definition at line 129 of file dig_defines.h.

◆ GV_BUILD_BASE

#define GV_BUILD_BASE   1

Topology levels - basic level (without areas and isles)

Definition at line 125 of file dig_defines.h.

Referenced by Vect__build_sfa(), Vect_build_ogr(), and Vect_build_pg().

◆ GV_BUILD_CENTROIDS

#define GV_BUILD_CENTROIDS   4

Topology levels - assign centroids to areas.

Definition at line 131 of file dig_defines.h.

Referenced by Vect__open_cursor_next_line_pg().

◆ GV_BUILD_NONE

#define GV_BUILD_NONE   0

Topology levels - nothing to build.

Definition at line 123 of file dig_defines.h.

Referenced by dig_init_plus(), Vect_build_ogr(), Vect_build_partial(), and Vect_build_pg().

◆ GV_CAT_MAX

#define GV_CAT_MAX   PORT_INT_MAX

Maximum category value.

Definition at line 221 of file dig_defines.h.

◆ GV_CENTROID

#define GV_CENTROID   0x08

◆ GV_CIDX_EARLIEST_MAJOR

#define GV_CIDX_EARLIEST_MAJOR   5

Definition at line 166 of file dig_defines.h.

Referenced by dig_write_cidx_head().

◆ GV_CIDX_EARLIEST_MINOR

#define GV_CIDX_EARLIEST_MINOR   0

Definition at line 167 of file dig_defines.h.

Referenced by dig_write_cidx_head().

◆ GV_CIDX_ELEMENT

#define GV_CIDX_ELEMENT   "cidx"

Native format, category index.

Definition at line 24 of file dig_defines.h.

Referenced by Vect_cidx_open(), and Vect_copy().

◆ GV_CIDX_VER_MAJOR

#define GV_CIDX_VER_MAJOR   5

Definition at line 155 of file dig_defines.h.

Referenced by dig_read_cidx_head(), and dig_write_cidx_head().

◆ GV_CIDX_VER_MINOR

#define GV_CIDX_VER_MINOR   0

Definition at line 156 of file dig_defines.h.

Referenced by dig_read_cidx_head(), and dig_write_cidx_head().

◆ GV_COLR2_DIRECTORY

#define GV_COLR2_DIRECTORY   "vcolr2"

Name of directory for alternative color tables.

Definition at line 30 of file dig_defines.h.

Referenced by Vect_remove_colors().

◆ GV_COLR_ELEMENT

#define GV_COLR_ELEMENT   "colr"

Color table.

Definition at line 28 of file dig_defines.h.

Referenced by Vect_remove_colors().

◆ GV_COOR_EARLIEST_MAJOR

#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 160 of file dig_defines.h.

Referenced by V1_open_new_nat().

◆ GV_COOR_EARLIEST_MINOR

#define GV_COOR_EARLIEST_MINOR   1

Definition at line 161 of file dig_defines.h.

Referenced by V1_open_new_nat().

◆ GV_COOR_ELEMENT

#define GV_COOR_ELEMENT   "coor"

Native format, coordinates.

Definition at line 12 of file dig_defines.h.

Referenced by V1_open_new_nat(), V1_open_old_nat(), Vect_coor_info(), and Vect_copy().

◆ GV_COOR_HEAD_SIZE

#define GV_COOR_HEAD_SIZE   14

Coordinates file head size.

Definition at line 144 of file dig_defines.h.

Referenced by dig__read_head(), and dig__write_head().

◆ GV_COOR_VER_MAJOR

#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 149 of file dig_defines.h.

Referenced by dig__read_head(), and V1_open_new_nat().

◆ GV_COOR_VER_MINOR

#define GV_COOR_VER_MINOR   1

Definition at line 150 of file dig_defines.h.

Referenced by dig__read_head(), and V1_open_new_nat().

◆ GV_DBLN_ELEMENT

#define GV_DBLN_ELEMENT   "dbln"

Native format, link to database.

Definition at line 16 of file dig_defines.h.

Referenced by Vect_write_dblinks().

◆ GV_DIRECTORY

◆ GV_FACE

#define GV_FACE   0x10

Definition at line 186 of file dig_defines.h.

Referenced by dig_Rd_P_line(), dig_type_from_store(), and dig_Wr_P_line().

◆ GV_FIDX_ELEMENT

#define GV_FIDX_ELEMENT   "fidx"

External format (OGR), feature index.

Definition at line 26 of file dig_defines.h.

Referenced by Vect_open_fidx(), and Vect_save_fidx().

◆ GV_FIELD_MAX

#define GV_FIELD_MAX   PORT_INT_MAX

Maximum field.

Definition at line 219 of file dig_defines.h.

Referenced by Vect_cat_get(), and Vect_field_cat_get().

◆ GV_FORMAT_NATIVE

#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.

Referenced by Vect_coor_info(), Vect_maptype_info(), Vect_read_dblinks(), Vect_remove_small_areas(), Vect_set_constraint_field(), and Vect_write_dblinks().

◆ GV_FORMAT_OGR

◆ GV_FORMAT_OGR_DIRECT

◆ GV_FORMAT_POSTGIS

◆ GV_FORWARD

#define GV_FORWARD   1

Line direction indicator forward/backward.

Definition at line 178 of file dig_defines.h.

Referenced by Vect_net_get_line_cost().

◆ GV_FRMT_ELEMENT

#define GV_FRMT_ELEMENT   "frmt"

Format description, data location (OGR)

Definition at line 10 of file dig_defines.h.

Referenced by Vect_copy(), and Vect_save_frmt().

◆ GV_HEAD_ELEMENT

#define GV_HEAD_ELEMENT   "head"

Native format, header information.

Definition at line 14 of file dig_defines.h.

Referenced by Vect__read_head(), Vect__write_head(), and Vect_copy().

◆ GV_HIST_ELEMENT

#define GV_HIST_ELEMENT   "hist"

Native format, history file.

Definition at line 18 of file dig_defines.h.

Referenced by Vect_copy().

◆ GV_KERNEL

#define GV_KERNEL   0x20

Definition at line 187 of file dig_defines.h.

Referenced by dig_Rd_P_line(), dig_type_from_store(), and dig_Wr_P_line().

◆ GV_LEFT

#define GV_LEFT   1

Boundary side indicator left/right.

Definition at line 174 of file dig_defines.h.

◆ GV_LINE

#define GV_LINE   0x02

◆ GV_LINES

#define GV_LINES   (GV_LINE | GV_BOUNDARY )

Definition at line 192 of file dig_defines.h.

◆ GV_MEMORY_ALWAYS

#define GV_MEMORY_ALWAYS   1

Memory mode.

Definition at line 139 of file dig_defines.h.

◆ GV_MEMORY_AUTO

#define GV_MEMORY_AUTO   3

Definition at line 141 of file dig_defines.h.

◆ GV_MEMORY_NEVER

#define GV_MEMORY_NEVER   2

Definition at line 140 of file dig_defines.h.

◆ GV_MODE_READ

#define GV_MODE_READ   0

Read-only vector map open mode.

Definition at line 104 of file dig_defines.h.

◆ GV_MODE_RW

#define GV_MODE_RW   2

Read-write vector map open mode.

Definition at line 108 of file dig_defines.h.

Referenced by V1_close_nat(), V1_close_ogr(), and V1_close_pg().

◆ GV_MODE_WRITE

#define GV_MODE_WRITE   1

Write vector map open mode.

Definition at line 106 of file dig_defines.h.

Referenced by V1_close_nat(), V1_close_ogr(), and V1_close_pg().

◆ GV_MTABLE

#define GV_MTABLE   1

More tables linked to vector map.

Definition at line 101 of file dig_defines.h.

◆ GV_NCATS_MAX

#define GV_NCATS_MAX   PORT_INT_MAX

Maximum number of categories for one element.

Definition at line 217 of file dig_defines.h.

Referenced by Vect_cat_set().

◆ GV_ON_AND

#define GV_ON_AND   "AND" /* intersect */

Overlay operators.

Definition at line 205 of file dig_defines.h.

Referenced by Vect_overlay_str_to_operator().

◆ GV_ON_OVERLAP

#define GV_ON_OVERLAP   "OVERLAP"

Definition at line 206 of file dig_defines.h.

Referenced by Vect_overlay_str_to_operator().

◆ GV_PG_FID_COLUMN

#define GV_PG_FID_COLUMN   "fid"

GRASS-PostGIS data provider - default fid column.

Definition at line 262 of file dig_defines.h.

Referenced by dig_read_frmt_ascii().

◆ GV_PG_GEOMETRY_COLUMN

#define GV_PG_GEOMETRY_COLUMN   "geom"

GRASS-PostGIS data provider - default geometry column.

Definition at line 264 of file dig_defines.h.

◆ GV_POINT

#define GV_POINT   0x01

Feature types used in memory on run time (may change)

Definition at line 182 of file dig_defines.h.

Referenced by dig_Rd_P_line(), dig_type_from_store(), Vect__open_cursor_next_line_pg(), and Vect_sfa_get_type().

◆ GV_POINTS

#define GV_POINTS   (GV_POINT | GV_CENTROID )

Definition at line 191 of file dig_defines.h.

◆ GV_RIGHT

#define GV_RIGHT   2

Definition at line 175 of file dig_defines.h.

◆ GV_SIDX_EARLIEST_MAJOR

#define GV_SIDX_EARLIEST_MAJOR   5

Definition at line 164 of file dig_defines.h.

Referenced by dig_Wr_spidx_head().

◆ GV_SIDX_EARLIEST_MINOR

#define GV_SIDX_EARLIEST_MINOR   1

Definition at line 165 of file dig_defines.h.

Referenced by dig_Wr_spidx_head().

◆ GV_SIDX_ELEMENT

#define GV_SIDX_ELEMENT   "sidx"

Native format, spatial index.

Definition at line 22 of file dig_defines.h.

Referenced by Vect_copy(), and Vect_save_sidx().

◆ GV_SIDX_VER_MAJOR

#define GV_SIDX_VER_MAJOR   5

Definition at line 153 of file dig_defines.h.

Referenced by dig_Rd_spidx_head(), and dig_Wr_spidx_head().

◆ GV_SIDX_VER_MINOR

#define GV_SIDX_VER_MINOR   1

Definition at line 154 of file dig_defines.h.

Referenced by dig_Rd_spidx_head(), and dig_Wr_spidx_head().

◆ GV_STORE_AREA

#define GV_STORE_AREA   7 /* used in category index file */

Definition at line 201 of file dig_defines.h.

Referenced by dig_type_from_store().

◆ GV_STORE_BOUNDARY

#define GV_STORE_BOUNDARY   3

Definition at line 197 of file dig_defines.h.

Referenced by dig_type_from_store().

◆ GV_STORE_CENTROID

#define GV_STORE_CENTROID   4

Definition at line 198 of file dig_defines.h.

Referenced by dig_type_from_store().

◆ GV_STORE_FACE

#define GV_STORE_FACE   5

Definition at line 199 of file dig_defines.h.

Referenced by dig_type_from_store().

◆ GV_STORE_KERNEL

#define GV_STORE_KERNEL   6

Definition at line 200 of file dig_defines.h.

Referenced by dig_type_from_store().

◆ GV_STORE_LINE

#define GV_STORE_LINE   2

Definition at line 196 of file dig_defines.h.

Referenced by dig_type_from_store().

◆ GV_STORE_POINT

#define GV_STORE_POINT   1

Feature types used in store like 'coor' file or postgis type column (must not change)

Definition at line 195 of file dig_defines.h.

Referenced by dig_type_from_store().

◆ GV_STORE_VOLUME

#define GV_STORE_VOLUME   8 /* used in category index file */

Definition at line 202 of file dig_defines.h.

Referenced by dig_type_from_store().

◆ GV_TIMESTAMP_ELEMENT

#define GV_TIMESTAMP_ELEMENT   "timestamp"

Name of the timestamp file.

Definition at line 32 of file dig_defines.h.

Referenced by G_has_vector_timestamp(), G_read_vector_timestamp(), G_remove_vector_timestamp(), and G_write_vector_timestamp().

◆ GV_TOPO_EARLIEST_MAJOR

#define GV_TOPO_EARLIEST_MAJOR   5

Definition at line 162 of file dig_defines.h.

Referenced by dig_Wr_Plus_head().

◆ GV_TOPO_EARLIEST_MINOR

#define GV_TOPO_EARLIEST_MINOR   1

Definition at line 163 of file dig_defines.h.

Referenced by dig_Wr_Plus_head().

◆ GV_TOPO_ELEMENT

#define GV_TOPO_ELEMENT   "topo"

Native format, topology file.

Definition at line 20 of file dig_defines.h.

Referenced by V1_open_new_nat(), V2_close_pg(), Vect_copy(), Vect_open_topo(), and Vect_save_topo().

◆ GV_TOPO_NATIVE

#define GV_TOPO_NATIVE   0

GRASS topology - native format.

Definition at line 92 of file dig_defines.h.

Referenced by Vect_get_finfo_topology_info().

◆ GV_TOPO_POSTGIS

#define GV_TOPO_POSTGIS   2

PostGIS topology - external PostGIS format.

Definition at line 96 of file dig_defines.h.

Referenced by Vect_get_finfo_topology_info().

◆ GV_TOPO_PSEUDO

#define GV_TOPO_PSEUDO   1

Pseudo-topology - external simple features (OGR/PostGIS) format.

Definition at line 94 of file dig_defines.h.

Referenced by Vect_get_finfo_topology_info().

◆ GV_TOPO_VER_MAJOR

#define GV_TOPO_VER_MAJOR   5

Definition at line 151 of file dig_defines.h.

Referenced by dig_Rd_Plus_head(), and dig_Wr_Plus_head().

◆ GV_TOPO_VER_MINOR

#define GV_TOPO_VER_MINOR   1

Definition at line 152 of file dig_defines.h.

Referenced by dig_Rd_Plus_head(), and dig_Wr_Plus_head().

◆ GV_VOLUME

#define GV_VOLUME   0x80

Definition at line 189 of file dig_defines.h.

Referenced by dig_type_from_store().

◆ HEADSTR

#define HEADSTR   50

Definition at line 259 of file dig_defines.h.

◆ LEVEL_1

#define LEVEL_1   1

Vector level - without topology.

Definition at line 116 of file dig_defines.h.

Referenced by Vect_build_partial().

◆ LEVEL_2

#define LEVEL_2   2

Vector level - with 2D topology.

Definition at line 118 of file dig_defines.h.

◆ LEVEL_3

#define LEVEL_3   3

Vector level - with 3D topology (not implemented yet)

Definition at line 120 of file dig_defines.h.

◆ LNG_SIZ

#define LNG_SIZ   4

Definition at line 59 of file dig_defines.h.

◆ PORT_CHAR

#define PORT_CHAR   1

Definition at line 50 of file dig_defines.h.

Referenced by dig__fread_port_C(), and dig__fwrite_port_C().

◆ PORT_CHAR_MAX

#define PORT_CHAR_MAX   127

Definition at line 76 of file dig_defines.h.

◆ PORT_CHAR_MIN

#define PORT_CHAR_MIN   (-128)

Definition at line 77 of file dig_defines.h.

◆ PORT_DOUBLE

#define PORT_DOUBLE   8

Sizes of types used in portable format (different names used in Vlib/ and diglib/ for the same thing)

Assumptions:

  • double = 8 byte IEEE
  • float = 4 byte IEEE
  • long = 4 byte int
  • short = 2 byte int
Todo:
To be moved to gislib?

Definition at line 45 of file dig_defines.h.

Referenced by dig__fread_port_D(), dig__fwrite_port_D(), dig_init_portable(), and port_init().

◆ PORT_DOUBLE_MAX

#define PORT_DOUBLE_MAX   1.7976931348623157e+308

Limits for portable types.

Todo:
To be moved to gislib?

Definition at line 66 of file dig_defines.h.

Referenced by Vect_find_area(), Vect_find_node(), Vect_get_area_box(), Vect_get_isle_box(), and Vect_region_box().

◆ PORT_DOUBLE_MIN

#define PORT_DOUBLE_MIN   2.2250738585072014e-308

Definition at line 67 of file dig_defines.h.

◆ PORT_FLOAT

#define PORT_FLOAT   4

Definition at line 46 of file dig_defines.h.

Referenced by dig__fread_port_F(), dig__fwrite_port_F(), dig_init_portable(), and port_init().

◆ PORT_FLOAT_MAX

#define PORT_FLOAT_MAX   3.40282347e+38F

Definition at line 68 of file dig_defines.h.

◆ PORT_FLOAT_MIN

#define PORT_FLOAT_MIN   1.17549435e-38F

Definition at line 69 of file dig_defines.h.

◆ PORT_INT

#define PORT_INT   4

Definition at line 48 of file dig_defines.h.

Referenced by dig__fread_port_I(), dig__fwrite_port_I(), dig_init_portable(), and port_init().

◆ PORT_INT_MAX

#define PORT_INT_MAX   2147483647

Definition at line 72 of file dig_defines.h.

Referenced by dig_Wr_spidx_head().

◆ PORT_INT_MIN

#define PORT_INT_MIN   (-2147483647)

Definition at line 73 of file dig_defines.h.

◆ PORT_LONG

#define PORT_LONG   4

Definition at line 47 of file dig_defines.h.

Referenced by dig__fread_port_L(), dig__fwrite_port_L(), dig_init_portable(), and port_init().

◆ PORT_LONG_MAX

#define PORT_LONG_MAX   2147483647L

◆ PORT_LONG_MIN

#define PORT_LONG_MIN   (-2147483647L)

Definition at line 71 of file dig_defines.h.

◆ PORT_OFF_T

#define PORT_OFF_T   8

Definition at line 51 of file dig_defines.h.

◆ PORT_SHORT

#define PORT_SHORT   2

Definition at line 49 of file dig_defines.h.

Referenced by dig__fread_port_S(), dig__fwrite_port_S(), dig_init_portable(), and port_init().

◆ PORT_SHORT_MAX

#define PORT_SHORT_MAX   32767

Definition at line 74 of file dig_defines.h.

◆ PORT_SHORT_MIN

#define PORT_SHORT_MIN   (-32768)

Definition at line 75 of file dig_defines.h.

◆ SHRT_SIZ

#define SHRT_SIZ   2

Definition at line 60 of file dig_defines.h.

◆ VECT_CLOSED_CODE

#define VECT_CLOSED_CODE   0x22AA2255

Vector map close code.

Definition at line 113 of file dig_defines.h.

Referenced by Vect_level().

◆ VECT_OPEN

#define VECT_OPEN (   Map)    (Map->open == VECT_OPEN_CODE)

Check if vector map is open.

Definition at line 136 of file dig_defines.h.

Referenced by V1_close_nat(), V1_close_ogr(), V1_close_pg(), V2_close_ogr(), V2_close_pg(), Vect_get_next_line_id(), Vect_read_next_line(), and Vect_rewind().

◆ VECT_OPEN_CODE

#define VECT_OPEN_CODE   0x5522AA22

Vector map open code.

Definition at line 111 of file dig_defines.h.

Referenced by Vect__open_topo_pg(), Vect_coor_info(), and Vect_level().

◆ WITH_Z

#define WITH_Z   1

Definition at line 171 of file dig_defines.h.

Referenced by V1_open_old_ogr().

◆ WITHOUT_Z

#define WITHOUT_Z   0

2D/3D vector data

Definition at line 170 of file dig_defines.h.

Referenced by V1_open_old_ogr().

Typedef Documentation

◆ OVERLAY_OPERATOR

Definition at line 214 of file dig_defines.h.

Enumeration Type Documentation

◆ overlay_operator

Enumerator
GV_O_AND 
GV_O_OVERLAP 

Definition at line 208 of file dig_defines.h.

◆ SF_FeatureType

Simple feature types.

Taken from GDAL/OGR library (ogr/ogr_core.h)

Enumerator
SF_GEOMETRY 
SF_POINT 
SF_LINESTRING 
SF_POLYGON 
SF_MULTIPOINT 
SF_MULTILINESTRING 
SF_MULTIPOLYGON 
SF_GEOMETRYCOLLECTION 
SF_NONE 
SF_LINEARRING 
SF_POINT25D 
SF_LINESTRING25D 
SF_POLYGON25D 
SF_MULTIPOINT25D 
SF_MULTILINESTRING25D 
SF_MULTIPOLYGON25D 
SF_GEOMETRYCOLLECTION25D 

Definition at line 234 of file dig_defines.h.