[gdal-dev] using GDALGridCreate in python?

Even Rouault even.rouault at mines-paris.org
Tue Aug 30 17:04:57 EDT 2011


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 :
> >> Hi,
> >> 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.

> 
> matt
> 
> >> thanks
> >> matt
> >> 
> >> _______________________________________________
> >> gdal-dev mailing list
> >> gdal-dev at lists.osgeo.org
> >> http://lists.osgeo.org/mailman/listinfo/gdal-dev
> > 
> > _______________________________________________
> > gdal-dev mailing list
> > gdal-dev at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/gdal-dev
> 
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev


More information about the gdal-dev mailing list