[OSM-newbies] Filtering data and Generating usable tiles
Wrinkled Cheese
wrinkledcheese at gmail.com
Sat Aug 18 03:57:29 BST 2012
Hello everyone.
I've been trying to get my mind around some issues I've been having trying
to generate some tiles. So far I haven't been able to get a usable single
tiled map.
I am using two data sources with similar results, parts of the map is
missing.
Here is a list of software I'm using:
Mapnik 2.0.1 and Mapnik 2.0.2 with no noticeable differences.
osm2pgsql
pgsql2shp
PostgreSQL 9.1.4
PostGIS 2.0.1
osmfilter
I am 100% certain it's something I'm doing wrong but I haven't a clue what
it is and it's probably everything.
Here is a list of commands I use to generate a png file, using the sample
code from "Using Mapnik with Python" (I can post the exact script I use if
requested):
https://github.com/mapnik/mapnik/wiki/GettingStartedInPython
Let's just assume I have extracted the osm file from the BZip2 archive and
run postgis.sql and spatial_ref_sys.sql on the Postgre databse...
./osmfilter --keep=place nova_scotia.osm > nova_scotia-place.osm
osm2pgsql --style /usr/local/share/osm2pgsql/default.style --username
_postgres --database gis_ns nova_scotia-places.osm
pgsql2shp -f nova_scotia.shp -u waynemarsh gis_ns planet_osm_polygon
python generate_map.py
I have tried using all the other tables to get a shp file for use with the
sample Mapnik code, although spatial_ref_sys table doesn't generate a shp
file using the pgsql2shp program.
I can also upload the images I have generated so you can see what type of
issues I'm having, I didn't want attachments to cause my email to get
filtered from the list. I have tried generating a map from the Nova Scotia
OSM file and it still doesn't come out right. I haven't tried a raw map of
the Planet OSM data as I don't have enough disk space for both the OSM
file, the pgsql data and what I would guess would be an extremely large shp
file.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/newbies/attachments/20120817/99e47240/attachment.html>
More information about the newbies
mailing list