[gdal-dev] gdal_translate precision error
Marco De Nadai
denadai at fbk.eu
Fri Jan 5 16:14:04 PST 2018
Dear gdal community,
I'm a new user of gdal and I recently had a problem with precision. I tried
to translate a big GeoTIFF to a smaller one, specifying the extent of the
window in this way:
gdal_translate -projwin_srs EPSG:4326 -epo -strict -a_nodata 0 -projwin
9.500000 46.000000 10.000000 45.500000 -of GTiff -co COMPRESS=LZW
2015_e009_n46_e010_n45.tif try.tif
Now try.tif has extent:
8.9996489996399998,44.9992232790750890 :
10.0006417207349152,46.0002160001700062
Is this normal? Because it's a pretty big error for me.
Then, you can see this error in the map https://imgur.com/a/CNx7U. The
white color is the original (source) GeoTIFF in background. The black color
is try.tif and the vertical line is the extent I specified in the command.
Can you help me?
Thanks
--
*Marco De Nadai*
*Ph.D. student at Fondazione Bruno Kessler (FBK) - *
*MobS Unit*
*University of Trento*
Via Sommarive, 18 - Povo
38123 Trento (TN) - Italy
E-mail: denadai at fbk.eu
LinkedIn: https://it.linkedin.com/in/marcodenadai
Latest research paper: The Death and Life of Great Italian Cities: A Mobile
Phone Data Perspective
<https://www.technologyreview.com/s/601107/data-mining-reveals-the-four-urban-conditions-that-create-vibrant-city-life/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20180106/eb7e3aa4/attachment-0001.html>
More information about the gdal-dev
mailing list