GDAL

gdal_alg.h
Go to the documentation of this file.
1 /******************************************************************************
2 * $Id$
3 *
4 * Project: GDAL Image Processing Algorithms
5 * Purpose: Prototypes, and definitions for various GDAL based algorithms.
6 * Author: Frank Warmerdam, warmerdam@pobox.com
7 *
8 ******************************************************************************
9 * Copyright (c) 2001, Frank Warmerdam
10 * Copyright (c) 2008-2012, Even Rouault <even dot rouault at spatialys.com>
11 *
12 * Permission is hereby granted, free of charge, to any person obtaining a
13 * copy of this software and associated documentation files (the "Software"),
14 * to deal in the Software without restriction, including without limitation
15 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
16 * and/or sell copies of the Software, and to permit persons to whom the
17 * Software is furnished to do so, subject to the following conditions:
18 *
19 * The above copyright notice and this permission notice shall be included
20 * in all copies or substantial portions of the Software.
21 *
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
23 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
25 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
28 * DEALINGS IN THE SOFTWARE.
29 ****************************************************************************/
30
31 #ifndef GDAL_ALG_H_INCLUDED
32 #define GDAL_ALG_H_INCLUDED
33
40 #ifndef DOXYGEN_SKIP
41 #include "gdal.h"
42 #include "cpl_minixml.h"
43 #include "ogr_api.h"
44 #include <stdint.h>
45 #endif
46
47 CPL_C_START
48
49 int CPL_DLL CPL_STDCALL GDALComputeMedianCutPCT( GDALRasterBandH hRed,
50 GDALRasterBandH hGreen,
51 GDALRasterBandH hBlue,
52 int (*pfnIncludePixel)(int,int,void*),
53 int nColors,
54 GDALColorTableH hColorTable,
55 GDALProgressFunc pfnProgress,
56 void * pProgressArg );
57
58 int CPL_DLL CPL_STDCALL GDALDitherRGB2PCT( GDALRasterBandH hRed,
59 GDALRasterBandH hGreen,
60 GDALRasterBandH hBlue,
61 GDALRasterBandH hTarget,
62 GDALColorTableH hColorTable,
63 GDALProgressFunc pfnProgress,
64 void * pProgressArg );
65
66 int CPL_DLL CPL_STDCALL GDALChecksumImage( GDALRasterBandH hBand,
67 int nXOff, int nYOff, int nXSize, int nYSize );
68
69 CPLErr CPL_DLL CPL_STDCALL
70 GDALComputeProximity( GDALRasterBandH hSrcBand,
71 GDALRasterBandH hProximityBand,
72 char **papszOptions,
73 GDALProgressFunc pfnProgress,
74 void * pProgressArg );
75
76 CPLErr CPL_DLL CPL_STDCALL
77 GDALFillNodata( GDALRasterBandH hTargetBand,
78 GDALRasterBandH hMaskBand,
79 double dfMaxSearchDist,
80 int bDeprecatedOption,
81 int nSmoothingIterations,
82 char **papszOptions,
83 GDALProgressFunc pfnProgress,
84 void * pProgressArg );
85
86 CPLErr CPL_DLL CPL_STDCALL
87 GDALPolygonize( GDALRasterBandH hSrcBand,
88 GDALRasterBandH hMaskBand,
89 OGRLayerH hOutLayer, int iPixValField,
90 char **papszOptions,
91 GDALProgressFunc pfnProgress,
92 void * pProgressArg );
93
94 CPLErr CPL_DLL CPL_STDCALL
95 GDALFPolygonize( GDALRasterBandH hSrcBand,
96 GDALRasterBandH hMaskBand,
97 OGRLayerH hOutLayer, int iPixValField,
98 char **papszOptions,
99 GDALProgressFunc pfnProgress,
100 void * pProgressArg );
101
102 CPLErr CPL_DLL CPL_STDCALL
103 GDALSieveFilter( GDALRasterBandH hSrcBand, GDALRasterBandH hMaskBand,
104 GDALRasterBandH hDstBand,
105 int nSizeThreshold, int nConnectedness,
106 char **papszOptions,
107 GDALProgressFunc pfnProgress,
108 void * pProgressArg );
109
110 /*
111 * Warp Related.
112 */
113
114 typedef int
115 (*GDALTransformerFunc)( void *pTransformerArg,
116 int bDstToSrc, int nPointCount,
117 double *x, double *y, double *z, int *panSuccess );
118
120 #define GDAL_GTI2_SIGNATURE "GTI2"
121
122 typedef struct {
123 GByte abySignature[4];
124 const char *pszClassName;
125 GDALTransformerFunc pfnTransform;
126 void (*pfnCleanup)( void * pTransformerArg );
127 CPLXMLNode *(*pfnSerialize)( void * pTransformerArg );
128 void* (*pfnCreateSimilar)( void* pTransformerArg, double dfSrcRatioX, double dfSrcRatioY );
129 } GDALTransformerInfo;
133 void CPL_DLL GDALDestroyTransformer( void *pTransformerArg );
134 int CPL_DLL GDALUseTransformer( void *pTransformerArg,
135 int bDstToSrc, int nPointCount,
136 double *x, double *y, double *z,
137 int *panSuccess );
138 void* GDALCreateSimilarTransformer( void* psTransformerArg, double dfSrcRatioX, double dfSrcRatioY );
141 /* High level transformer for going from image coordinates on one file
142 to image coordinates on another, potentially doing reprojection,
143 utilizing GCPs or using the geotransform. */
144
145 void CPL_DLL *
146 GDALCreateGenImgProjTransformer( GDALDatasetH hSrcDS, const char *pszSrcWKT,
147 GDALDatasetH hDstDS, const char *pszDstWKT,
148 int bGCPUseOK, double dfGCPErrorThreshold,
149 int nOrder );
150 void CPL_DLL *
151 GDALCreateGenImgProjTransformer2( GDALDatasetH hSrcDS, GDALDatasetH hDstDS,
152 char **papszOptions );
153 void CPL_DLL *
154 GDALCreateGenImgProjTransformer3( const char *pszSrcWKT,
155 const double *padfSrcGeoTransform,
156 const char *pszDstWKT,
157 const double *padfDstGeoTransform );
158
159 void CPL_DLL *
160 GDALCreateGenImgProjTransformer4( OGRSpatialReferenceH hSrcSRS,
161 const double *padfSrcGeoTransform,
162 OGRSpatialReferenceH hDstSRS,
163 const double *padfDstGeoTransform,
164 const char* const *papszOptions );
165
166 void CPL_DLL GDALSetGenImgProjTransformerDstGeoTransform( void *,
167 const double * );
168 void CPL_DLL GDALDestroyGenImgProjTransformer( void * );
169 int CPL_DLL GDALGenImgProjTransform(
170 void *pTransformArg, int bDstToSrc, int nPointCount,
171 double *x, double *y, double *z, int *panSuccess );
172
173 void GDALSetTransformerDstGeoTransform( void *, const double * );
174 void GDALGetTransformerDstGeoTransform( void*, double* );
175
176 /* Geo to geo reprojection transformer. */
177 void CPL_DLL *
178 GDALCreateReprojectionTransformer( const char *pszSrcWKT,
179 const char *pszDstWKT );
180 void CPL_DLL *
181 GDALCreateReprojectionTransformerEx(
182 OGRSpatialReferenceH hSrcSRS,
183 OGRSpatialReferenceH hDstSRS,
184 const char* const *papszOptions);
185 void CPL_DLL GDALDestroyReprojectionTransformer( void * );
186 int CPL_DLL GDALReprojectionTransform(
187 void *pTransformArg, int bDstToSrc, int nPointCount,
188 double *x, double *y, double *z, int *panSuccess );
189
190 /* GCP based transformer ... forward is to georef coordinates */
191 void CPL_DLL *
192 GDALCreateGCPTransformer( int nGCPCount, const GDAL_GCP *pasGCPList,
193 int nReqOrder, int bReversed );
194
195 /* GCP based transformer with refinement of the GCPs ... forward is to georef coordinates */
196 void CPL_DLL *
197 GDALCreateGCPRefineTransformer( int nGCPCount, const GDAL_GCP *pasGCPList,
198 int nReqOrder, int bReversed, double tolerance, int minimumGcps);
199
200 void CPL_DLL GDALDestroyGCPTransformer( void *pTransformArg );
201 int CPL_DLL GDALGCPTransform(
202 void *pTransformArg, int bDstToSrc, int nPointCount,
203 double *x, double *y, double *z, int *panSuccess );
204
205 /* Thin Plate Spine transformer ... forward is to georef coordinates */
206
207 void CPL_DLL *
208 GDALCreateTPSTransformer( int nGCPCount, const GDAL_GCP *pasGCPList,
209 int bReversed );
210 void CPL_DLL GDALDestroyTPSTransformer( void *pTransformArg );
211 int CPL_DLL GDALTPSTransform(
212 void *pTransformArg, int bDstToSrc, int nPointCount,
213 double *x, double *y, double *z, int *panSuccess );
214
216 #ifdef GDAL_COMPILATION
217 #define RPCInfoV1ToMD RPCInfoToMD
218 #else
219 #define RPCInfoToMD RPCInfoV2ToMD
220 #endif
221 char CPL_DLL ** RPCInfoV1ToMD( GDALRPCInfoV1 *psRPCInfo );
222 char CPL_DLL ** RPCInfoV2ToMD( GDALRPCInfoV2 *psRPCInfo );
225 /* RPC based transformer ... src is pixel/line/elev, dst is long/lat/elev */
226
228 #ifdef GDAL_COMPILATION
229 #define GDALCreateRPCTransformerV1 GDALCreateRPCTransformer
230 #else
231 #define GDALCreateRPCTransformer GDALCreateRPCTransformerV2
232 #endif
233
234 void CPL_DLL *
235 GDALCreateRPCTransformerV1( GDALRPCInfoV1 *psRPC, int bReversed,
236 double dfPixErrThreshold,
237 char **papszOptions );
240 void CPL_DLL *
241 GDALCreateRPCTransformerV2( const GDALRPCInfoV2 *psRPC, int bReversed,
242 double dfPixErrThreshold,
243 char **papszOptions );
244
245 void CPL_DLL GDALDestroyRPCTransformer( void *pTransformArg );
246 int CPL_DLL GDALRPCTransform(
247 void *pTransformArg, int bDstToSrc, int nPointCount,
248 double *x, double *y, double *z, int *panSuccess );
249
250 /* Geolocation transformer */
251
252 void CPL_DLL *
253 GDALCreateGeoLocTransformer( GDALDatasetH hBaseDS,
254 char **papszGeolocationInfo,
255 int bReversed );
256 void CPL_DLL GDALDestroyGeoLocTransformer( void *pTransformArg );
257 int CPL_DLL GDALGeoLocTransform(
258 void *pTransformArg, int bDstToSrc, int nPointCount,
259 double *x, double *y, double *z, int *panSuccess );
260
261 /* Approximate transformer */
262 void CPL_DLL *
263 GDALCreateApproxTransformer( GDALTransformerFunc pfnRawTransformer,
264 void *pRawTransformerArg, double dfMaxError );
265 void CPL_DLL GDALApproxTransformerOwnsSubtransformer( void *pCBData,
266 int bOwnFlag );
267 void CPL_DLL GDALDestroyApproxTransformer( void *pApproxArg );
268 int CPL_DLL GDALApproxTransform(
269 void *pTransformArg, int bDstToSrc, int nPointCount,
270 double *x, double *y, double *z, int *panSuccess );
271
272 int CPL_DLL CPL_STDCALL
273 GDALSimpleImageWarp( GDALDatasetH hSrcDS,
274 GDALDatasetH hDstDS,
275 int nBandCount, int *panBandList,
276 GDALTransformerFunc pfnTransform,
277 void *pTransformArg,
278 GDALProgressFunc pfnProgress,
279 void *pProgressArg,
280 char **papszWarpOptions );
281
282 CPLErr CPL_DLL CPL_STDCALL
283 GDALSuggestedWarpOutput( GDALDatasetH hSrcDS,
284 GDALTransformerFunc pfnTransformer,
285 void *pTransformArg,
286 double *padfGeoTransformOut,
287 int *pnPixels, int *pnLines );
288 CPLErr CPL_DLL CPL_STDCALL
289 GDALSuggestedWarpOutput2( GDALDatasetH hSrcDS,
290 GDALTransformerFunc pfnTransformer,
291 void *pTransformArg,
292 double *padfGeoTransformOut,
293 int *pnPixels, int *pnLines,
294 double *padfExtents,
295 int nOptions );
296
298 CPLXMLNode CPL_DLL *
299 GDALSerializeTransformer( GDALTransformerFunc pfnFunc, void *pTransformArg );
300 CPLErr CPL_DLL GDALDeserializeTransformer( CPLXMLNode *psTree,
301 GDALTransformerFunc *ppfnFunc,
302 void **ppTransformArg );
305 CPLErr CPL_DLL
306 GDALTransformGeolocations( GDALRasterBandH hXBand,
307 GDALRasterBandH hYBand,
308 GDALRasterBandH hZBand,
309 GDALTransformerFunc pfnTransformer,
310 void *pTransformArg,
311 GDALProgressFunc pfnProgress,
312 void *pProgressArg,
313 char **papszOptions );
314
315 /* -------------------------------------------------------------------- */
316 /* Contour Line Generation */
317 /* -------------------------------------------------------------------- */
318
320 typedef CPLErr (*GDALContourWriter)( double dfLevel, int nPoints,
321 double *padfX, double *padfY, void * );
322
324 typedef void *GDALContourGeneratorH;
325
326 GDALContourGeneratorH CPL_DLL
327 GDAL_CG_Create( int nWidth, int nHeight,
328 int bNoDataSet, double dfNoDataValue,
329 double dfContourInterval, double dfContourBase,
330 GDALContourWriter pfnWriter, void *pCBData );
331 CPLErr CPL_DLL GDAL_CG_FeedLine( GDALContourGeneratorH hCG,
332 double *padfScanline );
333 void CPL_DLL GDAL_CG_Destroy( GDALContourGeneratorH hCG );
334
336 typedef struct
337 {
338 void *hLayer;
339
340 double adfGeoTransform[6];
341
342 int nElevField;
343 int nElevFieldMin;
344 int nElevFieldMax;
345 int nIDField;
346 int nNextID;
347 } OGRContourWriterInfo;
348
349 CPLErr CPL_DLL
350 OGRContourWriter( double, int, double *, double *, void *pInfo );
353 CPLErr CPL_DLL
354 GDALContourGenerate( GDALRasterBandH hBand,
355 double dfContourInterval, double dfContourBase,
356 int nFixedLevelCount, double *padfFixedLevels,
357 int bUseNoData, double dfNoDataValue,
358 void *hLayer, int iIDField, int iElevField,
359 GDALProgressFunc pfnProgress, void *pProgressArg );
360
361 CPLErr CPL_DLL
362 GDALContourGenerateEx( GDALRasterBandH hBand, void *hLayer,
363 CSLConstList options,
364 GDALProgressFunc pfnProgress, void *pProgressArg );
365
366 /* -------------------------------------------------------------------- */
367 /* Viewshed Generation */
368 /* -------------------------------------------------------------------- */
369
371 typedef enum {
372 GVM_Diagonal = 1,
373 GVM_Edge = 2,
374 GVM_Max = 3,
375 GVM_Min = 4
376 } GDALViewshedMode;
377
379 typedef enum {
380 GVOT_NORMAL = 1,
381 GVOT_MIN_TARGET_HEIGHT_FROM_DEM = 2,
382 GVOT_MIN_TARGET_HEIGHT_FROM_GROUND = 3
383 } GDALViewshedOutputType;
384
385 GDALDatasetH CPL_DLL
386 GDALViewshedGenerate(GDALRasterBandH hBand,
387 const char* pszDriverName,
388 const char* pszTargetRasterName,
389 CSLConstList papszCreationOptions,
390 double dfObserverX, double dfObserverY, double dfObserverHeight,
391 double dfTargetHeight, double dfVisibleVal, double dfInvisibleVal,
392 double dfOutOfRangeVal, double dfNoDataVal, double dfCurvCoeff,
393 GDALViewshedMode eMode, double dfMaxDistance,
394 GDALProgressFunc pfnProgress, void *pProgressArg,
395 GDALViewshedOutputType heightMode, CSLConstList papszExtraOptions);
396
397 /************************************************************************/
398 /* Rasterizer API - geometries burned into GDAL raster. */
399 /************************************************************************/
400
401 CPLErr CPL_DLL
402 GDALRasterizeGeometries( GDALDatasetH hDS,
403 int nBandCount, const int *panBandList,
404 int nGeomCount, const OGRGeometryH *pahGeometries,
405 GDALTransformerFunc pfnTransformer,
406 void *pTransformArg,
407 const double *padfGeomBurnValues,
408 CSLConstList papszOptions,
409 GDALProgressFunc pfnProgress,
410 void * pProgressArg );
411
412 CPLErr CPL_DLL
413 GDALRasterizeGeometriesInt64( GDALDatasetH hDS,
414 int nBandCount, const int *panBandList,
415 int nGeomCount, const OGRGeometryH *pahGeometries,
416 GDALTransformerFunc pfnTransformer,
417 void *pTransformArg,
418 const int64_t *panGeomBurnValues,
419 CSLConstList papszOptions,
420 GDALProgressFunc pfnProgress,
421 void * pProgressArg );
422
423 CPLErr CPL_DLL
424 GDALRasterizeLayers( GDALDatasetH hDS,
425 int nBandCount, int *panBandList,
426 int nLayerCount, OGRLayerH *pahLayers,
427 GDALTransformerFunc pfnTransformer,
428 void *pTransformArg,
429 double *padfLayerBurnValues,
430 char **papszOptions,
431 GDALProgressFunc pfnProgress,
432 void *pProgressArg );
433
434 CPLErr CPL_DLL
435 GDALRasterizeLayersBuf( void *pData, int nBufXSize, int nBufYSize,
436 GDALDataType eBufType, int nPixelSpace, int nLineSpace,
437 int nLayerCount, OGRLayerH *pahLayers,
438 const char *pszDstProjection,
439 double *padfDstGeoTransform,
440 GDALTransformerFunc pfnTransformer,
441 void *pTransformArg, double dfBurnValue,
442 char **papszOptions, GDALProgressFunc pfnProgress,
443 void *pProgressArg );
444
445 /************************************************************************/
446 /* Gridding interface. */
447 /************************************************************************/
448
450 typedef enum { GGA_InverseDistanceToAPower = 1, GGA_MovingAverage = 2, GGA_NearestNeighbor = 3, GGA_MetricMinimum = 4, GGA_MetricMaximum = 5, GGA_MetricRange = 6, GGA_MetricCount = 7, GGA_MetricAverageDistance = 8,
460 GGA_MetricAverageDistancePts = 9,
462 GGA_Linear = 10,
464 GGA_InverseDistanceToAPowerNearestNeighbor = 11
465 } GDALGridAlgorithm;
466
468 typedef struct
469 {
471 double dfPower;
473 double dfSmoothing;
475 double dfAnisotropyRatio;
477 double dfAnisotropyAngle;
479 double dfRadius1;
481 double dfRadius2;
486 double dfAngle;
493 GUInt32 nMaxPoints;
499 GUInt32 nMinPoints;
501 double dfNoDataValue;
502 } GDALGridInverseDistanceToAPowerOptions;
503
505 typedef struct
506 {
508 double dfPower;
510 double dfRadius;
512 double dfSmoothing;
513
520 GUInt32 nMaxPoints;
526 GUInt32 nMinPoints;
528 double dfNoDataValue;
529 } GDALGridInverseDistanceToAPowerNearestNeighborOptions;
530
532 typedef struct
533 {
535 double dfRadius1;
537 double dfRadius2;
542 double dfAngle;
548 GUInt32 nMinPoints;
550 double dfNoDataValue;
551 } GDALGridMovingAverageOptions;
552
554 typedef struct
555 {
557 double dfRadius1;
559 double dfRadius2;
564 double dfAngle;
566 double dfNoDataValue;
567 } GDALGridNearestNeighborOptions;
568
570 typedef struct
571 {
573 double dfRadius1;
575 double dfRadius2;
580 double dfAngle;
586 GUInt32 nMinPoints;
588 double dfNoDataValue;
589 } GDALGridDataMetricsOptions;
590
592 typedef struct
593 {
599 double dfRadius;
601 double dfNoDataValue;
602 } GDALGridLinearOptions;
603
604 CPLErr CPL_DLL
605 GDALGridCreate( GDALGridAlgorithm, const void *, GUInt32,
606 const double *, const double *, const double *,
607 double, double, double, double,
608 GUInt32, GUInt32, GDALDataType, void *,
609 GDALProgressFunc, void *);
610
612 typedef struct GDALGridContext GDALGridContext;
613
614 GDALGridContext CPL_DLL*
615 GDALGridContextCreate( GDALGridAlgorithm eAlgorithm, const void *poOptions,
616 GUInt32 nPoints,
617 const double *padfX, const double *padfY, const double *padfZ,
618 int bCallerWillKeepPointArraysAlive );
619
620 void CPL_DLL GDALGridContextFree(GDALGridContext* psContext);
621
622 CPLErr CPL_DLL GDALGridContextProcess(GDALGridContext* psContext,
623 double dfXMin, double dfXMax, double dfYMin, double dfYMax,
624 GUInt32 nXSize, GUInt32 nYSize, GDALDataType eType, void *pData,
625 GDALProgressFunc pfnProgress, void *pProgressArg );
626
627 GDAL_GCP CPL_DLL *
628 GDALComputeMatchingPoints( GDALDatasetH hFirstImage,
629 GDALDatasetH hSecondImage,
630 char **papszOptions,
631 int *pnGCPCount );
632
633 /************************************************************************/
634 /* Delaunay triangulation interface. */
635 /************************************************************************/
636
638 typedef struct
639 {
640 int anVertexIdx[3];
641 int anNeighborIdx[3];
642 /* anNeighborIdx[k] is the triangle to the opposite side */
643 /* of the opposite segment of anVertexIdx[k] */
644 } GDALTriFacet;
645
653 typedef struct
654 {
655 double dfMul1X;
656 double dfMul1Y;
657 double dfMul2X;
658 double dfMul2Y;
659 double dfCstX;
660 double dfCstY;
661 } GDALTriBarycentricCoefficients;
662
664 typedef struct
665 {
666 int nFacets;
667 GDALTriFacet *pasFacets;
668 GDALTriBarycentricCoefficients *pasFacetCoefficients;
669 } GDALTriangulation;
670
671 int CPL_DLL GDALHasTriangulation(void);
672
673 GDALTriangulation CPL_DLL *GDALTriangulationCreateDelaunay(int nPoints,
674 const double* padfX,
675 const double* padfY);
676 int CPL_DLL GDALTriangulationComputeBarycentricCoefficients(
677 GDALTriangulation* psDT,
678 const double* padfX,
679 const double* padfY);
680 int CPL_DLL GDALTriangulationComputeBarycentricCoordinates(
681 const GDALTriangulation* psDT,
682 int nFacetIdx,
683 double dfX,
684 double dfY,
685 double* pdfL1,
686 double* pdfL2,
687 double* pdfL3);
688 int CPL_DLL GDALTriangulationFindFacetBruteForce( const GDALTriangulation* psDT,
689 double dfX,
690 double dfY,
691 int* panOutputFacetIdx );
692 int CPL_DLL GDALTriangulationFindFacetDirected( const GDALTriangulation* psDT,
693 int nFacetIdx,
694 double dfX,
695 double dfY,
696 int* panOutputFacetIdx );
697 void CPL_DLL GDALTriangulationFree(GDALTriangulation* psDT);
698
700 #ifndef CPL_WARN_DEPRECATED_GDALOpenVerticalShiftGrid
701 #define CPL_WARN_DEPRECATED_GDALOpenVerticalShiftGrid CPL_WARN_DEPRECATED
702 #endif
703
705 GDALDatasetH CPL_DLL GDALOpenVerticalShiftGrid(
706 const char* pszProj4Geoidgrids,
707 int* pbError )
709 CPL_WARN_DEPRECATED_GDALOpenVerticalShiftGrid("GDALOpenVerticalShiftGrid() will be removed in GDAL 4.0")
711 ;
712
714 #ifndef CPL_WARN_DEPRECATED_GDALApplyVerticalShiftGrid
715 #define CPL_WARN_DEPRECATED_GDALApplyVerticalShiftGrid CPL_WARN_DEPRECATED
716 #endif
717
719 GDALDatasetH CPL_DLL GDALApplyVerticalShiftGrid( GDALDatasetH hSrcDataset,
720 GDALDatasetH hGridDataset,
721 int bInverse,
722 double dfSrcUnitToMeter,
723 double dfDstUnitToMeter,
724 const char* const* papszOptions )
726 CPL_WARN_DEPRECATED_GDALApplyVerticalShiftGrid("GDALApplyVerticalShiftGrid() will be removed in GDAL 4.0")
728 ;
729
730 CPL_C_END
731
732 #endif /* ndef GDAL_ALG_H_INCLUDED */
GDALTransformGeolocations
CPLErr GDALTransformGeolocations(GDALRasterBandH hXBand, GDALRasterBandH hYBand, GDALRasterBandH hZBand, GDALTransformerFunc pfnTransformer, void *pTransformArg, GDALProgressFunc pfnProgress, void *pProgressArg, char **papszOptions)
Transform locations held in bands.
Definition: gdaltransformgeolocs.cpp:68
GDALGridDataMetricsOptions
Data metrics method control options.
Definition: gdal_alg.h:570
GDALGridContextCreate
GDALGridContext * GDALGridContextCreate(GDALGridAlgorithm eAlgorithm, const void *poOptions, GUInt32 nPoints, const double *padfX, const double *padfY, const double *padfZ, int bCallerWillKeepPointArraysAlive)
Creates a context to do regular gridding from the scattered data.
Definition: gdalgrid.cpp:2015
GDALDestroyGenImgProjTransformer
void GDALDestroyGenImgProjTransformer(void *)
GenImgProjTransformer deallocator.
Definition: gdaltransformer.cpp:2533
GByte
unsigned char GByte
Unsigned byte type.
Definition: cpl_port.h:203
GGA_Linear
@ GGA_Linear
Definition: gdal_alg.h:462
GDALCreateGenImgProjTransformer4
void * GDALCreateGenImgProjTransformer4(OGRSpatialReferenceH hSrcSRS, const double *padfSrcGeoTransform, OGRSpatialReferenceH hDstSRS, const double *padfDstGeoTransform, const char *const *papszOptions)
Create image to image transformer.
Definition: gdaltransformer.cpp:2393
gdal.h
GDALGCPTransform
int GDALGCPTransform(void *pTransformArg, int bDstToSrc, int nPointCount, double *x, double *y, double *z, int *panSuccess)
Transforms point based on GCP derived polynomial model.
Definition: gdal_crs.cpp:409
GDALDestroyGeoLocTransformer
void GDALDestroyGeoLocTransformer(void *pTransformArg)
Destroy GeoLocation transformer.
Definition: gdalgeoloc.cpp:1726
GDALGridDataMetricsOptions::dfRadius2
double dfRadius2
Definition: gdal_alg.h:575
GDALCreateReprojectionTransformerEx
void * GDALCreateReprojectionTransformerEx(OGRSpatialReferenceH hSrcSRS, OGRSpatialReferenceH hDstSRS, const char *const *papszOptions)
Create reprojection transformer.
Definition: gdaltransformer.cpp:3121
GDALComputeMedianCutPCT
int GDALComputeMedianCutPCT(GDALRasterBandH hRed, GDALRasterBandH hGreen, GDALRasterBandH hBlue, int(*pfnIncludePixel)(int, int, void *), int nColors, GDALColorTableH hColorTable, GDALProgressFunc pfnProgress, void *pProgressArg)
Compute optimal PCT for RGB image.
Definition: gdalmediancut.cpp:147
GDAL_CG_Destroy
void GDAL_CG_Destroy(GDALContourGeneratorH hCG)
Destroy contour generator.
Definition: contour.cpp:746
GDALTransformerFunc
int(* GDALTransformerFunc)(void *pTransformerArg, int bDstToSrc, int nPointCount, double *x, double *y, double *z, int *panSuccess)
Definition: gdal_alg.h:115
GDALCreateGCPTransformer
void * GDALCreateGCPTransformer(int nGCPCount, const GDAL_GCP *pasGCPList, int nReqOrder, int bReversed)
Create GCP based polynomial transformer.
Definition: gdal_crs.cpp:330
GDALTriangulation::pasFacetCoefficients
GDALTriBarycentricCoefficients * pasFacetCoefficients
arra of nFacets barycentric coefficients
Definition: gdal_alg.h:668
GDALGridDataMetricsOptions::nMinPoints
GUInt32 nMinPoints
Definition: gdal_alg.h:586
GDALCreateGenImgProjTransformer3
void * GDALCreateGenImgProjTransformer3(const char *pszSrcWKT, const double *padfSrcGeoTransform, const char *pszDstWKT, const double *padfDstGeoTransform)
Create image to image transformer.
Definition: gdaltransformer.cpp:2338
cpl_minixml.h
GDALSieveFilter
CPLErr GDALSieveFilter(GDALRasterBandH hSrcBand, GDALRasterBandH hMaskBand, GDALRasterBandH hDstBand, int nSizeThreshold, int nConnectedness, char **papszOptions, GDALProgressFunc pfnProgress, void *pProgressArg)
Removes small raster polygons.
Definition: gdalsievefilter.cpp:200
GDALViewshedOutputType
GDALViewshedOutputType
Viewshed output types.
Definition: gdal_alg.h:379
GDALContourGenerate
CPLErr GDALContourGenerate(GDALRasterBandH hBand, double dfContourInterval, double dfContourBase, int nFixedLevelCount, double *padfFixedLevels, int bUseNoData, double dfNoDataValue, void *hLayer, int iIDField, int iElevField, GDALProgressFunc pfnProgress, void *pProgressArg)
Create vector contours from raster DEM.
Definition: contour.cpp:310
GDALGridInverseDistanceToAPowerOptions::dfAnisotropyAngle
double dfAnisotropyAngle
Definition: gdal_alg.h:477
GDALColorTableH
void * GDALColorTableH
Opaque type used for the C bindings of the C++ GDALColorTable class.
Definition: gdal.h:278
GGA_MovingAverage
@ GGA_MovingAverage
Definition: gdal_alg.h:452
GDALApplyVerticalShiftGrid
GDALDatasetH GDALApplyVerticalShiftGrid(GDALDatasetH hSrcDataset, GDALDatasetH hGridDataset, int bInverse, double dfSrcUnitToMeter, double dfDstUnitToMeter, const char *const *papszOptions)
Apply a vertical shift grid to a source (DEM typically) dataset.
Definition: gdalapplyverticalshiftgrid.cpp:376
GGA_MetricCount
@ GGA_MetricCount
Definition: gdal_alg.h:457
GDALSuggestedWarpOutput2
CPLErr GDALSuggestedWarpOutput2(GDALDatasetH hSrcDS, GDALTransformerFunc pfnTransformer, void *pTransformArg, double *padfGeoTransformOut, int *pnPixels, int *pnLines, double *padfExtents, int nOptions)
Suggest output file size.
Definition: gdaltransformer.cpp:408
GDALSuggestedWarpOutput
CPLErr GDALSuggestedWarpOutput(GDALDatasetH hSrcDS, GDALTransformerFunc pfnTransformer, void *pTransformArg, double *padfGeoTransformOut, int *pnPixels, int *pnLines)
Suggest output file size.
Definition: gdaltransformer.cpp:231
GDALComputeMatchingPoints
GDAL_GCP * GDALComputeMatchingPoints(GDALDatasetH hFirstImage, GDALDatasetH hSecondImage, char **papszOptions, int *pnGCPCount)
GDALComputeMatchingPoints.
Definition: gdalmatching.cpp:188
GGA_InverseDistanceToAPowerNearestNeighbor
@ GGA_InverseDistanceToAPowerNearestNeighbor
Definition: gdal_alg.h:464
GDALGridMovingAverageOptions::nMinPoints
GUInt32 nMinPoints
Definition: gdal_alg.h:548
GDALGridInverseDistanceToAPowerOptions::nMaxPoints
GUInt32 nMaxPoints
Definition: gdal_alg.h:493
GDALTriangulationComputeBarycentricCoordinates
int GDALTriangulationComputeBarycentricCoordinates(const GDALTriangulation *psDT, int nFacetIdx, double dfX, double dfY, double *pdfL1, double *pdfL2, double *pdfL3)
Computes the barycentric coordinates of a point.
Definition: delaunay.c:378
GDALGridInverseDistanceToAPowerNearestNeighborOptions::dfNoDataValue
double dfNoDataValue
Definition: gdal_alg.h:528
GDALRasterizeLayersBuf
CPLErr GDALRasterizeLayersBuf(void *pData, int nBufXSize, int nBufYSize, GDALDataType eBufType, int nPixelSpace, int nLineSpace, int nLayerCount, OGRLayerH *pahLayers, const char *pszDstProjection, double *padfDstGeoTransform, GDALTransformerFunc pfnTransformer, void *pTransformArg, double dfBurnValue, char **papszOptions, GDALProgressFunc pfnProgress, void *pProgressArg)
Burn geometries from the specified list of layer into raster.
Definition: gdalrasterize.cpp:1772
GDALDataType
GDALDataType
Definition: gdal.h:63
CPLXMLNode
Document node structure.
Definition: cpl_minixml.h:69
GDALComputeProximity
CPLErr GDALComputeProximity(GDALRasterBandH hSrcBand, GDALRasterBandH hProximityBand, char **papszOptions, GDALProgressFunc pfnProgress, void *pProgressArg)
Compute the proximity of all pixels in the image to a set of pixels in the source image.
Definition: gdalproximity.cpp:112
GDALViewshedMode
GDALViewshedMode
Viewshed Modes.
Definition: gdal_alg.h:371
GDALGridInverseDistanceToAPowerNearestNeighborOptions::nMinPoints
GUInt32 nMinPoints
Definition: gdal_alg.h:526
GDALGridLinearOptions::dfNoDataValue
double dfNoDataValue
Definition: gdal_alg.h:601
GDALGridInverseDistanceToAPowerNearestNeighborOptions
Inverse distance to a power, with nearest neighbour search, control options.
Definition: gdal_alg.h:505
GDALGridInverseDistanceToAPowerOptions::nMinPoints
GUInt32 nMinPoints
Definition: gdal_alg.h:499
GDALPolygonize
CPLErr GDALPolygonize(GDALRasterBandH hSrcBand, GDALRasterBandH hMaskBand, OGRLayerH hOutLayer, int iPixValField, char **papszOptions, GDALProgressFunc pfnProgress, void *pProgressArg)
Create polygon coverage from raster data.
Definition: polygonize.cpp:953
GDALGridLinearOptions::dfRadius
double dfRadius
Definition: gdal_alg.h:599
GDALGridDataMetricsOptions::dfNoDataValue
double dfNoDataValue
Definition: gdal_alg.h:588
GDALGetTransformerDstGeoTransform
void GDALGetTransformerDstGeoTransform(void *, double *)
Get ApproxTransformer or GenImgProj output geotransform.
Definition: gdaltransformer.cpp:4609
GDALDestroyApproxTransformer
void GDALDestroyApproxTransformer(void *pApproxArg)
Cleanup approximate transformer.
Definition: gdaltransformer.cpp:3620
GDALTriangulationFindFacetDirected
int GDALTriangulationFindFacetDirected(const GDALTriangulation *psDT, int nFacetIdx, double dfX, double dfY, int *panOutputFacetIdx)
Returns the index of the triangle that contains the point by walking in the triangulation.
Definition: delaunay.c:521
GDALGridInverseDistanceToAPowerNearestNeighborOptions::dfRadius
double dfRadius
Definition: gdal_alg.h:510
CPL_C_START
#define CPL_C_START
Macro to start a block of C symbols.
Definition: cpl_port.h:301
GDALTriBarycentricCoefficients::dfCstY
double dfCstY
dfCstY
Definition: gdal_alg.h:660
OGRSpatialReferenceH
void * OGRSpatialReferenceH
Opaque type for a spatial reference system.
Definition: ogr_api.h:80
GDALGridInverseDistanceToAPowerOptions::dfSmoothing
double dfSmoothing
Definition: gdal_alg.h:473
GDALRasterizeGeometriesInt64
CPLErr GDALRasterizeGeometriesInt64(GDALDatasetH hDS, int nBandCount, const int *panBandList, int nGeomCount, const OGRGeometryH *pahGeometries, GDALTransformerFunc pfnTransformer, void *pTransformArg, const int64_t *panGeomBurnValues, CSLConstList papszOptions, GDALProgressFunc pfnProgress, void *pProgressArg)
Burn geometries into raster.
Definition: gdalrasterize.cpp:912
GDALTriangulationFree
void GDALTriangulationFree(GDALTriangulation *psDT)
Free a triangulation.
Definition: delaunay.c:275
GDALGridMovingAverageOptions::dfRadius2
double dfRadius2
Definition: gdal_alg.h:537
GDALContourWriter
CPLErr(* GDALContourWriter)(double dfLevel, int nPoints, double *padfX, double *padfY, void *)
Contour writer callback type.
Definition: gdal_alg.h:320
GDALCreateGeoLocTransformer
void * GDALCreateGeoLocTransformer(GDALDatasetH hBaseDS, char **papszGeolocationInfo, int bReversed)
Create GeoLocation transformer.
Definition: gdalgeoloc.cpp:1712
GDALTriangulation::nFacets
int nFacets
number of facets
Definition: gdal_alg.h:666
GDALCreateApproxTransformer
void * GDALCreateApproxTransformer(GDALTransformerFunc pfnRawTransformer, void *pRawTransformerArg, double dfMaxError)
Create an approximating transformer.
Definition: gdaltransformer.cpp:3556
GDALDestroyRPCTransformer
void GDALDestroyRPCTransformer(void *pTransformArg)
Destroy RPC tranformer.
Definition: gdal_rpc.cpp:1105
GDAL_CG_FeedLine
CPLErr GDAL_CG_FeedLine(GDALContourGeneratorH hCG, double *padfScanline)
Feed a line to the contour generator.
Definition: contour.cpp:734
GDALCreateRPCTransformerV2
void * GDALCreateRPCTransformerV2(const GDALRPCInfoV2 *psRPC, int bReversed, double dfPixErrThreshold, char **papszOptions)
Create an RPC based transformer.
Definition: gdal_rpc.cpp:817
GDALCreateGCPRefineTransformer
void * GDALCreateGCPRefineTransformer(int nGCPCount, const GDAL_GCP *pasGCPList, int nReqOrder, int bReversed, double tolerance, int minimumGcps)
Create GCP based polynomial transformer, with a tolerance threshold to discard GCPs that transform ba...
Definition: gdal_crs.cpp:340
CSLConstList
char ** CSLConstList
Type of a constant null-terminated list of nul terminated strings.
Definition: cpl_port.h:1053
GDALGridInverseDistanceToAPowerOptions::dfPower
double dfPower
Definition: gdal_alg.h:471
GDALRPCTransform
int GDALRPCTransform(void *pTransformArg, int bDstToSrc, int nPointCount, double *x, double *y, double *z, int *panSuccess)
RPC transform.
Definition: gdal_rpc.cpp:2098
GDALGridMovingAverageOptions
Moving average method control options.
Definition: gdal_alg.h:532
GDALGeoLocTransform
int GDALGeoLocTransform(void *pTransformArg, int bDstToSrc, int nPointCount, double *x, double *y, double *z, int *panSuccess)
Use GeoLocation transformer.
Definition: gdalgeoloc.cpp:1757
GDAL_GCP
Ground Control Point.
Definition: gdal.h:732
CPL_C_END
#define CPL_C_END
Macro to end a block of C symbols.
Definition: cpl_port.h:303
GDALFillNodata
CPLErr GDALFillNodata(GDALRasterBandH hTargetBand, GDALRasterBandH hMaskBand, double dfMaxSearchDist, int bDeprecatedOption, int nSmoothingIterations, char **papszOptions, GDALProgressFunc pfnProgress, void *pProgressArg)
Fill selected raster regions by interpolation from the edges.
Definition: rasterfill.cpp:413
GDALDestroyGCPTransformer
void GDALDestroyGCPTransformer(void *pTransformArg)
Destroy GCP transformer.
Definition: gdal_crs.cpp:367
GDALGridLinearOptions
Linear method control options.
Definition: gdal_alg.h:592
GDALDestroyTPSTransformer
void GDALDestroyTPSTransformer(void *pTransformArg)
Destroy TPS transformer.
Definition: gdal_tps.cpp:313
GDALViewshedGenerate
GDALDatasetH GDALViewshedGenerate(GDALRasterBandH hBand, const char *pszDriverName, const char *pszTargetRasterName, CSLConstList papszCreationOptions, double dfObserverX, double dfObserverY, double dfObserverHeight, double dfTargetHeight, double dfVisibleVal, double dfInvisibleVal, double dfOutOfRangeVal, double dfNoDataVal, double dfCurvCoeff, GDALViewshedMode eMode, double dfMaxDistance, GDALProgressFunc pfnProgress, void *pProgressArg, GDALViewshedOutputType heightMode, CSLConstList papszExtraOptions)
Create viewshed from raster DEM.
Definition: viewshed.cpp:202
GDAL_CG_Create
GDALContourGeneratorH GDAL_CG_Create(int nWidth, int nHeight, int bNoDataSet, double dfNoDataValue, double dfContourInterval, double dfContourBase, GDALContourWriter pfnWriter, void *pCBData)
Create contour generator.
Definition: contour.cpp:712
GDALCreateGenImgProjTransformer
void * GDALCreateGenImgProjTransformer(GDALDatasetH hSrcDS, const char *pszSrcWKT, GDALDatasetH hDstDS, const char *pszDstWKT, int bGCPUseOK, double dfGCPErrorThreshold, int nOrder)
Create image to image transformer.
Definition: gdaltransformer.cpp:1305
GDALGridInverseDistanceToAPowerNearestNeighborOptions::dfSmoothing
double dfSmoothing
Definition: gdal_alg.h:512
GDALCreateReprojectionTransformer
void * GDALCreateReprojectionTransformer(const char *pszSrcWKT, const char *pszDstWKT)
Create reprojection transformer.
Definition: gdaltransformer.cpp:3050
GDALTriFacet
Triangle fact.
Definition: gdal_alg.h:638
GDALGridInverseDistanceToAPowerOptions::dfRadius2
double dfRadius2
Definition: gdal_alg.h:481
GDALDestroyReprojectionTransformer
void GDALDestroyReprojectionTransformer(void *)
Destroy reprojection transformation.
Definition: gdaltransformer.cpp:3220
GDALFPolygonize
CPLErr GDALFPolygonize(GDALRasterBandH hSrcBand, GDALRasterBandH hMaskBand, OGRLayerH hOutLayer, int iPixValField, char **papszOptions, GDALProgressFunc pfnProgress, void *pProgressArg)
Create polygon coverage from raster data.
Definition: polygonize.cpp:1032
GDALGridNearestNeighborOptions
Nearest neighbor method control options.
Definition: gdal_alg.h:554
GDALTPSTransform
int GDALTPSTransform(void *pTransformArg, int bDstToSrc, int nPointCount, double *x, double *y, double *z, int *panSuccess)
Transforms point based on GCP derived polynomial model.
Definition: gdal_tps.cpp:358
GDALGridContextFree
void GDALGridContextFree(GDALGridContext *psContext)
Free a context used created by GDALGridContextCreate()
Definition: gdalgrid.cpp:2450
OGRGeometryH
void * OGRGeometryH
Opaque type for a geometry.
Definition: ogr_api.h:65
GDALGridMovingAverageOptions::dfNoDataValue
double dfNoDataValue
Definition: gdal_alg.h:550
GDALApproxTransformerOwnsSubtransformer
void GDALApproxTransformerOwnsSubtransformer(void *pCBData, int bOwnFlag)
Set bOwnSubtransformer flag.
Definition: gdaltransformer.cpp:3599
GDALGridNearestNeighborOptions::dfAngle
double dfAngle
Definition: gdal_alg.h:564
GDALTriBarycentricCoefficients::dfMul1Y
double dfMul1Y
dfMul1Y
Definition: gdal_alg.h:656
GDALSetGenImgProjTransformerDstGeoTransform
void GDALSetGenImgProjTransformerDstGeoTransform(void *, const double *)
Set GenImgProj output geotransform.
Definition: gdaltransformer.cpp:2502
GDALSetTransformerDstGeoTransform
void GDALSetTransformerDstGeoTransform(void *, const double *)
Set ApproxTransformer or GenImgProj output geotransform.
Definition: gdaltransformer.cpp:4585
GDALCreateTPSTransformer
void * GDALCreateTPSTransformer(int nGCPCount, const GDAL_GCP *pasGCPList, int bReversed)
Create Thin Plate Spline transformer from GCPs.
Definition: gdal_tps.cpp:144
GGA_MetricAverageDistancePts
@ GGA_MetricAverageDistancePts
Definition: gdal_alg.h:460
GDALGridNearestNeighborOptions::dfRadius2
double dfRadius2
Definition: gdal_alg.h:559
GDALTriBarycentricCoefficients::dfMul1X
double dfMul1X
dfMul1X
Definition: gdal_alg.h:655
GDALGridNearestNeighborOptions::dfNoDataValue
double dfNoDataValue
Definition: gdal_alg.h:566
GGA_MetricRange
@ GGA_MetricRange
Definition: gdal_alg.h:456
GDALGridDataMetricsOptions::dfRadius1
double dfRadius1
Definition: gdal_alg.h:573
GDALApproxTransform
int GDALApproxTransform(void *pTransformArg, int bDstToSrc, int nPointCount, double *x, double *y, double *z, int *panSuccess)
Perform approximate transformation.
Definition: gdaltransformer.cpp:3948
GDALContourGeneratorH
void * GDALContourGeneratorH
Contour generator opaque type.
Definition: gdal_alg.h:324
GDALGenImgProjTransform
int GDALGenImgProjTransform(void *pTransformArg, int bDstToSrc, int nPointCount, double *x, double *y, double *z, int *panSuccess)
Perform general image reprojection transformation.
Definition: gdaltransformer.cpp:2571
GDALRasterizeGeometries
CPLErr GDALRasterizeGeometries(GDALDatasetH hDS, int nBandCount, const int *panBandList, int nGeomCount, const OGRGeometryH *pahGeometries, GDALTransformerFunc pfnTransformer, void *pTransformArg, const double *padfGeomBurnValues, CSLConstList papszOptions, GDALProgressFunc pfnProgress, void *pProgressArg)
Burn geometries into raster.
Definition: gdalrasterize.cpp:879
GDALTriangulation::pasFacets
GDALTriFacet * pasFacets
array of nFacets facets
Definition: gdal_alg.h:667
GDALContourGenerateEx
CPLErr GDALContourGenerateEx(GDALRasterBandH hBand, void *hLayer, CSLConstList options, GDALProgressFunc pfnProgress, void *pProgressArg)
Create vector contours from raster DEM.
Definition: contour.cpp:523
GDALGridInverseDistanceToAPowerOptions::dfAnisotropyRatio
double dfAnisotropyRatio
Definition: gdal_alg.h:475
GDALGridContext
struct GDALGridContext GDALGridContext
Grid context opaque type.
Definition: gdal_alg.h:612
GDALOpenVerticalShiftGrid
GDALDatasetH GDALOpenVerticalShiftGrid(const char *pszProj4Geoidgrids, int *pbError)
Load proj.4 geoidgrids as GDAL dataset.
Definition: gdalapplyverticalshiftgrid.cpp:619
GDALGridMovingAverageOptions::dfRadius1
double dfRadius1
Definition: gdal_alg.h:535
ogr_api.h
GDALChecksumImage
int GDALChecksumImage(GDALRasterBandH hBand, int nXOff, int nYOff, int nXSize, int nYSize)
Compute checksum for image region.
Definition: gdalchecksum.cpp:66
GDALSimpleImageWarp
int GDALSimpleImageWarp(GDALDatasetH hSrcDS, GDALDatasetH hDstDS, int nBandCount, int *panBandList, GDALTransformerFunc pfnTransform, void *pTransformArg, GDALProgressFunc pfnProgress, void *pProgressArg, char **papszWarpOptions)
Perform simple image warp.
Definition: gdalsimplewarp.cpp:230
GDALGridNearestNeighborOptions::dfRadius1
double dfRadius1
Definition: gdal_alg.h:557
GDALDitherRGB2PCT
int GDALDitherRGB2PCT(GDALRasterBandH hRed, GDALRasterBandH hGreen, GDALRasterBandH hBlue, GDALRasterBandH hTarget, GDALColorTableH hColorTable, GDALProgressFunc pfnProgress, void *pProgressArg)
24bit to 8bit conversion with dithering.
Definition: gdaldither.cpp:147
CPLErr
CPLErr
Error category.
Definition: cpl_error.h:52
GDALCreateGenImgProjTransformer2
void * GDALCreateGenImgProjTransformer2(GDALDatasetH hSrcDS, GDALDatasetH hDstDS, char **papszOptions)
Create image to image transformer.
Definition: gdaltransformer.cpp:1696
GDALTriBarycentricCoefficients::dfMul2Y
double dfMul2Y
dfMul2Y
Definition: gdal_alg.h:658
GDALHasTriangulation
int GDALHasTriangulation(void)
Returns if GDAL is built with Delaunay triangulation support.
Definition: delaunay.c:92
GDALTriBarycentricCoefficients::dfMul2X
double dfMul2X
dfMul2X
Definition: gdal_alg.h:657
GDALReprojectionTransform
int GDALReprojectionTransform(void *pTransformArg, int bDstToSrc, int nPointCount, double *x, double *y, double *z, int *panSuccess)
Perform reprojection transformation.
Definition: gdaltransformer.cpp:3253
GDALGridInverseDistanceToAPowerOptions::dfNoDataValue
double dfNoDataValue
Definition: gdal_alg.h:501
GDALGridDataMetricsOptions::dfAngle
double dfAngle
Definition: gdal_alg.h:580
GDALGridInverseDistanceToAPowerNearestNeighborOptions::dfPower
double dfPower
Definition: gdal_alg.h:508
GDALGridInverseDistanceToAPowerOptions::dfAngle
double dfAngle
Definition: gdal_alg.h:486
GDALTriangulationComputeBarycentricCoefficients
int GDALTriangulationComputeBarycentricCoefficients(GDALTriangulation *psDT, const double *padfX, const double *padfY)
Computes barycentric coefficients for each triangles of the triangulation.
Definition: delaunay.c:301
GDALGridMovingAverageOptions::dfAngle
double dfAngle
Definition: gdal_alg.h:542
GDALGridCreate
CPLErr GDALGridCreate(GDALGridAlgorithm, const void *, GUInt32, const double *, const double *, const double *, double, double, double, double, GUInt32, GUInt32, GDALDataType, void *, GDALProgressFunc, void *)
Create regular grid from the scattered data.
Definition: gdalgrid.cpp:2743
GDALTriangulationCreateDelaunay
GDALTriangulation * GDALTriangulationCreateDelaunay(int nPoints, const double *padfX, const double *padfY)
Computes a Delaunay triangulation of the passed points.
Definition: delaunay.c:115
GGA_NearestNeighbor
@ GGA_NearestNeighbor
Definition: gdal_alg.h:453
GGA_MetricMaximum
@ GGA_MetricMaximum
Definition: gdal_alg.h:455
GDALGridInverseDistanceToAPowerOptions
Inverse distance to a power method control options.
Definition: gdal_alg.h:468
GDALRasterizeLayers
CPLErr GDALRasterizeLayers(GDALDatasetH hDS, int nBandCount, int *panBandList, int nLayerCount, OGRLayerH *pahLayers, GDALTransformerFunc pfnTransformer, void *pTransformArg, double *padfLayerBurnValues, char **papszOptions, GDALProgressFunc pfnProgress, void *pProgressArg)
Burn geometries from the specified list of layers into raster.
Definition: gdalrasterize.cpp:1379
GGA_MetricAverageDistance
@ GGA_MetricAverageDistance
Definition: gdal_alg.h:458
GGA_InverseDistanceToAPower
@ GGA_InverseDistanceToAPower
Definition: gdal_alg.h:451
GDALTriBarycentricCoefficients
Triangle barycentric coefficients.
Definition: gdal_alg.h:653
GDALRPCInfoV2
Structure to store Rational Polynomial Coefficients / Rigorous Projection Model.
Definition: gdal.h:1281
OGRLayerH
void * OGRLayerH
Opaque type for a layer (OGRLayer)
Definition: ogr_api.h:590
GDALGridAlgorithm
GDALGridAlgorithm
Gridding Algorithms.
Definition: gdal_alg.h:450
GDALRasterBandH
void * GDALRasterBandH
Opaque type used for the C bindings of the C++ GDALRasterBand class.
Definition: gdal.h:272
GDALTriangulation
Triangulation structure.
Definition: gdal_alg.h:664
GDALGridInverseDistanceToAPowerOptions::dfRadius1
double dfRadius1
Definition: gdal_alg.h:479
GDALDatasetH
void * GDALDatasetH
Opaque type used for the C bindings of the C++ GDALDataset class.
Definition: gdal.h:269
GDALGridContextProcess
CPLErr GDALGridContextProcess(GDALGridContext *psContext, double dfXMin, double dfXMax, double dfYMin, double dfYMax, GUInt32 nXSize, GUInt32 nYSize, GDALDataType eType, void *pData, GDALProgressFunc pfnProgress, void *pProgressArg)
Do the gridding of a window of a raster.
Definition: gdalgrid.cpp:2504
GDALTriBarycentricCoefficients::dfCstX
double dfCstX
dfCstX
Definition: gdal_alg.h:659
GDALTriangulationFindFacetBruteForce
int GDALTriangulationFindFacetBruteForce(const GDALTriangulation *psDT, double dfX, double dfY, int *panOutputFacetIdx)
Returns the index of the triangle that contains the point by iterating over all triangles.
Definition: delaunay.c:426
GDALGridInverseDistanceToAPowerNearestNeighborOptions::nMaxPoints
GUInt32 nMaxPoints
Definition: gdal_alg.h:520
GGA_MetricMinimum
@ GGA_MetricMinimum
Definition: gdal_alg.h:454
GUInt32
unsigned int GUInt32
Unsigned int32 type.
Definition: cpl_port.h:195