Changeset 9172 for src


Ignore:
Timestamp:
May 10, 2011, 12:12:33 PM (14 years ago)
Author:
dennisw
Message:

Changed xcoord & ycoord to INT. Works now, and no noticible differences in tiles as far as I can see.

Playing with nodelist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/django_gheat/website/tile.py

    r9171 r9172  
    219219    lon_min = min(lon_min, meting.longitude)
    220220    lon_max = max(lon_max, meting.longitude)
    221     xcoord = dif(nw_deg.lon,meting.longitude) / (resolution_deg.lon)
    222     ycoord = dif(nw_deg.lat,meting.latitude) / (resolution_deg.lat)
     221    xcoord = int(dif(nw_deg.lon,meting.longitude) / (resolution_deg.lon))
     222    ycoord = int(dif(nw_deg.lat,meting.latitude) / (resolution_deg.lat))
    223223    log.info(meting.accespoint.ssid, meting.latitude, meting.longitude, xcoord, ycoord)
    224224
Note: See TracChangeset for help on using the changeset viewer.