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
45[[nodiscard]] vectorGeometryVector *buildGEOSGeometriesFromFile(const char *filePath,
46 const char *layerName,
47 const char *inputReferenceSystem);
48
66[[nodiscard]] GEOSSTRtree *buildSTRTreefromRaster(const struct averagedData *data,
67 const struct geoTransform *transformation, cellGeometryList **cells);
68
78void trackIntersectingGeometries(void *item, void *userdata);
79
95 GEOSSTRtree *rasterTree);
96
105[[nodiscard]] GEOSGeometry *boundingBoxOfOGRToGEOS(const OGRGeometryH geom);
106 // end of group
108#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)
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)
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:113
This structs associates GDAL's geotransfomration information from a raster dataset with easy to inter...
Definition types.h:55
Definition types.h:137
Definition types.h:101