[gdal-dev] GDAL_GRID Dateline Issue

Joaquim Luis jluis at ualg.pt
Thu Dec 27 11:44:10 PST 2012


On 27-12-2012 19:22, Even Rouault wrote:
> Le jeudi 27 décembre 2012 20:14:40, Andrew Smith a écrit :
>> Hi,
>>
>> I am trying to use gdal_grid to interpolate some data and I am having
>> trouble making gdal_grid treat spatial data (WGS84 lat/lon coordinates) as
>> points on a continuous plane.  It seems to be ignoring the dateline so for
>> example values at 45, 179 are not properly interacting with values at 45,
>> -179 and so on.  I'm using the following gdal_grid command:
>>
> Yes gdal_grid is completely unaware of dateline issues. One way to fix this is
> to duplicate the lines of your csv file by adding 360 to the longitude of the
> original lines.
>


GMT is well aware that the Earth is round and will take care of this 
problem. If you are creating a grid (floats) try 'surface' or one of the 
other interpolator.

Joaquim


More information about the gdal-dev mailing list