[OSM-talk] osm2shp or osm2pgsql
rosario.carbone at ipl.com
Tue Dec 11 15:08:09 GMT 2007
Andy Allan wrote:
> On Dec 11, 2007 1:09 PM, The Bun <rosario.carbone at ipl.com> wrote:
>> I have no problem I can use a database though I'd prefer to avoid and
>> handle just images as files.
> OK, here's a few guides:
> A) Getting a map on your own website
> * Use OpenLayers on any html page. Have a look at the source of any
> OSM website to see different ways to get it working. You can use any
> of the existing tileservers, as far as I'm aware nobody will mind.
Thanks everybody I'll try to follow the mapnik guide as Richard suggested.
Anyway I am already at this stage, I'll try next one.
> B) Creating your own tiles using mapnik and generate_tiles.py
> * Download the planet file from planet.openstreetmap.org
> * Import into a PostGIS database using osm2pgsql
> * setup mapnik and test using osm.xml and the generate_image.py
> * When everything works, use generate_tiles.py to create 1000s of
> tiles in a special hierarchy of folders
> * Copy/move tiles into your webserver's document root.
> * Change the OpenLayers from A) to use your own tileserver instead of
> the main one
I'll have a go with this one. I need to spend some time to learn at least
the basic of Linux first.
But just few questions before to start:
* How to define the table schema on PostGIS and does osm2pgsql already know
the db schema?
* Does mapnik reads directly PostGIS or reads images generated from the db
* Reading the Martijn post seems this model doesn't cache data, right? Is it
the next step C) that does it, correct?
Sorry maybe too many questions but believe me I tried too at the minimum.
View this message in context: http://www.nabble.com/osm2shp-or-osm2pgsql-tp14256729p14275875.html
Sent from the OpenStreetMap - General mailing list archive at Nabble.com.
More information about the talk