Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have a .tif image that I georeferenced using QGIS utility. It was originally in UTM with NAD83 as datum. I need to make tiles out of it and get a kml file to overlay onto google earth. Here's how I am doing it:

gdal2tiles.py -p geodetic -k filename

My image is slightly off where it should have been on google earth.What is going wrong here? Also do we need to warp the image using gdalwarp as my image though georeferenced is still a projection, it's not for a round globe. If yes, what command/parameters I need?

share|improve this question
1  
Akd; Is your image properly georeferenced before you attempt to tile? It would help to narrow down the issue. –  Darren Cope Jun 20 '12 at 23:50
    
Yes I georeferenced it using QGIS. I supplied coordinates for 10 points on the image whose coordinates were known to me. I used "nearest neighbour" resamling method with "thin plate spline" transformation type in QGIS utility. –  Akd Jun 20 '12 at 23:55
1  
try removing "-p geodetic" –  Matthew Snape Jun 21 '12 at 20:45
2  
What is the reported error when georeferencing? How 'off' are you? –  Jay Laura Jan 17 '13 at 21:57

2 Answers 2

Try gdalwarp-ing the image to Lat/Lon WGS84 (EPSG:4326) before running gdal2tiles: gdalwarp -t_srs epsg:4326 srcfile dstfile

share|improve this answer
    
I agree with @DanDye, for the sake of troubleshooting, it's probably best to go to either WGS84 (epsg:4326), or maybe even Web Mercator (epsg:3857) first. Then run gdal2tiles. The gdal utilities have my greatest respect, but any time I run into a "gotcha" on a compound task that includes a reprojection, my first move is always to put the reprojection in a stand alone task, then pick up from there. –  elrobis Sep 14 '13 at 18:46

@Akd, check out my answer here. if my answer dont meet the needs of you, take a look at here.

i hope it helps you...

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.