[gdal-dev] using GDALGridCreate in python?
matze999 at gmail.com
Tue Sep 6 12:25:04 EDT 2011
you mentioned in your previous email that the GDALGridCreate() fcn has
only been mapped to Java bindings (I am assuming this is already the
case for the the latest stable (1.8.1) release)? If so, can you point me
to the interface file in which this is implemented? Doing a find/grep i
could not find it.
On 9/1/2011 10:10 AM, Matt Funk wrote:
> i got a question on using the gdal_grid utility:
> My input file looks like:
> I use gdal_grid:
> "C:\software\gdal\gdalwin32-1.6\bin\gdal_grid.exe" -a
> invdist:power=2.0:smoothing=1.0 -txe 2 24 -tye -117 -92 -outsize 50 50
> -of GTiff -ot Float64 -l dust_t1735 dust_t1735.vrt dust_t1735.tiff
> The tiff file is generated, but when i try to open it, but i cannot open
> it and the file is somehow corrupted. For the experts on this utility,
> am i doing something obviously wrong?
> On 8/30/2011 3:04 PM, Even Rouault wrote:
>> Le mardi 30 août 2011 22:57:34, Matt Funk a écrit :
>>> On 8/30/2011 1:39 PM, Even Rouault wrote:
>>>> Le mardi 30 août 2011 21:28:11, Matt Funk a écrit :
>>>>> i have several satellite scenes which basically give me 3 vectors:
>>>>> lat/lon/data which is on an irregular. I would like to interpolate those
>>>>> onto a regular grid. I found that GDALGridCreate would meet my need
>>>>> except that i am developing in python, but it appears the bindings for
>>>>> it don't exist (unless i am mistaken).
>>>>> So my question is whether someone knows of an alternative route to
>>>>> accomplish this or whether i am possible wrong in that i cannot use
>>>>> GDALGridCreate in python?
>>>> Yes, you cannot use GDALGridCreate() in python. It has only been mapped
>>>> to Java bindings for now. You can as a workaround for a process with the
>>>> gdal_grid utility.
>>> I have never used the gdal_grid utility. Outside of its manpage
>>> (http://www.gdal.org/gdal_grid.html) i haven't found any usage examples.
>> That's already a beginning ;-)
>>> As far as inputs are concerned it talks about csv file. Are there other
>>> input formats.
>> All OGR supported formats : http://gdal.org/ogr/ogr_formats.html
>>> Also, this might be a dumb question, but would it be of any value to
>>> call the compiled c-gdal library directly from my python code?
>> Possibly, but someone has to code the missing python swig typemaps however.
>>>>> gdal-dev mailing list
>>>>> gdal-dev at lists.osgeo.org
>>>> gdal-dev mailing list
>>>> gdal-dev at lists.osgeo.org
>>> gdal-dev mailing list
>>> gdal-dev at lists.osgeo.org
Plant and Environmental Scienc. Dept.
New Mexico State University
More information about the gdal-dev