[gdal-dev] Trouble using gdal_rasterize

Even Rouault even.rouault at mines-paris.org
Fri Oct 28 12:21:08 EDT 2011


Selon guillaume huby <guillaume.huby.lists at gmail.com>:

> Hello,
>
> I am using Gdal 1.8.1 (gdalinfo --version -> GDAL 1.8.1, released
> 2011/07/09).
>
> I used gdal_rasterize to burn some tif file with values from a shapefile:
>
> > gdal_rasterize -a ID -l vector_test vector_test.shp test_out.tif
> >
>
> My tif file contains a unique layer of type UInt32.
>
> The shape files contains an ID column with four features with ID 28021201,
> 28021202, 28021203 and 28021204.
>
> But test_out.tif is not burned correctly it has :
> - 28021200 where 28021201 is expected;
> - 28021204 where 28021203 is expected;
> - others values are OK.
>
> I can provide sample files if needed.
>
> Is there something I missuse in my command line or is it a normal issue ?

This sounds as another symptom of the precision loss issue that has been fixed
for the ticket http://trac.osgeo.org/gdal/ticket/4292

Fixed in GDAL 1.9.0dev

>
> Thanks for your replies.
>
> Best regards,
> Guillaume.
>




More information about the gdal-dev mailing list