Check that coordinates of LWGEOM are all within the geodetic range (-180, -90, 180, 90)
Definition at line 3115 of file lwgeodetic.c.
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 LWCOLLECTION::type.
Referenced by lwcollection_check_geodetic(), and test_lwgeom_check_geodetic().
3138 lwerror(
"lwgeom_check_geodetic: unsupported input geometry type: %d - %s",
#define POLYHEDRALSURFACETYPE
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
#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)
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
static int lwtriangle_check_geodetic(const LWTRIANGLE *triangle)
static int lwpoly_check_geodetic(const LWPOLY *poly)
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 lwpoint_check_geodetic(const LWPOINT *point)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.