PostGIS  3.0.6dev-r@@SVN_REVISION@@
liblwgeom/lwgeom_transform.c File Reference
#include "../postgis_config.h"
#include "liblwgeom_internal.h"
#include "lwgeom_log.h"
#include <string.h>
Include dependency graph for liblwgeom/lwgeom_transform.c:

Go to the source code of this file.

Macros

#define STR_EQUALS(A, B)   strcmp((A), (B)) == 0
 
#define STR_IEQUALS(A, B)   (strcasecmp((A), (B)) == 0)
 
#define STR_ISTARTS(A, B)   (strncasecmp((A), (B), strlen((B))) == 0)
 

Functions

static void to_rad (POINT4D *pt)
 convert decimal degress to radians More...
 
static void to_dec (POINT4D *pt)
 convert radians to decimal degress More...
 
static PJ * proj_cs_get_simplecs (const PJ *pj_crs)
 
static uint8_t proj_crs_is_swapped (const PJ *pj_crs)
 
LWPROJlwproj_from_PJ (PJ *pj, int8_t extra_geography_data)
 Allocate a new LWPROJ containing the reference to the PROJ's PJ If extra_geography_data is true, it will generate the following values for the source srs: is_latlong (geometric or not) and spheroid values. More...
 
int lwgeom_transform_from_str (LWGEOM *geom, const char *instr, const char *outstr)
 
int lwgeom_transform (LWGEOM *geom, LWPROJ *pj)
 Transform (reproject) a geometry in-place. More...
 
int ptarray_transform (POINTARRAY *pa, LWPROJ *pj)