Re: [OSM-talk] Creating custom OSM sites using the Mapnik OSM plugin?

2010-02-22 Thread Nick Whitelegg
Do people think this is a good idea? It's one of several possibilities 
that I'd like to work on, though I'd probably only do so if there's 
sufficient interest and/or I can't resolve the memory issues on my own 
site in other ways.

Sorry to follow up my own post - but I forgot to say, this would be aimed 
more at small scale, specialist sites (e.g. a city, a county or a small 
country such as England or Wales) rather than say, Europe-, USA-, or 
world-wide, as it would be required to upload locally-generated tiles onto 
a server which probably wouldn't be feasible large scale.

Nick

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


Re: [OSM-talk] Creating custom OSM sites using the Mapnik OSM plugin?

2010-02-22 Thread Jochen Plumeyer
Hi Nick!

On Lun 22 Feb 2010, Nick Whitelegg wrote:
 Do people think this is a good idea? It's one of several possibilities
 that I'd like to work on, though I'd probably only do so if there's
 sufficient interest and/or I can't resolve the memory issues on my own
 site in other ways.

well, to handle amounts data as large as planet.osm in a performant manner, I 
think you need efficient database-like infrastructure (fast search trees, 
cache mechanisms and such).

I wrote a potential zero-install script to use SQLite for OSM data, which 
performance already is rather low, but for let's say  100 MByte osm file 
that would be feasable.
But would this be sane? I don't think so, because like this you use CPU 
resources like a Hummer SUV uses gas (until the tile cache is filled).

On the other hand, you can compile PostgreSQL in a local way, in your local 
user account. It is actually surprising, that it is just a tiny ~ 5 MByte 
install, nearly as easy to handle as SQLite.
Perhaps this would be a solution, à la WAMP packages which contain software 
stacks like Apache, MySQL, PHP in an easy to use installer.

Are there other efficient binary representations of OSM data?
It seems there are, gosmore contains its own OSM data converter,  
(http://wiki.openstreetmap.org/wiki/Gosmore) is fast and uses just 
osm.bz2 * 2 file space.

Cheers,

Jochen



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


Re: [OSM-talk] Creating custom OSM sites using the Mapnik OSM plugin?

2010-02-22 Thread Jochen Plumeyer
Hi again,

Sorry for misinterpreting your mail. 
Now I understand, that you suggest uploading tiles to a server due to (memory) 
restrictions.

If PostGIS is not what you like, what about MySQL (perhaps without geo 
extensions, if they depend on libraries not available on a common hosting 
server environment)?

Jochen



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


Re: [OSM-talk] Creating custom OSM sites using the Mapnik OSM plugin?

2010-02-22 Thread Joseph Reeves
Hi Nick,

I would be very interested in such an application, especially for
generating custom tiles from an OSM file for use on mobile devices.

Cheers, Joseph



On 22 February 2010 12:43, Nick Whitelegg nick.whitel...@solent.ac.uk wrote:
 Not sure if talk's the best place for this, rather than dev, but I would
 guess so as it doesn't relate to OSM development itself.

 Anyway, some time ago I developed the OSM plugin for Mapnik, but due to
 other things haven't worked on it for a while. However I always thought
 that it would be useful in allowing people to generate OSM tiles on their
 own machine without the need for a PostGIS database. This has a number of
 benefits: firstly, someone who wanted to create their own OSM-based site
 wouldn't need to set up PostGIS, which can be a little tricky, and
 secondly (and I'm finding this is becoming quite a severe problem on my
 own Freemap site) the server resources required would be much less - the
 server could just serve static Mapnik tiles with no need for a database at
 all (though my own site still needs a database for the POIs). Users could
 render on their own machine and then upload. After the initial phase a GUI
 could be added to the application.

 Do people think this is a good idea? It's one of several possibilities
 that I'd like to work on, though I'd probably only do so if there's
 sufficient interest and/or I can't resolve the memory issues on my own
 site in other ways.

 Nick



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


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


Re: [OSM-talk] Creating custom OSM sites using the Mapnik OSM plugin?

2010-02-22 Thread Frederik Ramm
Nick,

   the main problem with the OSM plugin is that the user group most 
likely to be unable or unwilling to install PostGIS is also the group 
least likely to develop their own map style, and the plugin doesn't come 
with something even remotely resembling what these people usually 
expect, namely the openstreetmap.org style.

Regarding tile generation and uploading; I don't think this is something 
that can ever compete with a proper Mapnik setup. If I really were very 
limited regarding the tile server, say if that were a VM where I can do 
nothing but deliver pre-made tiles, I would still install a plain 
vanilla Mapnik/PostGIS setup on my home machine and run tilesgen there, 
uploading the results.

I haven't run the OSM plugin myself but I should be very surprised if, 
using a style that has about the same level of detail the osm.org style 
has, you could render an English county on an useful zoomlevel faster 
with that setup than, on the same machine, with a 
PostGIS+osm2pgsql+Mapnik setup. I regularly use the data for 
Baden-Wuerttemberg in Germany as a test bed and this takes only a few 
minutes to import with osm2pgsql on a normal desktop PC...

Bye
Frederik

-- 
Frederik Ramm  ##  eMail frede...@remote.org  ##  N49°00'09 E008°23'33

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


Re: [OSM-talk] Creating custom OSM sites using the Mapnik OSM plugin?

2010-02-22 Thread Simone Cortesi
On Mon, Feb 22, 2010 at 13:43, Nick Whitelegg
nick.whitel...@solent.ac.uk wrote:
 Do people think this is a good idea? It's one of several possibilities
 that I'd like to work on, though I'd probably only do so if there's
 sufficient interest and/or I can't resolve the memory issues on my own
 site in other ways.

I do!

this will remove one layer of difficulties from the user wanting to
render their own city/province. And i think that a one shot rendering,
then uploading to the server would be something that will broaden the
use of custom maps. Thus encourage people in experimenting with mapnik
styles. Maybe leading to the creation of a style editor.

I'll be one of your beta testers, if you need one!

-- 
-S

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