HAZE
haze is a drop-in replacement to process water vapor to be used with FORCE
Loading...
Searching...
No Matches
strtree.h
1#ifndef STRTREE_H
2#define STRTREE_H
15
16#ifndef _DEFAULT_SOURCE
17#define _DEFAULT_SOURCE
18#endif
19
20#include "types.h"
21#include <gdal/gdal.h>
22#include <gdal/ogr_api.h>
23#include <geos_c.h>
24
25#define TREE_NODE_CAP 100
26
47[[nodiscard]] vectorGeometryVector *buildGEOSGeometriesFromFile(const char *filePath,
48 const char *layerName,
49 const char *inputReferenceSystem,
50 bool readPrecomputedCentroid);
51
69[[nodiscard]] GEOSSTRtree *buildSTRTreefromRaster(const struct averagedData *data,
70 const struct geoTransform *transformation, cellGeometryList **cells);
71
81void trackIntersectingGeometries(void *item, void *userdata);
82
99 GEOSSTRtree *rasterTree, bool usePrecomputedCentroid);
100
109[[nodiscard]] GEOSGeometry *boundingBoxOfOGRToGEOS(const OGRGeometryH geom);
110 // end of group
112#endif // STRTREE_H
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.
Definition types.h:43
Definition types.h:117
This structs associates GDAL's geotransfomration information from a raster dataset with easy to inter...
Definition types.h:55
Definition types.h:143
Definition types.h:104