PostGIS  2.5.7dev-r@@SVN_REVISION@@
lwgeom_api.c File Reference
#include "liblwgeom_internal.h"
#include "lwgeom_log.h"
#include <stdio.h>
#include <errno.h>
#include <assert.h>
#include "../postgis_svn_revision.h"
Include dependency graph for lwgeom_api.c:

Go to the source code of this file.

Functions

const char * lwgeom_version ()
 Return lwgeom version string (not to be freed) More...
 
float next_float_down (double d)
 
float next_float_up (double d)
 
POINT4D getPoint4d (const POINTARRAY *pa, uint32_t n)
 
int getPoint4d_p (const POINTARRAY *pa, uint32_t n, POINT4D *op)
 
POINT3DZ getPoint3dz (const POINTARRAY *pa, uint32_t n)
 
POINT3DM getPoint3dm (const POINTARRAY *pa, uint32_t n)
 
int getPoint3dz_p (const POINTARRAY *pa, uint32_t n, POINT3DZ *op)
 
int getPoint3dm_p (const POINTARRAY *pa, uint32_t n, POINT3DM *op)
 
POINT2D getPoint2d (const POINTARRAY *pa, uint32_t n)
 
int getPoint2d_p (const POINTARRAY *pa, uint32_t n, POINT2D *point)
 
const POINT2DgetPoint2d_cp (const POINTARRAY *pa, uint32_t n)
 Returns a pointer into the POINTARRAY serialized_ptlist, suitable for reading from. More...
 
const POINT3DZgetPoint3dz_cp (const POINTARRAY *pa, uint32_t n)
 Returns a POINT3DZ pointer into the POINTARRAY serialized_ptlist, suitable for reading from. More...
 
const POINT4DgetPoint4d_cp (const POINTARRAY *pa, uint32_t n)
 Returns a POINT4D pointer into the POINTARRAY serialized_ptlist, suitable for reading from. More...
 
void ptarray_set_point4d (POINTARRAY *pa, uint32_t n, const POINT4D *p4d)
 
void ptarray_copy_point (POINTARRAY *pa, uint32_t from, uint32_t to)
 
void printBOX3D (BOX3D *box)
 
void printPA (POINTARRAY *pa)
 
uint8_t parse_hex (char *str)
 Given a string with at least 2 chars in it, convert them to a byte value. More...
 
void deparse_hex (uint8_t str, char *result)
 Given one byte, populate result with two byte representing the hex number. More...
 
void interpolate_point4d (const POINT4D *A, const POINT4D *B, POINT4D *I, double F)
 Find interpolation point I between point A and point B so that the len(AI) == len(AB)*F and I falls on AB segment. More...
 
void lwgeom_request_interrupt ()
 Request interruption of any running code. More...
 
void lwgeom_cancel_interrupt ()
 Cancel any interruption request. More...
 
lwinterrupt_callbacklwgeom_register_interrupt_callback (lwinterrupt_callback *cb)
 

Variables

int _lwgeom_interrupt_requested = 0
 
lwinterrupt_callback_lwgeom_interrupt_callback = 0