Hello all, I am trying to create a geotiff from a .png (screenshot for testing), but gdal_translate gets the corner coordinates wrong.
My steps: Works with Chrome Browser only: http://overlay-tiler.googlecode.com/svn/trunk/upload.html with screenshot: http://www.diy-streetview.com/data/geotiff/Neurott.png and Ampèrestraße 63225, Langen, Hessen, Germany gives: gdal_translate \ -gcp 0 0 8.648622773788475 50.00162255942198 \ -gcp 644 0 8.655532144210838 50.00162255942198 \ -gcp 644 899 8.655532144210838 49.99542253867455 \ Neurott.png out.png gdal2tiles.py -s EPSG:4326 -z 16-19 out.png out Entering the local file names: gdal_translate \ -gcp 0 0 8.648585222862266 50.001663936185025 \ -gcp 644 0 8.65549459328463 50.001663936185025 \ -gcp 644 899 8.65549459328463 49.995463920773624 \ /home/me/geotiff/Neurott.png /home/me/geotiff/Neurott.tiff seems to work, but gdalinfo /home/me/geotiff/Neurott.tiff shows that the Corner Coordinates are the pixel values, and not the lat/lon coordinates: Size is 644, 899 Coordinate System is `' GCP Projection = GCP[ 0]: Id=1, Info= (0,0) -> (8.64858522286227,50.001663936185,0) GCP[ 1]: Id=2, Info= (644,0) -> (8.65549459328463,50.001663936185,0) GCP[ 2]: Id=3, Info= (644,899) -> (8.65549459328463,49.9954639207736,0) Image Structure Metadata: INTERLEAVE=PIXEL Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0, 899.0) Upper Right ( 644.0, 0.0) Lower Right ( 644.0, 899.0) Center ( 322.0, 449.5) Band 1 Block=644x4 Type=Byte, ColorInterp=Red Band 2 Block=644x4 Type=Byte, ColorInterp=Green Band 3 Block=644x4 Type=Byte, ColorInterp=Blue How to fix this? I tried with GDAL 1.11dev, released 2013/04/13 installed on ubuntu via sudo apt-get install gdal-bin and GDAL 1.10.1, released 2013/08/26 compiled locally on Ubuntu 64 bit, 12.04.3 precise. Both get this wrong. Any ideas? Thanks, Jan
_______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
