HAZE
haze is a drop-in replacement to process water vapor to be used with FORCE
Loading...
Searching...
No Matches
Area Of Interest Generation

Functions

OGREnvelope * boxFromPath (const char *filePath, const char *layerName)
 Compute the minimum bounding rectangle of the first or a specified layer and transform to EPSG:4326, if needed. All OGR-readable files and geometries are allowed.
void printBoundingBox (const OGREnvelope *box)
 Print the top, right, bottom and left coordinates defining a bounding box to stdout.

Detailed Description

Function Documentation

◆ boxFromPath()

OGREnvelope * boxFromPath ( const char * filePath,
const char * layerName )
nodiscard

Compute the minimum bounding rectangle of the first or a specified layer and transform to EPSG:4326, if needed. All OGR-readable files and geometries are allowed.

Note
After the function returns, the caller owns the returned OGREnvelope object and musst free it after use with CPLFree.
Parameters
filePathPath to file holding area of interest
layerNameLayer to use for bounding box creation. If NULL, use the first layer.
Returns
OGREnvelope* Reference to bounding box, NULL on error.

◆ printBoundingBox()

void printBoundingBox ( const OGREnvelope * box)

Print the top, right, bottom and left coordinates defining a bounding box to stdout.

Parameters
boxBounding box whose coordinates should be printed.