16#ifndef _DEFAULT_SOURCE
17#define _DEFAULT_SOURCE
22#include <gdal/ogr_api.h>
25#define TREE_NODE_CAP 100
48 const char *layerName,
49 const char *inputReferenceSystem,
50 bool readPrecomputedCentroid);
99 GEOSSTRtree *rasterTree,
bool usePrecomputedCentroid);
GEOSGeometry * boundingBoxOfOGRToGEOS(const OGRGeometryH geom)
Convert the MBR of an OGR geometry to a GEOS geometry.
intersectionVector * querySTRTree(vectorGeometryVector *areasOfInterest, GEOSSTRtree *rasterTree, bool usePrecomputedCentroid)
Query STRTree with MBRs of "extraction" geometries.
void trackIntersectingGeometries(void *item, void *userdata)
Callback used when querying STRTree.
vectorGeometryVector * buildGEOSGeometriesFromFile(const char *filePath, const char *layerName, const char *inputReferenceSystem, bool readPrecomputedCentroid)
Create a vector of GEOS geometries from an OGR-readable vector dataset.
GEOSSTRtree * buildSTRTreefromRaster(const struct averagedData *data, const struct geoTransform *transformation, cellGeometryList **cells)
Build a STRTree of vectorized raster cells and their values.