PostGIS  2.1.10dev-r@@SVN_REVISION@@
rt_pg.c File Reference
#include <math.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <assert.h>
#include <ctype.h>
#include <postgres.h>
#include <access/gist.h>
#include <access/itup.h>
#include <fmgr.h>
#include <utils/elog.h>
#include <utils/builtins.h>
#include <executor/spi.h>
#include <executor/executor.h>
#include <funcapi.h>
#include "../../postgis_config.h"
#include "lwgeom_pg.h"
#include "rt_pg.h"
#include "pgsql_compat.h"
#include "utils/lsyscache.h"
#include "utils/array.h"
#include "catalog/pg_type.h"
#include "access/htup_details.h"
Include dependency graph for rt_pg.c:

Go to the source code of this file.

Data Structures

struct  rtpg_dumpvalues_arg_t
 
struct  rtpg_setvaluesgv_arg_t
 
struct  rtpg_setvaluesgv_geomval_t
 
struct  rtpg_colormap_arg_t
 
struct  rtpg_nmapalgebra_callback_arg
 
struct  rtpg_nmapalgebra_arg_t
 
struct  rtpg_nmapalgebraexpr_callback_arg
 
struct  rtpg_nmapalgebraexpr_arg_t
 
struct  rtpg_union_band_arg_t
 
struct  rtpg_union_arg_t
 
struct  rtpg_clip_band_t
 
struct  rtpg_clip_arg_t
 

Macros

#define MAX_DBL_CHARLEN   (3 + DBL_MANT_DIG - DBL_MIN_EXP)
 
#define MAX_INT_CHARLEN   32
 
#define ENV_POSTGIS_GDAL_ENABLED_DRIVERS   "POSTGIS_GDAL_ENABLED_DRIVERS"
 
#define ENV_POSTGIS_ENABLE_OUTDB_RASTERS   "POSTGIS_ENABLE_OUTDB_RASTERS"
 
#define ERRMSG_MAXLEN   256
 

Typedefs

typedef struct rtpg_dumpvalues_arg_trtpg_dumpvalues_arg
 
typedef struct rtpg_setvaluesgv_arg_trtpg_setvaluesgv_arg
 
typedef struct rtpg_setvaluesgv_geomval_trtpg_setvaluesgv_geomval
 
typedef struct rtpg_colormap_arg_trtpg_colormap_arg
 
typedef struct rtpg_nmapalgebra_arg_trtpg_nmapalgebra_arg
 
typedef struct rtpg_nmapalgebraexpr_arg_trtpg_nmapalgebraexpr_arg
 
typedef struct rtpg_union_band_arg_trtpg_union_band_arg
 
typedef struct rtpg_union_arg_trtpg_union_arg
 
typedef struct rtpg_clip_band_trtpg_clip_band
 
typedef struct rtpg_clip_arg_trtpg_clip_arg
 

Enumerations

enum  rtpg_union_type {
  UT_LAST = 0, UT_FIRST, UT_MIN, UT_MAX,
  UT_COUNT, UT_SUM, UT_MEAN, UT_RANGE
}
 

Functions

void _PG_init (void)
 
static char * rtpg_strreplace (const char *str, const char *oldstr, const char *newstr, int *count)
 
static char * rtpg_strtoupper (char *str)
 
static char * rtpg_chartrim (const char *input, char *remove)
 
static char ** rtpg_strsplit (const char *str, const char *delimiter, int *n)
 
static char * rtpg_removespaces (char *str)
 
static char * rtpg_trim (const char *input)
 
static char * rtpg_getSR (int srid)
 
static void * rt_pg_alloc (size_t size)
 
static void * rt_pg_realloc (void *mem, size_t size)
 
static void rt_pg_free (void *ptr)
 
static void rt_pg_error (const char *fmt, va_list ap)
 
static void rt_pg_notice (const char *fmt, va_list ap)
 
static void rtpg_assignHookGDALEnabledDrivers ()
 
Datum RASTER_lib_version (PG_FUNCTION_ARGS)
 
Datum RASTER_lib_build_date (PG_FUNCTION_ARGS)
 
Datum RASTER_gdal_version (PG_FUNCTION_ARGS)
 
Datum RASTER_minPossibleValue (PG_FUNCTION_ARGS)
 
Datum RASTER_in (PG_FUNCTION_ARGS)
 
Datum RASTER_out (PG_FUNCTION_ARGS)
 
Datum RASTER_to_bytea (PG_FUNCTION_ARGS)
 
Datum RASTER_to_binary (PG_FUNCTION_ARGS)
 
Datum RASTER_convex_hull (PG_FUNCTION_ARGS)
 
Datum RASTER_dumpAsPolygons (PG_FUNCTION_ARGS)
 
Datum RASTER_getSRID (PG_FUNCTION_ARGS)
 
Datum RASTER_getWidth (PG_FUNCTION_ARGS)
 
Datum RASTER_getHeight (PG_FUNCTION_ARGS)
 
Datum RASTER_getNumBands (PG_FUNCTION_ARGS)
 
Datum RASTER_getXScale (PG_FUNCTION_ARGS)
 
Datum RASTER_getYScale (PG_FUNCTION_ARGS)
 
Datum RASTER_getXSkew (PG_FUNCTION_ARGS)
 
Datum RASTER_getYSkew (PG_FUNCTION_ARGS)
 
Datum RASTER_getXUpperLeft (PG_FUNCTION_ARGS)
 
Datum RASTER_getYUpperLeft (PG_FUNCTION_ARGS)
 
Datum RASTER_getPixelWidth (PG_FUNCTION_ARGS)
 
Datum RASTER_getPixelHeight (PG_FUNCTION_ARGS)
 
Datum RASTER_getGeotransform (PG_FUNCTION_ARGS)
 
Datum RASTER_setSRID (PG_FUNCTION_ARGS)
 
Datum RASTER_setScale (PG_FUNCTION_ARGS)
 
Datum RASTER_setScaleXY (PG_FUNCTION_ARGS)
 
Datum RASTER_setSkew (PG_FUNCTION_ARGS)
 
Datum RASTER_setSkewXY (PG_FUNCTION_ARGS)
 
Datum RASTER_setUpperLeftXY (PG_FUNCTION_ARGS)
 
Datum RASTER_setRotation (PG_FUNCTION_ARGS)
 
Datum RASTER_setGeotransform (PG_FUNCTION_ARGS)
 
Datum RASTER_getBandPixelType (PG_FUNCTION_ARGS)
 
Datum RASTER_getBandPixelTypeName (PG_FUNCTION_ARGS)
 
Datum RASTER_getBandNoDataValue (PG_FUNCTION_ARGS)
 
Datum RASTER_getBandPath (PG_FUNCTION_ARGS)
 
Datum RASTER_bandIsNoData (PG_FUNCTION_ARGS)
 
Datum RASTER_isEmpty (PG_FUNCTION_ARGS)
 
Datum RASTER_hasNoBand (PG_FUNCTION_ARGS)
 
Datum RASTER_setBandIsNoData (PG_FUNCTION_ARGS)
 
Datum RASTER_setBandNoDataValue (PG_FUNCTION_ARGS)
 
Datum RASTER_getPixelValue (PG_FUNCTION_ARGS)
 
Datum RASTER_dumpValues (PG_FUNCTION_ARGS)
 
Datum RASTER_setPixelValue (PG_FUNCTION_ARGS)
 
Datum RASTER_setPixelValuesArray (PG_FUNCTION_ARGS)
 
Datum RASTER_setPixelValuesGeomval (PG_FUNCTION_ARGS)
 
Datum RASTER_getPixelPolygons (PG_FUNCTION_ARGS)
 
Datum RASTER_getPolygon (PG_FUNCTION_ARGS)
 
Datum RASTER_pixelOfValue (PG_FUNCTION_ARGS)
 
Datum RASTER_nearestValue (PG_FUNCTION_ARGS)
 
Datum RASTER_neighborhood (PG_FUNCTION_ARGS)
 
Datum RASTER_makeEmpty (PG_FUNCTION_ARGS)
 
Datum RASTER_addBand (PG_FUNCTION_ARGS)
 
Datum RASTER_copyBand (PG_FUNCTION_ARGS)
 
Datum RASTER_addBandRasterArray (PG_FUNCTION_ARGS)
 
Datum RASTER_addBandOutDB (PG_FUNCTION_ARGS)
 
Datum RASTER_tile (PG_FUNCTION_ARGS)
 
Datum RASTER_band (PG_FUNCTION_ARGS)
 
Datum RASTER_summaryStats (PG_FUNCTION_ARGS)
 
Datum RASTER_summaryStatsCoverage (PG_FUNCTION_ARGS)
 
Datum RASTER_histogram (PG_FUNCTION_ARGS)
 
Datum RASTER_histogramCoverage (PG_FUNCTION_ARGS)
 
Datum RASTER_quantile (PG_FUNCTION_ARGS)
 
Datum RASTER_quantileCoverage (PG_FUNCTION_ARGS)
 
Datum RASTER_valueCount (PG_FUNCTION_ARGS)
 
Datum RASTER_valueCountCoverage (PG_FUNCTION_ARGS)
 
Datum RASTER_reclass (PG_FUNCTION_ARGS)
 
Datum RASTER_colorMap (PG_FUNCTION_ARGS)
 
Datum RASTER_fromGDALRaster (PG_FUNCTION_ARGS)
 
Datum RASTER_asGDALRaster (PG_FUNCTION_ARGS)
 
Datum RASTER_getGDALDrivers (PG_FUNCTION_ARGS)
 
Datum RASTER_asRaster (PG_FUNCTION_ARGS)
 
Datum RASTER_GDALWarp (PG_FUNCTION_ARGS)
 
Datum RASTER_metadata (PG_FUNCTION_ARGS)
 
Datum RASTER_bandmetadata (PG_FUNCTION_ARGS)
 
Datum RASTER_rasterToWorldCoord (PG_FUNCTION_ARGS)
 
Datum RASTER_worldToRasterCoord (PG_FUNCTION_ARGS)
 
Datum RASTER_intersects (PG_FUNCTION_ARGS)
 
Datum RASTER_overlaps (PG_FUNCTION_ARGS)
 
Datum RASTER_touches (PG_FUNCTION_ARGS)
 
Datum RASTER_contains (PG_FUNCTION_ARGS)
 
Datum RASTER_containsProperly (PG_FUNCTION_ARGS)
 
Datum RASTER_covers (PG_FUNCTION_ARGS)
 
Datum RASTER_coveredby (PG_FUNCTION_ARGS)
 
Datum RASTER_dwithin (PG_FUNCTION_ARGS)
 
Datum RASTER_dfullywithin (PG_FUNCTION_ARGS)
 
Datum RASTER_sameAlignment (PG_FUNCTION_ARGS)
 
Datum RASTER_notSameAlignmentReason (PG_FUNCTION_ARGS)
 
Datum RASTER_mapAlgebraExpr (PG_FUNCTION_ARGS)
 
Datum RASTER_mapAlgebraFct (PG_FUNCTION_ARGS)
 
Datum RASTER_mapAlgebraFctNgb (PG_FUNCTION_ARGS)
 
Datum RASTER_mapAlgebra2 (PG_FUNCTION_ARGS)
 
Datum RASTER_nMapAlgebra (PG_FUNCTION_ARGS)
 
Datum RASTER_nMapAlgebraExpr (PG_FUNCTION_ARGS)
 
Datum RASTER_union_transfn (PG_FUNCTION_ARGS)
 
Datum RASTER_union_finalfn (PG_FUNCTION_ARGS)
 
Datum RASTER_clip (PG_FUNCTION_ARGS)
 
static char * rtpg_strrstr (const char *s1, const char *s2)
 
 PG_FUNCTION_INFO_V1 (RASTER_lib_version)
 
 PG_FUNCTION_INFO_V1 (RASTER_lib_build_date)
 
 PG_FUNCTION_INFO_V1 (RASTER_gdal_version)
 
 PG_FUNCTION_INFO_V1 (RASTER_minPossibleValue)
 
 PG_FUNCTION_INFO_V1 (RASTER_in)
 Input is a string with hex chars in it. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_out)
 Given a RASTER structure, convert it to Hex and put it in a string. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_to_bytea)
 Return bytea object with raster in Well-Known-Binary form. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_to_binary)
 Return bytea object with raster in Well-Known-Binary form requested using ST_AsBinary function. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_convex_hull)
 Return the convex hull of this raster. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_dumpAsPolygons)
 
 PG_FUNCTION_INFO_V1 (RASTER_makeEmpty)
 Make a new raster with no bands. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_getSRID)
 Return the SRID associated with the raster. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_setSRID)
 Set the SRID associated with the raster. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_getWidth)
 Return the width of the raster. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_getHeight)
 Return the height of the raster. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_getNumBands)
 Return the number of bands included in the raster. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_getXScale)
 Return X scale from georeference of the raster. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_getYScale)
 Return Y scale from georeference of the raster. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_setScale)
 Set the scale of the raster. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_setScaleXY)
 Set the pixel size of the raster. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_getXSkew)
 Return value of the raster skew about the X axis. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_getYSkew)
 Return value of the raster skew about the Y axis. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_setSkew)
 Set the skew of the raster. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_setSkewXY)
 Set the skew of the raster. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_getXUpperLeft)
 Return value of the raster offset in the X dimension. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_getYUpperLeft)
 Return value of the raster offset in the Y dimension. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_setUpperLeftXY)
 Set the raster offset in the X and Y dimension. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_getPixelWidth)
 Return the pixel width of the raster. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_getPixelHeight)
 Return the pixel height of the raster. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_setGeotransform)
 Set the geotransform of the supplied raster. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_getGeotransform)
 Calculates the physically relevant parameters of the supplied raster's geotransform. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_setRotation)
 Set the rotation of the raster. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_getBandPixelType)
 Return pixel type of the specified band of raster. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_getBandPixelTypeName)
 Return name of pixel type of the specified band of raster. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_getBandNoDataValue)
 Return nodata value of the specified band of raster. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_setBandNoDataValue)
 Set the nodata value of the specified band of raster. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_setBandIsNoData)
 
 PG_FUNCTION_INFO_V1 (RASTER_bandIsNoData)
 
 PG_FUNCTION_INFO_V1 (RASTER_getBandPath)
 Return the path of the raster for out-db raster. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_getPixelValue)
 Return value of a single pixel. More...
 
static rtpg_dumpvalues_arg rtpg_dumpvalues_arg_init ()
 
static void rtpg_dumpvalues_arg_destroy (rtpg_dumpvalues_arg arg)
 
 PG_FUNCTION_INFO_V1 (RASTER_dumpValues)
 
 PG_FUNCTION_INFO_V1 (RASTER_setPixelValue)
 Write value of raster sample on given position and in specified band. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_setPixelValuesArray)
 Set pixels to value from array. More...
 
static rtpg_setvaluesgv_arg rtpg_setvaluesgv_arg_init ()
 
static void rtpg_setvaluesgv_arg_destroy (rtpg_setvaluesgv_arg arg)
 
static int rtpg_setvalues_geomval_callback (rt_iterator_arg arg, void *userarg, double *value, int *nodata)
 
 PG_FUNCTION_INFO_V1 (RASTER_setPixelValuesGeomval)
 
 PG_FUNCTION_INFO_V1 (RASTER_getPixelPolygons)
 Return the geographical shape of all pixels. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_getPolygon)
 Get raster band's polygon. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_pixelOfValue)
 Get pixels of value. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_nearestValue)
 Return nearest value to a point. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_neighborhood)
 Return the neighborhood around a pixel. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_addBand)
 Add band(s) to the given raster at the given position(s). More...
 
 PG_FUNCTION_INFO_V1 (RASTER_addBandRasterArray)
 Add bands from array of rasters to a destination raster. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_addBandOutDB)
 Add out-db band to the given raster at the given position. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_tile)
 Break up a raster into smaller tiles. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_copyBand)
 Copy a band from one raster to another one at the given position. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_isEmpty)
 Check if raster is empty or not. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_hasNoBand)
 Check if the raster has a given band or not. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_mapAlgebraExpr)
 
 PG_FUNCTION_INFO_V1 (RASTER_mapAlgebraFct)
 
 PG_FUNCTION_INFO_V1 (RASTER_band)
 Return new raster from selected bands of existing raster through ST_Band. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_summaryStats)
 Get summary stats of a band. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_summaryStatsCoverage)
 Get summary stats of a coverage for a specific band. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_histogram)
 Returns histogram for a band. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_histogramCoverage)
 Returns histogram of a coverage for a specified band. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_quantile)
 Returns quantiles for a band. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_quantileCoverage)
 Returns selected quantiles of a coverage for a specified band. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_valueCount)
 
 PG_FUNCTION_INFO_V1 (RASTER_valueCountCoverage)
 
 PG_FUNCTION_INFO_V1 (RASTER_reclass)
 Reclassify the specified bands of the raster. More...
 
static rtpg_colormap_arg rtpg_colormap_arg_init ()
 
static void rtpg_colormap_arg_destroy (rtpg_colormap_arg arg)
 
 PG_FUNCTION_INFO_V1 (RASTER_colorMap)
 
 PG_FUNCTION_INFO_V1 (RASTER_fromGDALRaster)
 
 PG_FUNCTION_INFO_V1 (RASTER_asGDALRaster)
 Returns formatted GDAL raster as bytea object of raster. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_getGDALDrivers)
 Returns available GDAL drivers. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_asRaster)
 Rasterize a geometry. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_GDALWarp)
 warp a raster using GDAL Warp API More...
 
 PG_FUNCTION_INFO_V1 (RASTER_metadata)
 Get raster's meta data. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_bandmetadata)
 Get raster bands' meta data. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_rasterToWorldCoord)
 
 PG_FUNCTION_INFO_V1 (RASTER_worldToRasterCoord)
 
 PG_FUNCTION_INFO_V1 (RASTER_intersects)
 See if two rasters intersect. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_overlaps)
 See if two rasters overlap. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_touches)
 See if two rasters touch. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_contains)
 See if the first raster contains the second raster. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_containsProperly)
 See if the first raster contains properly the second raster. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_covers)
 See if the first raster covers the second raster. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_coveredby)
 See if the first raster is covered by the second raster. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_dwithin)
 See if the two rasters are within the specified distance of each other. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_dfullywithin)
 See if the two rasters are fully within the specified distance of each other. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_sameAlignment)
 See if two rasters are aligned. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_notSameAlignmentReason)
 Return a reason why two rasters are not aligned. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_mapAlgebra2)
 Two raster MapAlgebra. More...
 
 PG_FUNCTION_INFO_V1 (RASTER_mapAlgebraFctNgb)
 One raster neighborhood MapAlgebra. More...
 
static rtpg_nmapalgebra_arg rtpg_nmapalgebra_arg_init ()
 
static void rtpg_nmapalgebra_arg_destroy (rtpg_nmapalgebra_arg arg)
 
static int rtpg_nmapalgebra_rastbandarg_process (rtpg_nmapalgebra_arg arg, ArrayType *array, int *allnull, int *allempty, int *noband)
 
static int rtpg_nmapalgebra_callback (rt_iterator_arg arg, void *userarg, double *value, int *nodata)
 
 PG_FUNCTION_INFO_V1 (RASTER_nMapAlgebra)
 
static rtpg_nmapalgebraexpr_arg rtpg_nmapalgebraexpr_arg_init (int cnt, char **kw)
 
static void rtpg_nmapalgebraexpr_arg_destroy (rtpg_nmapalgebraexpr_arg arg)
 
static int rtpg_nmapalgebraexpr_callback (rt_iterator_arg arg, void *userarg, double *value, int *nodata)
 
 PG_FUNCTION_INFO_V1 (RASTER_nMapAlgebraExpr)
 
static rtpg_union_type rtpg_uniontype_index_from_name (const char *cutype)
 
static void rtpg_union_arg_destroy (rtpg_union_arg arg)
 
static int rtpg_union_callback (rt_iterator_arg arg, void *userarg, double *value, int *nodata)
 
static int rtpg_union_mean_callback (rt_iterator_arg arg, void *userarg, double *value, int *nodata)
 
static int rtpg_union_range_callback (rt_iterator_arg arg, void *userarg, double *value, int *nodata)
 
static int rtpg_union_unionarg_process (rtpg_union_arg arg, ArrayType *array)
 
static int rtpg_union_noarg (rtpg_union_arg arg, rt_raster raster)
 
 PG_FUNCTION_INFO_V1 (RASTER_union_transfn)
 
 PG_FUNCTION_INFO_V1 (RASTER_union_finalfn)
 
static rtpg_clip_arg rtpg_clip_arg_init ()
 
static void rtpg_clip_arg_destroy (rtpg_clip_arg arg)
 
static int rtpg_clip_callback (rt_iterator_arg arg, void *userarg, double *value, int *nodata)
 
 PG_FUNCTION_INFO_V1 (RASTER_clip)
 

Variables

 PG_MODULE_MAGIC
 
char * gdal_enabled_drivers
 
char enable_outdb_rasters