Go to the documentation of this file.
54 #ifndef DOXYGEN_SHOULD_SKIP_THIS
66 #define GAIA_TYPE_NONE 0
68 #define GAIA_TYPE_POINT 1
70 #define GAIA_TYPE_LINESTRING 2
72 #define GAIA_TYPE_POLYGON 3
76 #define GAIA_BIG_ENDIAN 0
78 #define GAIA_LITTLE_ENDIAN 1
82 #define GAIA_MARK_START 0x00
84 #define GAIA_MARK_END 0xFE
86 #define GAIA_MARK_MBR 0x7C
88 #define GAIA_MARK_ENTITY 0x69
92 #define GAIA_UNKNOWN 0
96 #define GAIA_LINESTRING 2
98 #define GAIA_POLYGON 3
100 #define GAIA_MULTIPOINT 4
102 #define GAIA_MULTILINESTRING 5
104 #define GAIA_MULTIPOLYGON 6
105 #define GAIA_MULTIPOLYGON 6
107 #define GAIA_GEOMETRYCOLLECTION 7
109 #define GAIA_POINTZ 1001
111 #define GAIA_LINESTRINGZ 1002
113 #define GAIA_POLYGONZ 1003
115 #define GAIA_MULTIPOINTZ 1004
117 #define GAIA_MULTILINESTRINGZ 1005
119 #define GAIA_MULTIPOLYGONZ 1006
121 #define GAIA_GEOMETRYCOLLECTIONZ 1007
123 #define GAIA_POINTM 2001
125 #define GAIA_LINESTRINGM 2002
127 #define GAIA_POLYGONM 2003
129 #define GAIA_MULTIPOINTM 2004
131 #define GAIA_MULTILINESTRINGM 2005
133 #define GAIA_MULTIPOLYGONM 2006
135 #define GAIA_GEOMETRYCOLLECTIONM 2007
137 #define GAIA_POINTZM 3001
139 #define GAIA_LINESTRINGZM 3002
141 #define GAIA_POLYGONZM 3003
143 #define GAIA_MULTIPOINTZM 3004
145 #define GAIA_MULTILINESTRINGZM 3005
147 #define GAIA_MULTIPOLYGONZM 3006
149 #define GAIA_GEOMETRYCOLLECTIONZM 3007
153 #define GAIA_COMPRESSED_LINESTRING 1000002
155 #define GAIA_COMPRESSED_POLYGON 1000003
157 #define GAIA_COMPRESSED_LINESTRINGZ 1001002
159 #define GAIA_COMPRESSED_POLYGONZ 1001003
161 #define GAIA_COMPRESSED_LINESTRINGM 1002002
163 #define GAIA_COMPRESSED_POLYGONM 1002003
165 #define GAIA_COMPRESSED_LINESTRINGZM 1003002
167 #define GAIA_COMPRESSED_POLYGONZM 1003003
171 #define GAIA_GEOSWKB_POINTZ -2147483647
173 #define GAIA_GEOSWKB_LINESTRINGZ -2147483646
175 #define GAIA_GEOSWKB_POLYGONZ -2147483645
177 #define GAIA_GEOSWKB_MULTIPOINTZ -2147483644
179 #define GAIA_GEOSWKB_MULTILINESTRINGZ -2147483643
181 #define GAIA_GEOSWKB_MULTIPOLYGONZ -2147483642
183 #define GAIA_GEOSWKB_GEOMETRYCOLLECTIONZ -2147483641
187 #define GAIA_NULL_VALUE 0
189 #define GAIA_TEXT_VALUE 1
191 #define GAIA_INT_VALUE 2
193 #define GAIA_DOUBLE_VALUE 3
197 #define GAIA_START_POINT 1
199 #define GAIA_END_POINT 2
201 #define GAIA_POINTN 3
205 #define GAIA_MBR_CONTAINS 1
207 #define GAIA_MBR_DISJOINT 2
209 #define GAIA_MBR_EQUAL 3
211 #define GAIA_MBR_INTERSECTS 4
213 #define GAIA_MBR_OVERLAPS 5
215 #define GAIA_MBR_TOUCHES 6
217 #define GAIA_MBR_WITHIN 7
221 #define GAIA_FILTER_MBR_WITHIN 74
223 #define GAIA_FILTER_MBR_CONTAINS 77
225 #define GAIA_FILTER_MBR_INTERSECTS 79
227 #define GAIA_FILTER_MBR_DECLARE 89
231 #define GAIA_SVG_DEFAULT_RELATIVE 0
233 #define GAIA_SVG_DEFAULT_PRECISION 6
235 #define GAIA_SVG_DEFAULT_MAX_PRECISION 15
239 #define GAIA_NET_START 0x67
241 #define GAIA_NET64_START 0x68
243 #define GAIA_NET64_A_STAR_START 0x69
245 #define GAIA_NET_END 0x87
247 #define GAIA_NET_HEADER 0xc0
249 #define GAIA_NET_CODE 0xa6
251 #define GAIA_NET_ID 0xb5
253 #define GAIA_NET_NODE 0xde
255 #define GAIA_NET_ARC 0x54
257 #define GAIA_NET_TABLE 0xa0
259 #define GAIA_NET_FROM 0xa1
261 #define GAIA_NET_TO 0xa2
263 #define GAIA_NET_GEOM 0xa3
265 #define GAIA_NET_NAME 0xa4
267 #define GAIA_NET_A_STAR_COEFF 0xa5
269 #define GAIA_NET_BLOCK 0xed
275 #define GAIA_XY_Z 0x01
277 #define GAIA_XY_M 0x02
279 #define GAIA_XY_Z_M 0x03
309 #define GAIA_US_IN 13
311 #define GAIA_US_FT 14
313 #define GAIA_US_YD 15
315 #define GAIA_US_CH 16
317 #define GAIA_US_MI 17
319 #define GAIA_IND_YD 18
321 #define GAIA_IND_FT 19
323 #define GAIA_IND_CH 20
325 #define GAIA_MIN_UNIT GAIA_KM
327 #define GAIA_MAX_UNIT GAIA_IND_CH
331 #define GAIA_SHP_NULL 0
333 #define GAIA_SHP_POINT 1
335 #define GAIA_SHP_POLYLINE 3
337 #define GAIA_SHP_POLYGON 5
339 #define GAIA_SHP_MULTIPOINT 8
341 #define GAIA_SHP_POINTZ 11
343 #define GAIA_SHP_POLYLINEZ 13
345 #define GAIA_SHP_POLYGONZ 15
347 #define GAIA_SHP_MULTIPOINTZ 18
349 #define GAIA_SHP_POINTM 21
351 #define GAIA_SHP_POLYLINEM 23
353 #define GAIA_SHP_POLYGONM 25
355 #define GAIA_SHP_MULTIPOINTM 28
359 #define GAIA_SAME_ORDER 0
361 #define GAIA_REVERSE_ORDER -1
363 #define GAIA_LHR_ORDER -2
379 #define gaiaGetPoint(xy,v,x,y) \
381 *y = xy[(v) * 2 + 1];}
396 #define gaiaSetPoint(xy,v,x,y) \
398 xy[(v) * 2 + 1] = y;}
414 #define gaiaGetPointXYZ(xyz,v,x,y,z) \
415 {*x = xyz[(v) * 3]; \
416 *y = xyz[(v) * 3 + 1]; \
417 *z = xyz[(v) * 3 + 2];}
433 #define gaiaSetPointXYZ(xyz,v,x,y,z) \
435 xyz[(v) * 3 + 1] = y; \
436 xyz[(v) * 3 + 2] = z;}
452 #define gaiaGetPointXYM(xym,v,x,y,m) \
453 {*x = xym[(v) * 3]; \
454 *y = xym[(v) * 3 + 1]; \
455 *m = xym[(v) * 3 + 2];}
471 #define gaiaSetPointXYM(xym,v,x,y,m) \
473 xym[(v) * 3 + 1] = y; \
474 xym[(v) * 3 + 2] = m;}
491 #define gaiaGetPointXYZM(xyzm,v,x,y,z,m) \
492 {*x = xyzm[(v) * 4]; \
493 *y = xyzm[(v) * 4 + 1]; \
494 *z = xyzm[(v) * 4 + 2]; \
495 *m = xyzm[(v) * 4 + 3];}
512 #define gaiaSetPointXYZM(xyzm,v,x,y,z,m) \
513 {xyzm[(v) * 4] = x; \
514 xyzm[(v) * 4 + 1] = y; \
515 xyzm[(v) * 4 + 2] = z; \
516 xyzm[(v) * 4 + 3] = m;}