Hi Steven
thanks for reply
On Dec 23, 3:13 pm, Steven Lehrburger <
lehrbur...@gmail.com> wrote:
> Do you know what zoom level you want?
yes approx between 8 -> 15
> Many, many tiles are needed at higher zoom levels, as one might
> expect.
yep - millions and millions :-(
> You shold also play around with the latitude and longitude parameters passed
> to ll2px - i.e. try changing the "-90" and "180" in line 35.
I saw that and the light immediately went on...
but.... if I want say -40, 40 how to stop it running on to the other
end of the world so to speak?
> I'm not sure
> which corner of the rectangular map that represents, but then you could also
> change the numcols and numrows on the next line so that you're only drawing
> a few 256px by 256px tiles in either direction to the opposite corner,
> rather than the entire rest of the map.
>
> Does that make any sense? Hopefully I am not completely wrong about any of
> that, but please correct me if so!
yes - generating tiles corner to corner makes good sense.
In the meanwhile, I figured maybe I have to do something like this in
the for loop (line 30?) in gen-tile.py:
for zoom in range(zoom_levels)
db_open
db_exec (select ( max(lat), max(lng) ), ( min(lat), min(lng) ) ) as
bounding_box
convert the bounding_box lat/lng coordinates to pixels #[ I guess this
happens with ll2px but arent sure about this?]
convert pixel positions to tiles
identify mincol maxcol tile minrow maxrow tile
for x(mincol -> maxcol)
for y.(minrow -> maxrow)
So... same question: does that make any sense?
omg I hate (=dont know!) python! How to do it in python?
> On Wed, Dec 22, 2010 at 8:04 AM, Gene <
gne...@yahoo.co.uk> wrote:
> > Hi
>
> > I'm testing gheat for a project and have it running well locally.
>
> > But there are some issues to get it working on the production server
> > (aspen & pygame installs)
>
> > The data doesnt change often and so I've tried running the modified
> > gen-tile.py - figuring I can just upload changed tiles with cron or
> > somesuch
>
> > But...
> > running gen-tile from command line means it checks every possible tile
> > at each zoom level, and spends almost all its time (6+ hours now)
> > spewing out lots of 'skipping empty tile' messages.
>
> > I know pretty much what the lat, lng bounds are for the data sets. How
> > to constrain gen-tile to those limits?
>
> > I had a look thru the code but my python / geo / math knowledge isnt
> > up to the job :-(
>
> > I'm grateful for any input towards a solution.
>
> > G.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "gheat" group.
> > To post to this group, send email to
gh...@googlegroups.com.
> > To unsubscribe from this group, send email to
> >
gheat+un...@googlegroups.com <
gheat%2Bunsu...@googlegroups.com>.