[OSM-talk] missing tiles at osmarender

2008-10-20 Thread maning sambale
There are some missing tiles at osmarender
http://www.openstreetmap.org/?lat=14.6365&lon=121.1&zoom=14&layers=0B00FTF

Checking the data layer, that data is there.

cheers,
maning

-- 
|-|--|
| __.-._  |"Ohhh. Great warrior. Wars not make one great." -Yoda |
| '-._"7' |"Freedom is still the most radical idea of all" -N.Branden|
|  /'.-c  |Linux registered user #402901, http://counter.li.org/ |
|  |  /T  |http://esambale.wikispaces.com|
| _)_/LI
|-|--|

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Missing tiles?

2008-09-25 Thread Ed Loach
Lukasz wrote:

> Also could you add in generate_tiles.py what is what:
> 
> #bbox( left, bottom, right ,top)
> #bbox( minlong, minlat maxlong ,maxlat)   correct?
> Without being an expert I don't know what is min long max long,
> and
> min lat vs max lat.

The way I remember it is lines of *long*itude are all as *long* as
each other, so they run North-South(-North) around the globe, and so
measure how far East-West you are. Lines of latitude vary in size
being a maximum at the equator and a minimum at the poles (so
measure how far North or South you are).

>From that I would be able to confirm that you are correct above.

Ed



___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Missing tiles?

2008-09-24 Thread Mark Williams
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Lukasz Szybalski wrote:
>>  openstreetmap.org and click the "export" tab; then "manually select
>> an area...". Draw the area you want, and the four text boxes will show
>> min and max lat/lon.
>>
>> This is perfect,except which number is what?
>>
>>56
>> -132  -67
>>   25.5
> 
> Also could you add in generate_tiles.py what is what:
> 
> #bbox( left, bottom, right ,top)
> #bbox( minlong, minlat maxlong ,maxlat)   correct?
> Without being an expert I don't know what is min long max long, and
> min lat vs max lat.
> 
> Thanks,
> Lucas
> 
These numbers are latitude (up & down on the globe, if you will) &
longitude (distance horizontally around the globe, starting at
Greenwich, England = 0).
The latitude goes from -90 at the south pole to 0 at the equator to +90
at the north pole, and the longitude -180 to +180.

A box is most easily specified as 4 numbers, with the topmost latitude
drawn at the top, the most eastern longitude to the left, etc.. Think of
it in the context of a globe, or map, with those numbers written in the
appropriate place on it.

minlat is the minimum (ie lowest, southernmost) latitude (so the lowest
in the group of 4, ie 25.5 in your example), maxlat the highest (56),
and longitude works just the same.

So to convert the above to a bbox gives you bbox(-132, 25.5, -67, 56)

Does that clear it up a bit?

Mark
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI2zT2JfMmcSPNh94RAo8qAJ4iWLcykmn9E4FkpOPiBoJdx43sOACfV8/v
e8CmYKidcN0vNeopXaWed6E=
=x9cr
-END PGP SIGNATURE-


___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Missing tiles?

2008-09-24 Thread Lukasz Szybalski
>  openstreetmap.org and click the "export" tab; then "manually select
> an area...". Draw the area you want, and the four text boxes will show
> min and max lat/lon.
>
> This is perfect,except which number is what?
>
>56
> -132  -67
>   25.5

Also could you add in generate_tiles.py what is what:

#bbox( left, bottom, right ,top)
#bbox( minlong, minlat maxlong ,maxlat)   correct?
Without being an expert I don't know what is min long max long, and
min lat vs max lat.

Thanks,
Lucas

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Missing tiles?

2008-09-24 Thread Lukasz Szybalski
 openstreetmap.org and click the "export" tab; then "manually select
an area...". Draw the area you want, and the four text boxes will show
min and max lat/lon.

This is perfect,except which number is what?

56
-132  -67
   25.5

So it would be great if it said
which one is long vs lat ???

Which one is what?
is long min 56 and max 25.5 or min 25.5 and max 56?

Could you guys add a description of the field next to the 4 numbers:
"Area to Export"

Thanks,
Lucas

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Missing tiles?

2008-09-24 Thread Rob Reid
Lukasz Szybalski wrote the following on 25/09/2008 09:05:
> Any idea where I can get a quick reference on a geographic area and
> the long lat boundaries as described above?
>   
Try using http://www.informationfreeway.org/ you can see the lat and lon 
of your mouse pointer at the bottom right.

rcr


___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Missing tiles?

2008-09-24 Thread Lukasz Szybalski
On Wed, Sep 24, 2008 at 1:48 PM, Lukasz Szybalski <[EMAIL PROTECTED]> wrote:
> On Wed, Sep 24, 2008 at 11:47 AM, Joseph Gentle <[EMAIL PROTECTED]> wrote:
>> On Thu, Sep 25, 2008 at 2:39 AM, Lukasz Szybalski <[EMAIL PROTECTED]> wrote:
>>> ok That is a little too much considering I can buy 500gb drive for
>>> $70, so storage is max 500, now 50gb I can spare.
>>
>> If you want you can use mod_tile or the CGI tile server to just
>> generate tiles on-demand.
>>
>>> What would be a bbox for:
>>> http://maps.google.com/?ie=UTF8&ll=37.0625,-95.677068&spn=36.231745,92.109375&t=h&z=4
>>>
>>> bbox=(37.0625,-95,36.23,92.10)
>>>
>>> Is google zoom reasonably close or same as in mapnik? From google it
>>> would seem zoom max 15 should be enough for what I need.
>
> From:
> http://maps.google.com/maps?ie=UTF8&ll=37.0625,-95.677068&spn=36.231745,92.109375&z=4
> ll=37.0625,-95.677068&spn=36.231745,92.109375
> to
> Its about lat: 23 - 59, long: -140 - -64
>
> How did you get these numbers, they are not really the same as
> google.com numbers?
> or should I use "permalink"?
> http://www.openstreetmap.org/?lat=36.6&lon=-96.6&zoom=5&layers=B000FFF
> but it doesn't give me a high low +-?
>
> What is the best way for me to figure out lat and long of the area I want to 
> do.
> US,CAN,MEX?
> Or maybe 2 states:
> IL,IN,
> Should I follow google?
> http://maps.google.com/maps?ie=UTF8&ll=40.979898,-87.231445&spn=8.639252,23.027344&z=6
> What would be the corresponding lat and long for above link?

Any idea where I can get a quick reference on a geographic area and
the long lat boundaries as described above?

Lucas

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Missing tiles?

2008-09-24 Thread Lukasz Szybalski
On Wed, Sep 24, 2008 at 11:47 AM, Joseph Gentle <[EMAIL PROTECTED]> wrote:
> On Thu, Sep 25, 2008 at 2:39 AM, Lukasz Szybalski <[EMAIL PROTECTED]> wrote:
>> ok That is a little too much considering I can buy 500gb drive for
>> $70, so storage is max 500, now 50gb I can spare.
>
> If you want you can use mod_tile or the CGI tile server to just
> generate tiles on-demand.
>
>> What would be a bbox for:
>> http://maps.google.com/?ie=UTF8&ll=37.0625,-95.677068&spn=36.231745,92.109375&t=h&z=4
>>
>> bbox=(37.0625,-95,36.23,92.10)
>>
>> Is google zoom reasonably close or same as in mapnik? From google it
>> would seem zoom max 15 should be enough for what I need.

From:
http://maps.google.com/maps?ie=UTF8&ll=37.0625,-95.677068&spn=36.231745,92.109375&z=4
ll=37.0625,-95.677068&spn=36.231745,92.109375
to
Its about lat: 23 - 59, long: -140 - -64

How did you get these numbers, they are not really the same as
google.com numbers?
or should I use "permalink"?
http://www.openstreetmap.org/?lat=36.6&lon=-96.6&zoom=5&layers=B000FFF
but it doesn't give me a high low +-?

What is the best way for me to figure out lat and long of the area I want to do.
US,CAN,MEX?
Or maybe 2 states:
IL,IN,
Should I follow google?
http://maps.google.com/maps?ie=UTF8&ll=40.979898,-87.231445&spn=8.639252,23.027344&z=6
What would be the corresponding lat and long for above link?

Thanks,
Lucas

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Missing tiles?

2008-09-24 Thread Jon Burgess
On Wed, 2008-09-24 at 11:39 -0500, Lukasz Szybalski wrote:
> On Wed, Sep 24, 2008 at 11:24 AM, Joseph Gentle <[EMAIL PROTECTED]> wrote:
> > On Thu, Sep 25, 2008 at 2:04 AM, Lukasz Szybalski <[EMAIL PROTECTED]> wrote:
> >> On Wed, Sep 24, 2008 at 10:20 AM, Joseph Gentle <[EMAIL PROTECTED]> wrote:
> >> I'm new to the project so if you could give me some shortucts:
> >
> > http://www.google.com.au/search?q=longitude+latitude+of+countries
> >
> >> What would be estimated size for min0 max 17?
> >> ...
> >
> > The whole world from 0 - 17 is about 20 billion tiles. If you chop out
> > the oceans, the arctic and antarctica you might have ~5 billion tiles
> > to render. Zoom google maps all the way out and look at proportional
> > sizes of the countries on that map for relative sizes.
> >
> > If you don't use appropriate storage for the tiles, each tile will
> > take up at least 4KB. Unless you're clever 5 billion tiles will take
> > at least 20TB to store.
> 
> ok That is a little too much considering I can buy 500gb drive for
> $70, so storage is max 500, now 50gb I can spare.
> 
> What would be a bbox for:
> http://maps.google.com/?ie=UTF8&ll=37.0625,-95.677068&spn=36.231745,92.109375&t=h&z=4
> 
> bbox=(37.0625,-95,36.23,92.10)
> 
> Is google zoom reasonably close or same as in mapnik? From google it
> would seem zoom max 15 should be enough for what I need.

The number of tiles drops by a factor of 4 for each zoom so the above
estimate becomes about ~1TB for all up to z15 and take something in the
order of a month of CPU time.

mod_tile not only servers the tiles but also ensures they are cached and
rendered in real time when required. This avoids the need to pre-render
tiles in many cases.

Jon



___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Missing tiles?

2008-09-24 Thread Lukasz Szybalski
On Wed, Sep 24, 2008 at 11:24 AM, Joseph Gentle <[EMAIL PROTECTED]> wrote:
> On Thu, Sep 25, 2008 at 2:04 AM, Lukasz Szybalski <[EMAIL PROTECTED]> wrote:
>> On Wed, Sep 24, 2008 at 10:20 AM, Joseph Gentle <[EMAIL PROTECTED]> wrote:
>> I'm new to the project so if you could give me some shortucts:
>>
>> ok...the whole planet is
>> bbox= (-180, -87.5, 180, 87.5)
>>
>> If I look at the file:
>> http://svn.openstreetmap.org/applications/rendering/mapnik/generate_tiles.py
>> It has few boundaries in it:
>> # Start with an overview
>> # World
>>  bbox = (-180.0,-90.0, 180.0,90.0)
>>  render_tiles(bbox, mapfile, tile_dir, 0, 5, "World")
>>
>> This means it will render planet from 0-5?
>> then it will render what ever else follows?
>>
>> What is:
>> bbox = (151.0, -34, 151.33, -33.66)
>
> Part of Sydney, Australia.
>
> http://www.maptools.com/UsingLatLon/LatLon.html
>
>> So min=0 and max=17 should be sufficient?
>
> Sufficient for what? This is the detail of zoom level 0:
> http://a.tile.openstreetmap.org/0/0/0.png
> zoom level 5:
> http://a.tile.openstreetmap.org/5/8/14.png  (thats central america)
> and zoom level 17:
> http://a.tile.openstreetmap.org/17/120597/78678.png   (thats some
> streets in Sydney)
>
>> If you guys could add a bbox for each continent that would be great.
>> (You could probobly comment it out if you don't want it by default)
>> but it would be nice to just uncomment it and get it going.
>>
>>
>> What would be a bbox  for:
>> ...
>
> http://www.google.com.au/search?q=longitude+latitude+of+countries
>
>> What would be estimated size for min0 max 17?
>> ...
>
> The whole world from 0 - 17 is about 20 billion tiles. If you chop out
> the oceans, the arctic and antarctica you might have ~5 billion tiles
> to render. Zoom google maps all the way out and look at proportional
> sizes of the countries on that map for relative sizes.
>
> If you don't use appropriate storage for the tiles, each tile will
> take up at least 4KB. Unless you're clever 5 billion tiles will take
> at least 20TB to store.

ok That is a little too much considering I can buy 500gb drive for
$70, so storage is max 500, now 50gb I can spare.

What would be a bbox for:
http://maps.google.com/?ie=UTF8&ll=37.0625,-95.677068&spn=36.231745,92.109375&t=h&z=4

bbox=(37.0625,-95,36.23,92.10)

Is google zoom reasonably close or same as in mapnik? From google it
would seem zoom max 15 should be enough for what I need.

Thanks,
Lucas

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Missing tiles?

2008-09-24 Thread Andy Allan
On Wed, Sep 24, 2008 at 3:58 PM, Lukasz Szybalski <[EMAIL PROTECTED]> wrote:

> If I want to render the whole planet and I want to have a tile for
> every mile of it, will ./generate_tiles.py work or I have to specify
> some additional parameters?

As Dave said, you will need to edit the file, and read the bit at the bottom.

Before you do though, here's some stuff to calculate. Each zoom level
is (2^z)*(2^z) tiles in size. So if you want all the tiles, for all
the zoom levels, calculate how many tiles is (2^18)*(2^18), plus
(2^17)*(2^17), plus all the others, and how long you think it will
take to generate them, and how much disk space.

Cheers,
Andy

*spoiler* - you might want to look more into mod_tile :-)

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Missing tiles?

2008-09-24 Thread Lukasz Szybalski
On Wed, Sep 24, 2008 at 10:20 AM, Joseph Gentle <[EMAIL PROTECTED]> wrote:
> On Thu, Sep 25, 2008 at 12:58 AM, Lukasz Szybalski <[EMAIL PROTECTED]> wrote:
>> If I want to render the whole planet and I want to have a tile for
>> every mile of it, will ./generate_tiles.py work or I have to specify
>> some additional parameters?
>>
>> ./generate_tiles.py planet
>>
>> or
>> ./generate_tiles.py northamerica
>>
>> or?
>
> generate_tiles.py is a python script. Open it in a text editor.
>
> Near the bottom you will see something like this:
>
>minZoom = 5
>maxZoom = 17
>bbox = (151.0, -34, 151.33, -33.66)
>render_tiles(bbox, mapfile, tile_dir, minZoom, maxZoom, "aus")
>
> This will render everything within the bounding box between minZoom and 
> maxZoom.
> The bounding box is written as  (minlongitude, minlattitude,
> maxlongitude, maxlattitude)
>
> If you really want to render the whole planet for all normal zoom levels, use:
> minZoom = 0
> maxZoom = 17

> bbox = (-180, -87.5, 180, 87.5)

I'm new to the project so if you could give me some shortucts:

ok...the whole planet is
bbox= (-180, -87.5, 180, 87.5)

If I look at the file:
http://svn.openstreetmap.org/applications/rendering/mapnik/generate_tiles.py
It has few boundaries in it:
# Start with an overview
# World
 bbox = (-180.0,-90.0, 180.0,90.0)
 render_tiles(bbox, mapfile, tile_dir, 0, 5, "World")

This means it will render planet from 0-5?
then it will render what ever else follows?

What is:
bbox = (151.0, -34, 151.33, -33.66)

So min=0 and max=17 should be sufficient?

If you guys could add a bbox for each continent that would be great.
(You could probobly comment it out if you don't want it by default)
but it would be nice to just uncomment it and get it going.


What would be a bbox  for:
   North America =
South America =
Antarctica =
Africa =
Europe=
Asia=
Australia=

What would be estimated size for min0 max 17?
   North America =
South America =
Antarctica =
Africa =
Europe=
Asia=
Australia=

Thanks,
Lucas

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Missing tiles?

2008-09-24 Thread Dave Stubbs
On Wed, Sep 24, 2008 at 3:58 PM, Lukasz Szybalski <[EMAIL PROTECTED]> wrote:
> On Wed, Sep 24, 2008 at 9:39 AM, Dave Stubbs <[EMAIL PROTECTED]> wrote:
>> On Wed, Sep 24, 2008 at 2:22 PM, Lukasz Szybalski <[EMAIL PROTECTED]> wrote:
>>> Hello,
>>> I followed the instructions on your website how to get the planet and
>>> how to generate tiles from mapnik.
>>>
>>> I got everything going. After a day I got all my tiles but when I look
>>> at the example you have put on your website,
>>>
>>> http://wiki.openstreetmap.org/index.php/Mapnik
>>>
>>> with map in
>>> http://tile.openstreetmap.org/7/63/42.png
>>>
>>> I don't seem to have /7/63 my tiles start at 7/64. could somebody on
>>> your server run this command and send me a file with a list of tiles.
>>>
>>> tree tiles >osm_tiles.txt
>>>
>>> you might need to install tree first.
>>>
>>> aptitude install tree
>>>
>>> Any idea why I might be missing some tiles?
>>>
>>
>> The tile server generates tiles using mod_tile [1].
>
> I'll look into mod_tile later, as right now I'm not servering the tiles yet.
>
> This renders them
>> on request if they haven't already been done. There are many millions
>> of tiles on the tile server, taking up GBs of space.
>>
>> If you just want prerendered tiles then you'll need to modify the area
>> being rendered by the generate_tiles script. It's currently hardcoded
>> to render some cities at the bottom of the file.
>
> So what you are saying here is that  ./generate_tiles.py with the
> default osm.xml will not generate all tiles?
>
> My tiles right now are about 4gb?
>
> If I want to render the whole planet and I want to have a tile for
> every mile of it, will ./generate_tiles.py work or I have to specify
> some additional parameters?

You'll need to modify the script. There's a line where it says "Change
the following for different bounding boxes and zoom levels" where it
starts rendering areas. It starts out with the whole world up to zoom
level 5.

You'll need to decide what the maximum zoom level you want is. Each
level is 4 times bigger than the last one, so to do everything up to
zoom 7 is about 22 thousand tiles and everything up to zoom 12 is
about 22 million. That will take up a lot of disk space and take a
very long time to render, so you probably want to be more specific
with the area to render.

Dave

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Missing tiles?

2008-09-24 Thread Lukasz Szybalski
On Wed, Sep 24, 2008 at 9:39 AM, Dave Stubbs <[EMAIL PROTECTED]> wrote:
> On Wed, Sep 24, 2008 at 2:22 PM, Lukasz Szybalski <[EMAIL PROTECTED]> wrote:
>> Hello,
>> I followed the instructions on your website how to get the planet and
>> how to generate tiles from mapnik.
>>
>> I got everything going. After a day I got all my tiles but when I look
>> at the example you have put on your website,
>>
>> http://wiki.openstreetmap.org/index.php/Mapnik
>>
>> with map in
>> http://tile.openstreetmap.org/7/63/42.png
>>
>> I don't seem to have /7/63 my tiles start at 7/64. could somebody on
>> your server run this command and send me a file with a list of tiles.
>>
>> tree tiles >osm_tiles.txt
>>
>> you might need to install tree first.
>>
>> aptitude install tree
>>
>> Any idea why I might be missing some tiles?
>>
>
> The tile server generates tiles using mod_tile [1].

I'll look into mod_tile later, as right now I'm not servering the tiles yet.

This renders them
> on request if they haven't already been done. There are many millions
> of tiles on the tile server, taking up GBs of space.
>
> If you just want prerendered tiles then you'll need to modify the area
> being rendered by the generate_tiles script. It's currently hardcoded
> to render some cities at the bottom of the file.

So what you are saying here is that  ./generate_tiles.py with the
default osm.xml will not generate all tiles?

My tiles right now are about 4gb?

If I want to render the whole planet and I want to have a tile for
every mile of it, will ./generate_tiles.py work or I have to specify
some additional parameters?

./generate_tiles.py planet

or
./generate_tiles.py northamerica

or?

Thanks,
Lucas


>
> Dave
>
> [1] http://wiki.openstreetmap.org/index.php/Mod_tile
>



-- 
Python and OpenOffice documents and templates
http://lucasmanual.com/mywiki/OpenOffice
Fast and Easy Backup solution with Bacula
http://lucasmanual.com/mywiki/Bacula

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] Missing tiles?

2008-09-24 Thread Dave Stubbs
On Wed, Sep 24, 2008 at 2:22 PM, Lukasz Szybalski <[EMAIL PROTECTED]> wrote:
> Hello,
> I followed the instructions on your website how to get the planet and
> how to generate tiles from mapnik.
>
> I got everything going. After a day I got all my tiles but when I look
> at the example you have put on your website,
>
> http://wiki.openstreetmap.org/index.php/Mapnik
>
> with map in
> http://tile.openstreetmap.org/7/63/42.png
>
> I don't seem to have /7/63 my tiles start at 7/64. could somebody on
> your server run this command and send me a file with a list of tiles.
>
> tree tiles >osm_tiles.txt
>
> you might need to install tree first.
>
> aptitude install tree
>
> Any idea why I might be missing some tiles?
>

The tile server generates tiles using mod_tile [1]. This renders them
on request if they haven't already been done. There are many millions
of tiles on the tile server, taking up GBs of space.

If you just want prerendered tiles then you'll need to modify the area
being rendered by the generate_tiles script. It's currently hardcoded
to render some cities at the bottom of the file.

Dave

[1] http://wiki.openstreetmap.org/index.php/Mod_tile

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


[OSM-talk] Missing tiles?

2008-09-24 Thread Lukasz Szybalski
Hello,
I followed the instructions on your website how to get the planet and
how to generate tiles from mapnik.

I got everything going. After a day I got all my tiles but when I look
at the example you have put on your website,

http://wiki.openstreetmap.org/index.php/Mapnik

with map in
http://tile.openstreetmap.org/7/63/42.png

I don't seem to have /7/63 my tiles start at 7/64. could somebody on
your server run this command and send me a file with a list of tiles.

tree tiles >osm_tiles.txt

you might need to install tree first.

aptitude install tree

Any idea why I might be missing some tiles?

Thanks,
Lucas

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk