#include <iostream>#include <string>#include <stdlib.h>#include <fstream>#include <math.h>#include "gdal_priv.h"#include "cpl_conv.h"#include <ogr_spatialref.h>#include "GeoVector.h"Go to the source code of this file.
Classes | |
| class | GeoRaster |
Functions | |
| void | xy2offset (int x, int y, int64_t &offset, int dimensionX) |
| get offset from pixel x/y offsets measured in number of values of datatype dimensionX is the total number of samples across the image More... | |
| void | offset2xy (int &x, int &y, int64_t offset, int dimensionX) |
| get pixel x/y from offset offsets measured in number of values of datatype dimensionX is the total number of samples across the image More... | |
| void | xy2geo (int x, int y, GDALDataset *input, long double &geoX, long double &geoY) |
| get georeferenced x,y from pixel x,y More... | |
| void | geo2xy (int &x, int &y, GDALDataset *input, long double geoX, long double geoY) |
| get pixel x,y from georeferenced x,y More... | |
| char * | epsg2wkt (int epsg) |
| get wkt projection from epsg code More... | |
| void | render16to8bit (uint16_t *buffer, size_t bufferLength, unsigned char *buffer8, double stretchCoeff) |
| Render 16 bit values as 8 bit values. More... | |
| char* epsg2wkt | ( | int | epsg | ) |
get wkt projection from epsg code
| void geo2xy | ( | int & | x, |
| int & | y, | ||
| GDALDataset * | input, | ||
| long double | geoX, | ||
| long double | geoY | ||
| ) |
get pixel x,y from georeferenced x,y
| void offset2xy | ( | int & | x, |
| int & | y, | ||
| int64_t | offset, | ||
| int | dimensionX | ||
| ) |
get pixel x/y from offset offsets measured in number of values of datatype dimensionX is the total number of samples across the image
| void render16to8bit | ( | uint16_t * | buffer, |
| size_t | bufferLength, | ||
| unsigned char * | buffer8, | ||
| double | stretchCoeff | ||
| ) |
Render 16 bit values as 8 bit values.
Uses a linear stretch from 0 to max in the input buffer.
If stretchCoeff is not 1 the values will be scaled up or down by the coefficient (stretchCoeff*buffer[i])
8-bit values will saturate if the stretch render a value exceeding 255.
| void xy2geo | ( | int | x, |
| int | y, | ||
| GDALDataset * | input, | ||
| long double & | geoX, | ||
| long double & | geoY | ||
| ) |
get georeferenced x,y from pixel x,y
| void xy2offset | ( | int | x, |
| int | y, | ||
| int64_t & | offset, | ||
| int | dimensionX | ||
| ) |
get offset from pixel x/y offsets measured in number of values of datatype dimensionX is the total number of samples across the image
1.8.3.1
Copyright 2014 Google Inc. All rights reserved.