|
HAZE
haze is a drop-in replacement to process water vapor to be used with FORCE
|
Functions | |
| GDALDatasetH | openRasterDataset (const char *filePath) |
| Open a raster dataset in read-only mode. | |
| GDALRasterBandH | openRasterBand (GDALDatasetH raster, int index) |
| Fetch a raster band from an opened raster dataset. | |
| GDALDatasetH | openVectorDataset (const char *filePath) |
| Open a vector dataset in read-only mode. | |
| OGRLayerH | openVectorLayer (GDALDatasetH vector, const char *name) |
| Fetch a vector layer from an opened vector dataset. | |
| void | closeGDALDataset (GDALDatasetH dataset) |
| Close an open raster or vector dataset. | |
| CRS_TYPE | getCRSType (const char *Wkt) |
| Determine if a given CRS is geographic or planar/projected. | |
| char * | extractCRSAsWKT (GDALDatasetH dataset, const char *layerName) |
| Return the dataset/layer CRS as WKT. | |
| OGRCoordinateTransformationH | transformationFromWKTs (char *from, char *to, bool inputUsesCompliantOrdering) |
| Create a coordinate transformation between to CRS's. | |
| GEOSGeometry * | OGRToGEOS (const OGRGeometryH geom) |
| Convert an OGR geometry to a GEOS geometry. | |
| OGRGeometryH | OGRFromGEOS (const GEOSGeometry *geom, OGRSpatialReferenceH crs) |
| Convert a GEOS geometry to an OGR geometry. | |
| void closeGDALDataset | ( | GDALDatasetH | dataset | ) |
Close an open raster or vector dataset.
| dataset | Object to close. |
|
nodiscard |
Return the dataset/layer CRS as WKT.
This function works on raster and vector datasets. It extracts the the projection of the dataset and returns a new reference to its WKT representation.
| dataset | GDAL dataset object to query for CRS infromation. |
| layerName | Layer name to query. Only honored for vector datasets. |
| CRS_TYPE getCRSType | ( | const char * | Wkt | ) |
Determine if a given CRS is geographic or planar/projected.
| Wkt | String representation of CRS. |
|
nodiscard |
Convert a GEOS geometry to an OGR geometry.
This function creates a temporary GEOS WKB-writer and converts the input GEOS geometry to a corresponding OGR geometry by ex-/importing via the respective WKB interfaces.
| geom | GEOS geometry to convert. |
| crs | Spatial reference object to assign to geometry, can be NULL. |
|
nodiscard |
Convert an OGR geometry to a GEOS geometry.
This function creates a temporary GEOS WKB-reader and converts the input OGR geometry to a corresponding GEOS geometry by ex-/importing via the WKB interfaces.
| geom | OGR geometry to convert. |
| GDALRasterBandH openRasterBand | ( | GDALDatasetH | raster, |
| int | index ) |
Fetch a raster band from an opened raster dataset.
| raster | Raster object to fetch band from. |
| index | Band index. |
|
nodiscard |
Open a raster dataset in read-only mode.
| filePath | Raster file to open. |
|
nodiscard |
Open a vector dataset in read-only mode.
| filePath | Vector file to open. |
| OGRLayerH openVectorLayer | ( | GDALDatasetH | vector, |
| const char * | name ) |
Fetch a vector layer from an opened vector dataset.
| vector | Vector object to fetch layer from. |
| name | Layer name to fetch, possibly NULL. |
| OGRCoordinateTransformationH transformationFromWKTs | ( | char * | from, |
| char * | to, | ||
| bool | inputUsesCompliantOrdering ) |
Create a coordinate transformation between to CRS's.
This function creates OGRSpatialReferenceH objects from the supplied WKT representations. The transformation object is created using the OCTNewCoordinateTransformationEx function, setting optional arguments to NULL. The returned coordinate transformation object can be used with various transformation API's offered by GDAL.
| from | Source CRS as WKT string. |
| to | Destination CRS as WKT string. |
| inputUsesCompliantOrdering | Boolean flag indicating if the CRS associated with the object to transform uses authority compliant ordering or gis friendly ordering. When data is read from file, this is most likely false. |