30 #if PARANOIA_LEVEL > 0
37 double hside = p2->
x - p1->
x;
38 double vside = p2->
y - p1->
y;
40 return hside * hside + vside * vside;
66 static inline uint8_t *
72 #if PARANOIA_LEVEL > 0
74 assert(n <= pa->npoints);
75 assert(n <= pa->maxpoints);
134 static inline uint32_t
180 for (i = 0; i < col->
ngeoms; i++)
235 #define POSTGIS_FREE_IF_COPY_P(ptrsrc, ptrori) \
238 if ((Pointer)(ptrsrc) != (Pointer)(ptrori)) \
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
#define FLAGS_NDIMS(flags)
#define POLYHEDRALSURFACETYPE
#define LW_TRUE
Return types for functions with status returns.
static const POINT2D * getPoint2d_cp(const POINTARRAY *pa, uint32_t n)
Returns a POINT2D pointer into the POINTARRAY serialized_ptlist, suitable for reading from.
static const POINT3D * getPoint3d_cp(const POINTARRAY *pa, uint32_t n)
Returns a POINT2D pointer into the POINTARRAY serialized_ptlist, suitable for reading from.
static const POINT4D * getPoint4d_cp(const POINTARRAY *pa, uint32_t n)
Returns a POINT2D pointer into the POINTARRAY serialized_ptlist, suitable for reading from.
static double distance2d_sqr_pt_pt(const POINT2D *p1, const POINT2D *p2)
static uint32_t lwgeom_get_type(const LWGEOM *geom)
Return LWTYPE number.
static int lwcircstring_is_empty(const LWCIRCSTRING *circ)
static int lwpoly_is_empty(const LWPOLY *poly)
static size_t ptarray_point_size(const POINTARRAY *pa)
static uint8_t * getPoint_internal(const POINTARRAY *pa, uint32_t n)
static int lwcollection_is_empty(const LWCOLLECTION *col)
static int lwgeom_is_empty(const LWGEOM *geom)
Return true or false depending on whether a geometry is an "empty" geometry (no vertices members)
static int lwline_is_empty(const LWLINE *line)
static int lwtriangle_is_empty(const LWTRIANGLE *triangle)
static LWPOINT * lwgeom_as_lwpoint(const LWGEOM *lwgeom)
static int lwpoint_is_empty(const LWPOINT *point)
uint8_t * serialized_pointlist