/usr/include/rasterlite.h is in librasterlite-dev 1.1~svn11-1build2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 | /*
/ rasterlite.h
/
/ public RasterLite declarations
/
/ version 1.1, 2010 April 27
/
/ Author: Sandro Furieri a.furieri@lqt.it
/
/ Copyright (C) 2009 Alessandro Furieri
/
/ This program is free software: you can redistribute it and/or modify
/ it under the terms of the GNU Lesser General Public License as published by
/ the Free Software Foundation, either version 3 of the License, or
/ (at your option) any later version.
/
/ This program is distributed in the hope that it will be useful,
/ but WITHOUT ANY WARRANTY; without even the implied warranty of
/ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
/ GNU Lesser General Public License for more details.
/
/ You should have received a copy of the GNU Lesser General Public License
/ along with this program. If not, see <http://www.gnu.org/licenses/>.
/
*/
#ifdef DLL_EXPORT
#define RASTERLITE_DECLARE __declspec(dllexport)
#else
#define RASTERLITE_DECLARE extern
#endif
#ifndef _RASTERLITE_H
#define _RASTERLITE_H
#ifdef __cplusplus
extern "C"
{
#endif
#define GAIA_RGB_ARRAY 1001
#define GAIA_RGBA_ARRAY 1002
#define GAIA_ARGB_ARRAY 1003
#define GAIA_BGR_ARRAY 1004
#define GAIA_BGRA_ARRAY 1005
#define RASTERLITE_OK 0
#define RASTERLITE_ERROR 1
RASTERLITE_DECLARE void *rasterliteOpen (const char *path,
const char *table_prefix);
RASTERLITE_DECLARE void rasterliteClose (void *handle);
RASTERLITE_DECLARE int rasterliteHasTransparentColor (void *handle);
RASTERLITE_DECLARE void rasterliteSetTransparentColor (void *handle,
unsigned char red,
unsigned char green,
unsigned char blue);
RASTERLITE_DECLARE int rasterliteGetTransparentColor (void *handle,
unsigned char *red,
unsigned char *green,
unsigned char *blue);
RASTERLITE_DECLARE void rasterliteSetBackgroundColor (void *handle,
unsigned char red,
unsigned char green,
unsigned char blue);
RASTERLITE_DECLARE int rasterliteGetBackgroundColor (void *handle,
unsigned char *red,
unsigned char *green,
unsigned char *blue);
RASTERLITE_DECLARE int rasterliteGetRaster (void *handle, double cx,
double cy, double pixel_size,
int width, int height,
int image_type,
int quality_factor,
void **raster, int *size);
RASTERLITE_DECLARE int rasterliteGetRaster2 (void *handle, double cx,
double cy, double pixel_x_size,
double pixel_y_size, int width,
int height, int image_type,
int quality_factor,
void **raster, int *size);
RASTERLITE_DECLARE int rasterliteGetRasterByRect (void *handle, double x1,
double y1, double x2,
double y2,
double pixel_size,
int width, int height,
int image_type,
int quality_factor,
void **raster, int *size);
RASTERLITE_DECLARE int rasterliteGetRasterByRect2 (void *handle, double x1,
double y1, double x2,
double y2,
double pixel_x_size,
double pixel_y_size,
int width, int height,
int image_type,
int quality_factor,
void **raster,
int *size);
RASTERLITE_DECLARE int rasterliteGetRawImage (void *handle, double cx,
double cy, double pixel_size,
int width, int height,
int raw_format,
void **raster, int *size);
RASTERLITE_DECLARE int rasterliteGetRawImage2 (void *handle, double cx,
double cy,
double pixel_x_size,
double pixel_y_size,
int width, int height,
int raw_format,
void **raster, int *size);
RASTERLITE_DECLARE int rasterliteGetRawImageByRect (void *handle, double x1,
double y1, double x2,
double y2,
double pixel_size,
int width, int height,
int raw_format,
void **raster,
int *size);
RASTERLITE_DECLARE int rasterliteGetRawImageByRect2 (void *handle,
double x1, double y1,
double x2, double y2,
double pixel_x_size,
double pixel_y_size,
int width, int height,
int raw_format,
void **raster,
int *size);
RASTERLITE_DECLARE int rasterliteIsError (void *handle);
RASTERLITE_DECLARE const char *rasterliteGetPath (void *handle);
RASTERLITE_DECLARE const char *rasterliteGetTablePrefix (void *handle);
RASTERLITE_DECLARE const char *rasterliteGetLastError (void *handle);
RASTERLITE_DECLARE const char *rasterliteGetSqliteVersion (void *handle);
RASTERLITE_DECLARE const char *rasterliteGetSpatialiteVersion (void
*handle);
RASTERLITE_DECLARE int rasterliteGetLevels (void *handle);
RASTERLITE_DECLARE int rasterliteGetResolution (void *handle, int level,
double *pixel_x_size,
double *pixel_y_size,
int *tile_count);
RASTERLITE_DECLARE int rasterliteGetSrid (void *handle, int *srid,
const char **auth_name,
int *auth_srid,
const char **ref_sys_name,
const char **proj4text);
RASTERLITE_DECLARE int rasterliteGetExtent (void *handle, double *min_x,
double *min_y, double *max_x,
double *max_y);
RASTERLITE_DECLARE int rasterliteWaveletToPng (const void *blob,
int blob_size,
void **png_blob,
int *png_size);
RASTERLITE_DECLARE int rasterliteExportGeoTiff (void *handle,
const char *img_path,
void *raster, int size,
double cx, double cy,
double pixel_x_size,
double pixel_y_size,
int width, int height);
RASTERLITE_DECLARE int rasterliteGetBestAccess (void *handle,
double pixel_size,
double *pixel_x_size,
double *pixel_y_size,
sqlite3_stmt ** stmt,
int *use_rtree);
/*
/ utility functions returning a Raw image
*/
RASTERLITE_DECLARE int rasterliteJpegBlobToRawImage (const void *blob,
int blob_size,
int raw_format,
void **raw, int *width,
int *height);
RASTERLITE_DECLARE int rasterlitePngBlobToRawImage (const void *blob,
int blob_size,
int raw_format,
void **raw, int *width,
int *height);
RASTERLITE_DECLARE int rasterliteGifBlobToRawImage (const void *blob,
int blob_size,
int raw_format,
void **raw, int *width,
int *height);
RASTERLITE_DECLARE int rasterliteTiffBlobToRawImage (const void *blob,
int blob_size,
int raw_format,
void **raw, int *width,
int *height);
RASTERLITE_DECLARE int rasterliteWaveletBlobToRawImage (const void *blob,
int blob_size,
int raw_format,
void **raw,
int *width,
int *height);
/*
/ utility functions generating an image file from a Raw Image
*/
RASTERLITE_DECLARE int rasterliteRawImageToJpegFile (const void *raw,
int raw_format,
int width, int height,
const char *path,
int quality);
RASTERLITE_DECLARE int rasterliteRawImageToPngFile (const void *raw,
int raw_format,
int width, int height,
const char *path);
RASTERLITE_DECLARE int rasterliteRawImageToGifFile (const void *raw,
int raw_format,
int width, int height,
const char *path);
RASTERLITE_DECLARE int rasterliteRawImageToGeoTiffFile (const void *raw,
int raw_format,
int width,
int height,
const char *path,
double x_size,
double y_size,
double xllcorner,
double yllcorner,
const char
*proj4text);
/*
/ utility functions generating an image mem-buffer from a Raw Image
*/
RASTERLITE_DECLARE unsigned char *rasterliteRawImageToJpegMemBuf (const void
*raw,
int
raw_format,
int width,
int
height,
int *size,
int
quality);
RASTERLITE_DECLARE unsigned char *rasterliteRawImageToPngMemBuf (const void
*raw,
int
raw_format,
int width,
int height,
int *size);
RASTERLITE_DECLARE unsigned char *rasterliteRawImageToGifMemBuf (const void
*raw,
int
raw_format,
int width,
int height,
int *size);
RASTERLITE_DECLARE unsigned char *rasterliteRawImageToTiffMemBuf (const void
*raw,
int
raw_format,
int width,
int
height,
int
*size);
#ifdef __cplusplus
}
#endif
#endif /* _RASTERLITE_H */
|