14#define LWFLAG_BBOX 0x04
15#define LWFLAG_GEODETIC 0x08
16#define LWFLAG_READONLY 0x10
17#define LWFLAG_SOLID 0x20
19#define FLAGS_GET_Z(flags) ((flags) & LWFLAG_Z)
20#define FLAGS_GET_M(flags) (((flags) & LWFLAG_M)>>1)
21#define FLAGS_GET_BBOX(flags) (((flags) & LWFLAG_BBOX)>>2)
22#define FLAGS_GET_GEODETIC(flags) (((flags) & LWFLAG_GEODETIC)>>3)
23#define FLAGS_GET_READONLY(flags) (((flags) & LWFLAG_READONLY)>>4)
24#define FLAGS_GET_SOLID(flags) (((flags) & LWFLAG_SOLID)>>5)
26#define FLAGS_SET_Z(flags, value) ((flags) = (value) ? ((flags) | LWFLAG_Z) : ((flags) & ~LWFLAG_Z))
27#define FLAGS_SET_M(flags, value) ((flags) = (value) ? ((flags) | LWFLAG_M) : ((flags) & ~LWFLAG_M))
28#define FLAGS_SET_BBOX(flags, value) ((flags) = (value) ? ((flags) | LWFLAG_BBOX) : ((flags) & ~LWFLAG_BBOX))
29#define FLAGS_SET_GEODETIC(flags, value) ((flags) = (value) ? ((flags) | LWFLAG_GEODETIC) : ((flags) & ~LWFLAG_GEODETIC))
30#define FLAGS_SET_READONLY(flags, value) ((flags) = (value) ? ((flags) | LWFLAG_READONLY) : ((flags) & ~LWFLAG_READONLY))
31#define FLAGS_SET_SOLID(flags, value) ((flags) = (value) ? ((flags) | LWFLAG_SOLID) : ((flags) & ~LWFLAG_SOLID))
33#define FLAGS_NDIMS(flags) (2 + FLAGS_GET_Z(flags) + FLAGS_GET_M(flags))
34#define FLAGS_GET_ZM(flags) (FLAGS_GET_M(flags) + FLAGS_GET_Z(flags) * 2)
35#define FLAGS_NDIMS_BOX(flags) (FLAGS_GET_GEODETIC(flags) ? 3 : FLAGS_NDIMS(flags))
43#define WKB_EXTENDED 0x04
47#define WKB_NO_NPOINTS 0x40
48#define WKB_NO_SRID 0x80
52#define WKT_EXTENDED 0x04
59 double afac, bfac, cfac, dfac, efac, ffac, gfac, hfac, ifac, xoff, yoff, zoff;
403typedef struct PJconsts
PJ;
uint16_t lwflags_t
Definition: postgis_ext_defs.in.h:54
int32 geo_get_srid(const GSERIALIZED *g)
struct PJconsts PJ
Definition: postgis_ext_defs.in.h:403
signed int int32
Definition: postgres_ext_defs.in.h:11
double afac
Definition: postgis_ext_defs.in.h:59
Definition: postgis_ext_defs.in.h:58
double xmax
Definition: postgis_ext_defs.in.h:67
double xmin
Definition: postgis_ext_defs.in.h:66
int32_t srid
Definition: postgis_ext_defs.in.h:68
Definition: postgis_ext_defs.in.h:65
double ymax
Definition: postgis_ext_defs.in.h:84
double zmax
Definition: postgis_ext_defs.in.h:86
double xmax
Definition: postgis_ext_defs.in.h:82
double zmin
Definition: postgis_ext_defs.in.h:85
double mmax
Definition: postgis_ext_defs.in.h:88
double ymin
Definition: postgis_ext_defs.in.h:83
double xmin
Definition: postgis_ext_defs.in.h:81
double mmin
Definition: postgis_ext_defs.in.h:87
lwflags_t flags
Definition: postgis_ext_defs.in.h:80
Definition: postgis_ext_defs.in.h:79
uint32_t size
Definition: postgis_ext_defs.in.h:171
uint8_t gflags
Definition: postgis_ext_defs.in.h:173
Definition: postgis_ext_defs.in.h:170
uint8_t type
Definition: postgis_ext_defs.in.h:237
int32_t srid
Definition: postgis_ext_defs.in.h:235
lwflags_t flags
Definition: postgis_ext_defs.in.h:236
POINTARRAY * points
Definition: postgis_ext_defs.in.h:234
GBOX * bbox
Definition: postgis_ext_defs.in.h:233
Definition: postgis_ext_defs.in.h:232
lwflags_t flags
Definition: postgis_ext_defs.in.h:304
uint32_t ngeoms
Definition: postgis_ext_defs.in.h:307
uint32_t maxgeoms
Definition: postgis_ext_defs.in.h:308
uint8_t type
Definition: postgis_ext_defs.in.h:305
GBOX * bbox
Definition: postgis_ext_defs.in.h:301
LWGEOM ** geoms
Definition: postgis_ext_defs.in.h:302
int32_t srid
Definition: postgis_ext_defs.in.h:303
Definition: postgis_ext_defs.in.h:300
uint32_t maxgeoms
Definition: postgis_ext_defs.in.h:322
lwflags_t flags
Definition: postgis_ext_defs.in.h:318
int32_t srid
Definition: postgis_ext_defs.in.h:317
GBOX * bbox
Definition: postgis_ext_defs.in.h:315
uint32_t ngeoms
Definition: postgis_ext_defs.in.h:321
uint8_t type
Definition: postgis_ext_defs.in.h:319
LWGEOM ** geoms
Definition: postgis_ext_defs.in.h:316
Definition: postgis_ext_defs.in.h:314
int32_t srid
Definition: postgis_ext_defs.in.h:331
GBOX * bbox
Definition: postgis_ext_defs.in.h:329
uint8_t type
Definition: postgis_ext_defs.in.h:333
LWGEOM ** rings
Definition: postgis_ext_defs.in.h:330
lwflags_t flags
Definition: postgis_ext_defs.in.h:332
uint32_t nrings
Definition: postgis_ext_defs.in.h:335
uint32_t maxrings
Definition: postgis_ext_defs.in.h:336
Definition: postgis_ext_defs.in.h:328
void * data
Definition: postgis_ext_defs.in.h:186
uint8_t type
Definition: postgis_ext_defs.in.h:189
GBOX * bbox
Definition: postgis_ext_defs.in.h:185
int32_t srid
Definition: postgis_ext_defs.in.h:187
lwflags_t flags
Definition: postgis_ext_defs.in.h:188
Definition: postgis_ext_defs.in.h:184
lwflags_t flags
Definition: postgis_ext_defs.in.h:212
GBOX * bbox
Definition: postgis_ext_defs.in.h:209
POINTARRAY * points
Definition: postgis_ext_defs.in.h:210
uint8_t type
Definition: postgis_ext_defs.in.h:213
int32_t srid
Definition: postgis_ext_defs.in.h:211
Definition: postgis_ext_defs.in.h:208
uint32_t maxgeoms
Definition: postgis_ext_defs.in.h:350
LWGEOM ** geoms
Definition: postgis_ext_defs.in.h:344
GBOX * bbox
Definition: postgis_ext_defs.in.h:343
lwflags_t flags
Definition: postgis_ext_defs.in.h:346
uint32_t ngeoms
Definition: postgis_ext_defs.in.h:349
int32_t srid
Definition: postgis_ext_defs.in.h:345
uint8_t type
Definition: postgis_ext_defs.in.h:347
Definition: postgis_ext_defs.in.h:342
uint32_t maxgeoms
Definition: postgis_ext_defs.in.h:280
lwflags_t flags
Definition: postgis_ext_defs.in.h:276
GBOX * bbox
Definition: postgis_ext_defs.in.h:273
int32_t srid
Definition: postgis_ext_defs.in.h:275
LWLINE ** geoms
Definition: postgis_ext_defs.in.h:274
uint8_t type
Definition: postgis_ext_defs.in.h:277
uint32_t ngeoms
Definition: postgis_ext_defs.in.h:279
Definition: postgis_ext_defs.in.h:272
uint32_t maxgeoms
Definition: postgis_ext_defs.in.h:266
int32_t srid
Definition: postgis_ext_defs.in.h:261
GBOX * bbox
Definition: postgis_ext_defs.in.h:259
lwflags_t flags
Definition: postgis_ext_defs.in.h:262
uint32_t ngeoms
Definition: postgis_ext_defs.in.h:265
LWPOINT ** geoms
Definition: postgis_ext_defs.in.h:260
uint8_t type
Definition: postgis_ext_defs.in.h:263
Definition: postgis_ext_defs.in.h:258
uint8_t type
Definition: postgis_ext_defs.in.h:291
GBOX * bbox
Definition: postgis_ext_defs.in.h:287
uint32_t maxgeoms
Definition: postgis_ext_defs.in.h:294
uint32_t ngeoms
Definition: postgis_ext_defs.in.h:293
LWPOLY ** geoms
Definition: postgis_ext_defs.in.h:288
lwflags_t flags
Definition: postgis_ext_defs.in.h:290
int32_t srid
Definition: postgis_ext_defs.in.h:289
Definition: postgis_ext_defs.in.h:286
uint8_t type
Definition: postgis_ext_defs.in.h:361
int32_t srid
Definition: postgis_ext_defs.in.h:359
uint32_t maxgeoms
Definition: postgis_ext_defs.in.h:364
GBOX * bbox
Definition: postgis_ext_defs.in.h:357
uint32_t ngeoms
Definition: postgis_ext_defs.in.h:363
lwflags_t flags
Definition: postgis_ext_defs.in.h:360
LWGEOM ** geoms
Definition: postgis_ext_defs.in.h:358
Definition: postgis_ext_defs.in.h:356
POINTARRAY * point
Definition: postgis_ext_defs.in.h:198
uint8_t type
Definition: postgis_ext_defs.in.h:201
lwflags_t flags
Definition: postgis_ext_defs.in.h:200
GBOX * bbox
Definition: postgis_ext_defs.in.h:197
int32_t srid
Definition: postgis_ext_defs.in.h:199
Definition: postgis_ext_defs.in.h:196
POINTARRAY ** rings
Definition: postgis_ext_defs.in.h:246
uint8_t type
Definition: postgis_ext_defs.in.h:249
uint32_t maxrings
Definition: postgis_ext_defs.in.h:252
uint32_t nrings
Definition: postgis_ext_defs.in.h:251
GBOX * bbox
Definition: postgis_ext_defs.in.h:245
lwflags_t flags
Definition: postgis_ext_defs.in.h:248
int32_t srid
Definition: postgis_ext_defs.in.h:247
Definition: postgis_ext_defs.in.h:244
bool pipeline_is_forward
Definition: postgis_ext_defs.in.h:410
uint8_t source_is_latlong
Definition: postgis_ext_defs.in.h:413
double source_semi_major_metre
Definition: postgis_ext_defs.in.h:415
double source_semi_minor_metre
Definition: postgis_ext_defs.in.h:416
PJ * pj
Definition: postgis_ext_defs.in.h:407
Definition: postgis_ext_defs.in.h:406
lwflags_t flags
Definition: postgis_ext_defs.in.h:374
uint32_t maxgeoms
Definition: postgis_ext_defs.in.h:378
LWPOLY ** geoms
Definition: postgis_ext_defs.in.h:372
uint32_t ngeoms
Definition: postgis_ext_defs.in.h:377
uint8_t type
Definition: postgis_ext_defs.in.h:375
int32_t srid
Definition: postgis_ext_defs.in.h:373
GBOX * bbox
Definition: postgis_ext_defs.in.h:371
Definition: postgis_ext_defs.in.h:370
uint32_t ngeoms
Definition: postgis_ext_defs.in.h:391
int32_t srid
Definition: postgis_ext_defs.in.h:387
uint8_t type
Definition: postgis_ext_defs.in.h:389
lwflags_t flags
Definition: postgis_ext_defs.in.h:388
LWTRIANGLE ** geoms
Definition: postgis_ext_defs.in.h:386
uint32_t maxgeoms
Definition: postgis_ext_defs.in.h:392
GBOX * bbox
Definition: postgis_ext_defs.in.h:385
Definition: postgis_ext_defs.in.h:384
int32_t srid
Definition: postgis_ext_defs.in.h:223
uint8_t type
Definition: postgis_ext_defs.in.h:225
GBOX * bbox
Definition: postgis_ext_defs.in.h:221
lwflags_t flags
Definition: postgis_ext_defs.in.h:224
POINTARRAY * points
Definition: postgis_ext_defs.in.h:222
Definition: postgis_ext_defs.in.h:220
double x
Definition: postgis_ext_defs.in.h:117
Definition: postgis_ext_defs.in.h:116
double m
Definition: postgis_ext_defs.in.h:135
Definition: postgis_ext_defs.in.h:134
double x
Definition: postgis_ext_defs.in.h:123
Definition: postgis_ext_defs.in.h:122
double x
Definition: postgis_ext_defs.in.h:129
Definition: postgis_ext_defs.in.h:128
double m
Definition: postgis_ext_defs.in.h:141
Definition: postgis_ext_defs.in.h:140
lwflags_t flags
Definition: postgis_ext_defs.in.h:158
uint32_t maxpoints
Definition: postgis_ext_defs.in.h:155
uint32_t npoints
Definition: postgis_ext_defs.in.h:154
uint8_t * serialized_pointlist
Definition: postgis_ext_defs.in.h:161
Definition: postgis_ext_defs.in.h:153
double e_sq
Definition: postgis_ext_defs.in.h:106
double e
Definition: postgis_ext_defs.in.h:105
double radius
Definition: postgis_ext_defs.in.h:107
double a
Definition: postgis_ext_defs.in.h:102
double b
Definition: postgis_ext_defs.in.h:103
double f
Definition: postgis_ext_defs.in.h:104
Definition: postgis_ext_defs.in.h:101