Opened 12 years ago

Last modified 11 years ago

#4664 closed defect

gdal2tiles.LatLonToPixels has lat/lon inverted — at Version 1

Reported by: dandye Owned by: warmerdam
Priority: normal Milestone:
Component: Utilities Version: svn-trunk
Severity: normal Keywords: gdal2tiles
Cc:

Description (last modified by dandye)

lat and lon are inverted inside the LatLonToPixels method.

362,363c362,363
< 		px = (180 + lon) / res
< 		py = (90 + lat) / res
---
> 		px = (180 + lat) / res
> 		py = (90 + lon) / res

Change History (2)

by dandye, 12 years ago

Patch to fix inversion of lat/lon in LatLonToPixels method of gdal2tiles.py

comment:1 by dandye, 12 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.