Check that coordinates of LWGEOM are all within the geodetic range (-180, -90, 180, 90)
Definition at line 3131 of file lwgeodetic.c.
3154 lwerror(
"lwgeom_check_geodetic: unsupported input geometry type: %d - %s",
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
#define POLYHEDRALSURFACETYPE
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
int lwgeom_is_empty(const LWGEOM *geom)
Return true or false depending on whether a geometry is an "empty" geometry (no vertices members)
#define LW_TRUE
Return types for functions with status returns.
static int lwline_check_geodetic(const LWLINE *line)
static int lwcollection_check_geodetic(const LWCOLLECTION *col)
static int lwpoly_check_geodetic(const LWPOLY *poly)
static int lwtriangle_check_geodetic(const LWTRIANGLE *triangle)
static int lwpoint_check_geodetic(const LWPOINT *point)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
References COLLECTIONTYPE, LINETYPE, LW_FALSE, LW_TRUE, lwcollection_check_geodetic(), lwerror(), lwgeom_is_empty(), lwline_check_geodetic(), lwpoint_check_geodetic(), lwpoly_check_geodetic(), lwtriangle_check_geodetic(), lwtype_name(), MULTILINETYPE, MULTIPOINTTYPE, MULTIPOLYGONTYPE, POINTTYPE, POLYGONTYPE, POLYHEDRALSURFACETYPE, TINTYPE, TRIANGLETYPE, LWGEOM::type, and LWPOINT::type.
Referenced by lwcollection_check_geodetic(), and test_lwgeom_check_geodetic().