PostGIS  2.2.8dev-r@@SVN_REVISION@@
lwgeom_ogc.c File Reference
#include "postgres.h"
#include <math.h>
#include <float.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include "access/gist.h"
#include "access/itup.h"
#include "fmgr.h"
#include "utils/elog.h"
#include "../postgis_config.h"
#include "liblwgeom.h"
#include "lwgeom_pg.h"
Include dependency graph for lwgeom_ogc.c:

Go to the source code of this file.

Functions

Datum LWGEOM_get_srid (PG_FUNCTION_ARGS)
 
Datum LWGEOM_set_srid (PG_FUNCTION_ARGS)
 
Datum LWGEOM_getTYPE (PG_FUNCTION_ARGS)
 
Datum geometry_geometrytype (PG_FUNCTION_ARGS)
 
Datum LWGEOM_numpoints_linestring (PG_FUNCTION_ARGS)
 
Datum LWGEOM_numgeometries_collection (PG_FUNCTION_ARGS)
 
Datum LWGEOM_geometryn_collection (PG_FUNCTION_ARGS)
 
Datum LWGEOM_dimension (PG_FUNCTION_ARGS)
 
Datum LWGEOM_exteriorring_polygon (PG_FUNCTION_ARGS)
 
Datum LWGEOM_interiorringn_polygon (PG_FUNCTION_ARGS)
 
Datum LWGEOM_numinteriorrings_polygon (PG_FUNCTION_ARGS)
 
Datum LWGEOM_pointn_linestring (PG_FUNCTION_ARGS)
 
Datum LWGEOM_x_point (PG_FUNCTION_ARGS)
 
Datum LWGEOM_y_point (PG_FUNCTION_ARGS)
 
Datum LWGEOM_z_point (PG_FUNCTION_ARGS)
 
Datum LWGEOM_m_point (PG_FUNCTION_ARGS)
 
Datum LWGEOM_startpoint_linestring (PG_FUNCTION_ARGS)
 
Datum LWGEOM_endpoint_linestring (PG_FUNCTION_ARGS)
 
Datum LWGEOM_asText (PG_FUNCTION_ARGS)
 
Datum LWGEOM_asBinary (PG_FUNCTION_ARGS)
 
Datum LWGEOM_from_text (PG_FUNCTION_ARGS)
 
Datum LWGEOM_from_WKB (PG_FUNCTION_ARGS)
 
Datum LWGEOM_isclosed (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (LWGEOM_get_srid)
 
 PG_FUNCTION_INFO_V1 (LWGEOM_set_srid)
 
 PG_FUNCTION_INFO_V1 (LWGEOM_getTYPE)
 
 PG_FUNCTION_INFO_V1 (geometry_geometrytype)
 
 PG_FUNCTION_INFO_V1 (LWGEOM_numpoints_linestring)
 numpoints(LINESTRING) – return the number of points in the linestring, or NULL if it is not a linestring More...
 
 PG_FUNCTION_INFO_V1 (LWGEOM_numgeometries_collection)
 
 PG_FUNCTION_INFO_V1 (LWGEOM_geometryn_collection)
 1-based offset More...
 
 PG_FUNCTION_INFO_V1 (LWGEOM_dimension)
 returns 0 for points, 1 for lines, 2 for polygons, 3 for volume. More...
 
 PG_FUNCTION_INFO_V1 (LWGEOM_exteriorring_polygon)
 exteriorRing(GEOMETRY) – find the first polygon in GEOMETRY More...
 
 PG_FUNCTION_INFO_V1 (LWGEOM_numinteriorrings_polygon)
 NumInteriorRings(GEOMETRY) defined for Polygon and and CurvePolygon. More...
 
 PG_FUNCTION_INFO_V1 (LWGEOM_interiorringn_polygon)
 InteriorRingN(GEOMETRY) – find the first polygon in GEOMETRY, Index is 1-based. More...
 
 PG_FUNCTION_INFO_V1 (LWGEOM_pointn_linestring)
 PointN(GEOMETRY,INTEGER) – find the first linestring in GEOMETRY,. More...
 
 PG_FUNCTION_INFO_V1 (LWGEOM_x_point)
 X(GEOMETRY) – return X value of the point. More...
 
 PG_FUNCTION_INFO_V1 (LWGEOM_y_point)
 Y(GEOMETRY) – return Y value of the point. More...
 
 PG_FUNCTION_INFO_V1 (LWGEOM_z_point)
 Z(GEOMETRY) – return Z value of the point. More...
 
 PG_FUNCTION_INFO_V1 (LWGEOM_m_point)
 M(GEOMETRY) – find the first POINT(..) in GEOMETRY, returns its M value. More...
 
 PG_FUNCTION_INFO_V1 (LWGEOM_startpoint_linestring)
 ST_StartPoint(GEOMETRY) More...
 
 PG_FUNCTION_INFO_V1 (LWGEOM_endpoint_linestring)
 EndPoint(GEOMETRY) – find the first linestring in GEOMETRY,. More...
 
 PG_FUNCTION_INFO_V1 (LWGEOM_from_text)
 Returns a geometry Given an OGC WKT (and optionally a SRID) More...
 
 PG_FUNCTION_INFO_V1 (LWGEOM_from_WKB)
 Given an OGC WKB (and optionally a SRID) return a geometry. More...
 
 PG_FUNCTION_INFO_V1 (LWGEOM_asText)
 convert LWGEOM to wkt (in TEXT format) More...
 
 PG_FUNCTION_INFO_V1 (LWGEOM_asBinary)
 convert LWGEOM to wkb (in BINARY format) More...
 
 PG_FUNCTION_INFO_V1 (LWGEOM_isclosed)
 IsClosed(GEOMETRY) if geometry is a linestring then returns startpoint == endpoint. More...