8 #define GV_DIRECTORY "vector"
10 #define GV_FRMT_ELEMENT "frmt"
12 #define GV_COOR_ELEMENT "coor"
14 #define GV_HEAD_ELEMENT "head"
16 #define GV_DBLN_ELEMENT "dbln"
18 #define GV_HIST_ELEMENT "hist"
20 #define GV_TOPO_ELEMENT "topo"
22 #define GV_SIDX_ELEMENT "sidx"
24 #define GV_CIDX_ELEMENT "cidx"
26 #define GV_FIDX_ELEMENT "fidx"
28 #define GV_COLR_ELEMENT "colr"
30 #define GV_COLR2_DIRECTORY "vcolr2"
32 #define GV_TIMESTAMP_ELEMENT "timestamp"
66 #define PORT_DOUBLE_MAX 1.7976931348623157e+308
67 #define PORT_DOUBLE_MIN 2.2250738585072014e-308
68 #define PORT_FLOAT_MAX 3.40282347e+38F
69 #define PORT_FLOAT_MIN 1.17549435e-38F
70 #define PORT_LONG_MAX 2147483647L
71 #define PORT_LONG_MIN (-2147483647L)
72 #define PORT_INT_MAX 2147483647
73 #define PORT_INT_MIN (-2147483647)
74 #define PORT_SHORT_MAX 32767
75 #define PORT_SHORT_MIN (-32768)
76 #define PORT_CHAR_MAX 127
77 #define PORT_CHAR_MIN (-128)
83 #define GV_FORMAT_NATIVE 0
85 #define GV_FORMAT_OGR 1
87 #define GV_FORMAT_OGR_DIRECT 2
89 #define GV_FORMAT_POSTGIS 3
92 #define GV_TOPO_NATIVE 0
94 #define GV_TOPO_PSEUDO 1
96 #define GV_TOPO_POSTGIS 2
104 #define GV_MODE_READ 0
106 #define GV_MODE_WRITE 1
111 #define VECT_OPEN_CODE 0x5522AA22
113 #define VECT_CLOSED_CODE 0x22AA2255
123 #define GV_BUILD_NONE 0
125 #define GV_BUILD_BASE 1
127 #define GV_BUILD_AREAS 2
129 #define GV_BUILD_ATTACH_ISLES 3
131 #define GV_BUILD_CENTROIDS 4
134 #define GV_BUILD_ALL GV_BUILD_CENTROIDS
137 #define VECT_OPEN(Map) (Map->open == VECT_OPEN_CODE)
140 #define GV_MEMORY_ALWAYS 1
141 #define GV_MEMORY_NEVER 2
142 #define GV_MEMORY_AUTO 3
145 #define GV_COOR_HEAD_SIZE 14
147 #define GRASS_V_VERSION "5.0"
150 #define GV_COOR_VER_MAJOR 5
151 #define GV_COOR_VER_MINOR 1
152 #define GV_TOPO_VER_MAJOR 5
153 #define GV_TOPO_VER_MINOR 1
154 #define GV_SIDX_VER_MAJOR 5
155 #define GV_SIDX_VER_MINOR 1
156 #define GV_CIDX_VER_MAJOR 5
157 #define GV_CIDX_VER_MINOR 0
161 #define GV_COOR_EARLIEST_MAJOR 5
162 #define GV_COOR_EARLIEST_MINOR 1
163 #define GV_TOPO_EARLIEST_MAJOR 5
164 #define GV_TOPO_EARLIEST_MINOR 1
165 #define GV_SIDX_EARLIEST_MAJOR 5
166 #define GV_SIDX_EARLIEST_MINOR 1
167 #define GV_CIDX_EARLIEST_MAJOR 5
168 #define GV_CIDX_EARLIEST_MINOR 0
180 #define GV_BACKWARD 2
183 #define GV_POINT 0x01
185 #define GV_BOUNDARY 0x04
186 #define GV_CENTROID 0x08
188 #define GV_KERNEL 0x20
190 #define GV_VOLUME 0x80
192 #define GV_POINTS (GV_POINT | GV_CENTROID)
193 #define GV_LINES (GV_LINE | GV_BOUNDARY)
197 #define GV_STORE_POINT 1
198 #define GV_STORE_LINE 2
199 #define GV_STORE_BOUNDARY 3
200 #define GV_STORE_CENTROID 4
201 #define GV_STORE_FACE 5
202 #define GV_STORE_KERNEL 6
203 #define GV_STORE_AREA 7
204 #define GV_STORE_VOLUME 8
207 #define GV_ON_AND "AND"
208 #define GV_ON_OVERLAP "OVERLAP"
215 #define GV_NCATS_MAX PORT_INT_MAX
217 #define GV_FIELD_MAX PORT_INT_MAX
219 #define GV_CAT_MAX PORT_INT_MAX
222 #define GV_ASCII_FORMAT_POINT 0
224 #define GV_ASCII_FORMAT_STD 1
226 #define GV_ASCII_FORMAT_WKT 2
228 #if defined(__clang__)
229 #pragma clang diagnostic push
230 #pragma clang diagnostic ignored "-Wpedantic"
231 #elif defined(__GNUC__)
232 #pragma GCC diagnostic push
233 #pragma GCC diagnostic ignored "-Wpedantic"
262 #if defined(__clang__)
263 #pragma clang diagnostic pop
264 #elif defined(__GNUC__)
265 #pragma GCC diagnostic pop
271 #define GV_PG_FID_COLUMN "fid"
273 #define GV_PG_GEOMETRY_COLUMN "geom"
SF_FeatureType
Simple feature types.
@ SF_GEOMETRYCOLLECTION25D
enum overlay_operator OVERLAY_OPERATOR