PostGIS  2.1.10dev-r@@SVN_REVISION@@
geography.h
Go to the documentation of this file.
1 /**********************************************************************
2  * $Id: geography.h 13367 2015-03-20 13:53:44Z pramsey $
3  *
4  * PostGIS - Spatial Types for PostgreSQL
5  * Copyright 2009 Paul Ramsey <pramsey@cleverelephant.ca>
6  *
7  * This is free software; you can redistribute and/or modify it under
8  * the terms of the GNU General Public Licence. See the COPYING file.
9  *
10  **********************************************************************/
11 
12 
13 /**********************************************************************
14 ** Useful functions for all GSERIALIZED handlers.
15 ** TODO: Move to common.h in pgcommon
16 */
17 
18 /* Check that the typmod matches the flags on the lwgeom */
19 GSERIALIZED* postgis_valid_typmod(GSERIALIZED *gser, int32_t typmod);
20 /* Check that the type is legal in geography (no curves please!) */
21 void geography_valid_type(uint8_t type);
22 
23 /* Expand the embedded bounding box in a #GSERIALIZED */
25 
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)