00001 /****************************************************************************** 00002 * $Id: gdalgrid.h 13023 2007-11-25 17:21:07Z dron $ 00003 * 00004 * Project: GDAL Gridding API. 00005 * Purpose: Prototypes, and definitions for of GDAL scattered data gridder. 00006 * Author: Andrey Kiselev, dron@ak4719.spb.edu 00007 * 00008 ****************************************************************************** 00009 * Copyright (c) 2007, Andrey Kiselev <dron@ak4719.spb.edu> 00010 * 00011 * Permission is hereby granted, free of charge, to any person obtaining a 00012 * copy of this software and associated documentation files (the "Software"), 00013 * to deal in the Software without restriction, including without limitation 00014 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 00015 * and/or sell copies of the Software, and to permit persons to whom the 00016 * Software is furnished to do so, subject to the following conditions: 00017 * 00018 * The above copyright notice and this permission notice shall be included 00019 * in all copies or substantial portions of the Software. 00020 * 00021 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00022 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00023 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 00024 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 00025 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 00026 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 00027 * DEALINGS IN THE SOFTWARE. 00028 ****************************************************************************/ 00029 00030 #ifndef GDALGRID_H_INCLUDED 00031 #define GDALGRID_H_INCLUDED 00032 00039 #include "gdal_alg.h" 00040 00041 CPL_C_START 00042 00043 typedef CPLErr (*GDALGridFunction)( const void *, GUInt32, 00044 const double *, const double *, 00045 const double *, 00046 double, double, double *); 00047 CPLErr 00048 GDALGridInverseDistanceToAPower( const void *, GUInt32, 00049 const double *, const double *, 00050 const double *, 00051 double, double, double * ); 00052 CPLErr 00053 GDALGridInverseDistanceToAPowerNoSearch( const void *, GUInt32, 00054 const double *, const double *, 00055 const double *, 00056 double, double, double * ); 00057 CPLErr 00058 GDALGridMovingAverage( const void *, GUInt32, 00059 const double *, const double *, const double *, 00060 double, double, double * ); 00061 CPLErr 00062 GDALGridNearestNeighbor( const void *, GUInt32, 00063 const double *, const double *, const double *, 00064 double, double, double * ); 00065 CPL_C_END 00066 00067 #endif /* GDALGRID_H_INCLUDED */