[Gdal-dev] gdal_grid: Comments from a new player

Andrey Kiselev dron at ak4719.spb.edu
Tue Jun 3 10:30:12 EDT 2008


On Mon, Jun 02, 2008 at 04:20:09PM -0700, Fodder wrote:
> I have attached the vrt file, the commandline, I have used is:
> 
> gdal_grid -a
> invdist:power=2.0:smoothing=0.0:radius1=0.0:radius2=0.0:angle=0.0:max_points=0:min_points=0:nodata=-1000000000
> -txe 322435.436500705 326982.517891606 -tye 6366087.01529708
> 6369483.98111739 -outsize 937 700 -of EHdr -ot Float32 -l gdalgrid
> "gdalgrid.vrt" "rain_stations.flt"
> 
> The .hdr file that is created contains the tag 'ULYMAP        
> 6366089.44170124' which seem to be creating problems for me since that is
> the YMin coord for the grid.

Ah, I see where the problem is. The origin of coordinate system is a top
left corner of the image, so in your case the YMin will be
6369483.98111739 and YMax will be 6366087.01529708. See here for
details:

 http://www.gdal.org/gdal_datamodel.html#gdal_datamodel_dataset_gtm

Maybe I should better detail this in documentation.

Best regards,
Andrey

-- 
Andrey V. Kiselev
ICQ# 26871517


More information about the gdal-dev mailing list