PostGIS  2.2.8dev-r@@SVN_REVISION@@
geography.h
Go to the documentation of this file.
1 /**********************************************************************
2  *
3  * PostGIS - Spatial Types for PostgreSQL
4  * Copyright 2009 Paul Ramsey <pramsey@cleverelephant.ca>
5  *
6  * This is free software; you can redistribute and/or modify it under
7  * the terms of the GNU General Public Licence. See the COPYING file.
8  *
9  **********************************************************************/
10 
11 
12 /**********************************************************************
13 ** Useful functions for all GSERIALIZED handlers.
14 ** TODO: Move to common.h in pgcommon
15 */
16 
17 /* Check that the typmod matches the flags on the lwgeom */
18 GSERIALIZED* postgis_valid_typmod(GSERIALIZED *gser, int32_t typmod);
19 /* Check that the type is legal in geography (no curves please!) */
20 void geography_valid_type(uint8_t type);
21 
22 /* Expand the embedded bounding box in a #GSERIALIZED */
24 
void geography_valid_type(uint8_t type)
The geography type only support POINT, LINESTRING, POLYGON, MULTI* variants of same, and GEOMETRYCOLLECTION.
GSERIALIZED * postgis_valid_typmod(GSERIALIZED *gser, int32_t typmod)
Check the consistency of the metadata we want to enforce in the typmod: srid, type and dimensionality...
GSERIALIZED * gserialized_expand(GSERIALIZED *g, double distance)
Return a GSERIALIZED with an expanded bounding box.
Datum distance(PG_FUNCTION_ARGS)
type
Definition: ovdump.py:41