-#include "lwgeom_pg.h"
-
#include "postgres.h"
#include "access/xact.h"
#include "executor/spi.h" /* this is what you need to work with SPI */
#include "commands/trigger.h" /* ... and triggers */
#include "utils/lsyscache.h" /* for get_namespace_name() */
+#include "lwgeom_pg.h"
#define ABORT_ON_AUTH_FAILURE 1
-#include <math.h>
-#include <float.h>
-#include <string.h>
-#include <stdio.h>
-#include <errno.h>
-
#include "postgres.h"
#include "access/gist.h"
#include "access/itup.h"
#include "lwgeom_pg.h"
#include "liblwgeom.h"
+#include <math.h>
+#include <float.h>
+#include <string.h>
+#include <stdio.h>
+#include <errno.h>
/* forward defs */
*
**********************************************************************/
-#include <math.h>
-#include <float.h>
-#include <string.h>
-#include <stdio.h>
-#include <errno.h>
-
#include "postgres.h"
#include "fmgr.h"
#include "utils/elog.h"
#include "lwgeom_pg.h"
#include "liblwgeom.h"
-
+#include <math.h>
+#include <float.h>
+#include <string.h>
+#include <stdio.h>
+#include <errno.h>
#define SHOW_DIGS_DOUBLE 15
#define MAX_DIGS_DOUBLE (SHOW_DIGS_DOUBLE + 6 + 1 + 3 +1)
*
***********************************************************/
-#include <math.h>
-#include <float.h>
-#include <string.h>
-#include <stdio.h>
-#include <errno.h>
-
#include "postgres.h"
#include "fmgr.h"
#include "utils/geo_decls.h"
#include "liblwgeom.h"
#include "lwgeom_pg.h"
+#include <math.h>
+#include <float.h>
+#include <string.h>
+#include <stdio.h>
+#include <errno.h>
+
Datum lwgeom_lt(PG_FUNCTION_ARGS);
Datum lwgeom_le(PG_FUNCTION_ARGS);
Datum lwgeom_eq(PG_FUNCTION_ARGS);
-#include <math.h>
-#include <float.h>
-#include <string.h>
-#include <stdio.h>
-#include <errno.h>
-
#include "postgres.h"
#include "access/gist.h"
#include "access/itup.h"
#include "lwgeom_pg.h"
#include "liblwgeom.h"
+#include <math.h>
+#include <float.h>
+#include <string.h>
+#include <stdio.h>
+#include <errno.h>
/* Define this to debug CHIP ops */
/*#define DEBUG_CHIP 1*/
* the terms of the GNU General Public Licence. See the COPYING file.
*
**********************************************************************/
-#include "../postgis_config.h"
-
-#include <math.h>
-#include <float.h>
-#include <string.h>
-#include <stdio.h>
-#include <errno.h>
-#include <assert.h>
-
#include "postgres.h"
#include "fmgr.h"
#include "utils/elog.h"
#include "lwgeom_pg.h"
#include "profile.h"
+#include "../postgis_config.h"
+
+#include <math.h>
+#include <float.h>
+#include <string.h>
+#include <stdio.h>
+#include <errno.h>
+#include <assert.h>
+
+
Datum LWGEOM_dump(PG_FUNCTION_ARGS);
Datum LWGEOM_dump_rings(PG_FUNCTION_ARGS);
*
**********************************************************************/
-#include <math.h>
-#include <float.h>
-#include <string.h>
-#include <stdio.h>
-#include <errno.h>
-#include <ctype.h>
-
#include "postgres.h"
#include "executor/spi.h"
#include "fmgr.h"
#include "liblwgeom.h"
#include "lwgeom_pg.h"
+#include <math.h>
+#include <float.h>
+#include <string.h>
+#include <stdio.h>
+#include <errno.h>
+#include <ctype.h>
+
/*
* Assign a number to the postgis statistics kind
*
*
**********************************************************************/
-#include <math.h>
-#include <float.h>
-#include <string.h>
-#include <stdio.h>
-#include <errno.h>
-
#include "postgres.h"
#include "fmgr.h"
#include "utils/elog.h"
#include "lwgeom_pg.h"
#include "profile.h"
+#include <math.h>
+#include <float.h>
+#include <string.h>
+#include <stdio.h>
+#include <errno.h>
+
Datum LWGEOM_mem_size(PG_FUNCTION_ARGS);
Datum LWGEOM_summary(PG_FUNCTION_ARGS);
Datum LWGEOM_npoints(PG_FUNCTION_ARGS);
*
**********************************************************************/
-#include <string.h>
-
-#include "../postgis_config.h"
-
#include "postgres.h"
#include "fmgr.h"
#include "miscadmin.h"
#include "utils/memutils.h"
#include "executor/spi.h"
+#include "../postgis_config.h"
+
/* Workaround for GEOS 2.2 compatibility: old geos_c.h does not contain
header guards to protect from multiple inclusion */
#ifndef GEOS_C_INCLUDED
#include "liblwgeom.h"
#include "profile.h"
+#include <string.h>
+
#if POSTGIS_PROFILE > 0
#warning POSTGIS_PROFILE enabled!
#endif
*
**********************************************************************/
-#include "../postgis_config.h"
-
#include "postgres.h"
#include "fmgr.h"
#include "miscadmin.h"
#include "utils/memutils.h"
#include "access/hash.h"
+#include "../postgis_config.h"
+
/* Workaround for GEOS 2.2 compatibility: old geos_c.h does not contain
header guards to protect from multiple inclusion */
#ifndef GEOS_C_INCLUDED
-#include <math.h>
-#include <float.h>
-#include <string.h>
-#include <stdio.h>
-#include <errno.h>
-
-#include "../postgis_config.h"
-
#include "postgres.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 <math.h>
+#include <float.h>
+#include <string.h>
+#include <stdio.h>
+#include <errno.h>
+
/*
* implementation GiST support and basic LWGEOM operations (like &&)
-#include "../postgis_config.h"
-
#include "postgres.h"
+#include "../postgis_config.h"
+
#include <math.h>
#include <float.h>
#include <string.h>
-#include "../postgis_config.h"
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <stdarg.h>
#include <postgres.h>
#include <fmgr.h>
#include <executor/spi.h>
+
+#include "../postgis_config.h"
#include "liblwgeom.h"
#include "lwgeom_pg.h"
+#include <stdio.h>
+#include <stdlib.h>
+#include <stdarg.h>
#define PARANOIA_LEVEL 1
#ifndef _LWGEOM_PG_H
#define _LWGEOM_PG_H 1
-#include "../postgis_config.h"
#include "postgres.h"
#include "utils/geo_decls.h"
#include "fmgr.h"
+
+#include "../postgis_config.h"
+
#include "liblwgeom.h"
#include "pgsql_compat.h"
*
**********************************************************************/
+#include "postgres.h"
+#include "liblwgeom.h"
+#include "fmgr.h"
+
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <math.h>
-#include "postgres.h"
-#include "liblwgeom.h"
-#include "fmgr.h"
-
#include "lwgeom_pg.h"
*
**********************************************************************/
-#include <math.h>
-#include <float.h>
-#include <string.h>
-#include <stdio.h>
-#include <errno.h>
-
#include "postgres.h"
#include "fmgr.h"
#include "miscadmin.h"
#include "liblwgeom.h"
#include "lwgeom_pg.h"
+#include <math.h>
+#include <float.h>
+#include <string.h>
+#include <stdio.h>
+#include <errno.h>
+
Datum transform(PG_FUNCTION_ARGS);
Datum transform_geom(PG_FUNCTION_ARGS);