[ gpsdrive ] gpsdrive_mapnik_gentiles-in.py
Jan-Erik Skata
jeskata at gmail.com
Wed Jun 18 08:43:34 AKDT 2008
Tried this script now if it would give a clue why GPSDrive doesnt render
with Mapnik, stops like this:
./gpsdrive_mapnik_gentiles-in.py -b "-180.0,-90.0,180.0,90.0" -s 1-6
registered datasource : gdal
registered datasource : postgis
registered datasource : raster
registered datasource : shape
render_tiles( (-180.0, -90.0, 180.0, 90.0) /home/jskata/.gpsdrive/osm.xml
/home/jskata/.gpsdrive/maps/mapnik/ 1 6 Generate: )
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=2
bit_depth=8 color_type=2
bit_depth=8 color_type=2
bit_depth=8 color_type=2
bit_depth=8 color_type=6
bit_depth=8 color_type=6
### WARNING: Failed to load image file
'/usr/local/share/icons/map-icons/classic.small/misc/landmark/forest.png':
cannot open image file
/usr/local/share/icons/map-icons/classic.small/misc/landmark/forest.png
bit_depth=8 color_type=2
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
bit_depth=8 color_type=6
size = 2
file=/usr/local/share/mapnik/world_boundaries/world_boundaries_m
type=shape
Envelope(-20037400,-19929239.11,20037400,18375854.70964293)
file_length=3334676
shape_type=5
datasource=0x91dbc28 type=1
size = 2
file=/usr/local/share/mapnik/world_boundaries/world_bnd_m
type=shape
Envelope(-20037497.21084017,-19929239.11337915,20037497.21084017,18379686.99645032)
file_length=24247658
shape_type=5
datasource=0x9213d68 type=1
size = 2
file=/usr/local/share/mapnik/world_boundaries/processed_p
type=shape
Envelope(-20037508,-7554415.190025273,20037508,15271501.44953631)
file_length=180035906
shape_type=5
datasource=0x9215ce0 type=1
size = 2
file=/usr/local/share/mapnik/world_boundaries/builtup_area
type=shape
Envelope(-19940616.76573496,-6979803.136120869,19864212.01086172,11359336.05685957)
file_length=6689146
shape_type=5
datasource=0x920e498 type=1
size = 6
dbname=gis
estimate_extent=false
extent=-20037508,-19929239,20037508,19929239
host=/var/run/postgresql
table=(select * from planet_osm_polygon order by z_order,way_area desc) as
leisure
type=postgis
borrow 0x92cb730
unknown type_oid=16401
return 0x92cb730
datasource=0x9216b50 type=1
size = 6
dbname=gis
estimate_extent=false
extent=-20037508,-19929239,20037508,19929239
host=/var/run/postgresql
table=(select * from planet_osm_polygon where landuse='reservoir' or
landuse='water' or "natural"='lake' or "natural"='water' or
"natural"='land' order by z_order) as water
type=postgis
borrow 0x92cb730
unknown type_oid=16401
return 0x92cb730
datasource=0x91f0460 type=1
size = 6
dbname=gis
estimate_extent=false
extent=-20037508,-19929239,20037508,19929239
host=/var/run/postgresql
table=(select * from planet_osm_line where waterway IS NOT NULL or
landuse='reservoir' or landuse='water' or "natural"='lake' or
"natural"='water' order by z_order) as water
type=postgis
borrow 0x92cb730
unknown type_oid=16401
return 0x92cb730
datasource=0x91e6ff0 type=1
size = 6
dbname=gis
estimate_extent=false
extent=-20037508,-19929239,20037508,19929239
host=/var/run/postgresql
table=
(select * from planet_osm_line order by z_order) as roads
type=postgis
borrow 0x92cb730
unknown type_oid=16401
return 0x92cb730
datasource=0x91dd2d0 type=1
size = 6
dbname=gis
estimate_extent=false
extent=-20037508,-19929239,20037508,19929239
host=/var/run/postgresql
table=
(select * from planet_osm_line where highway='track') as tracks
type=postgis
borrow 0x92cb730
unknown type_oid=16401
return 0x92cb730
datasource=0x91e9798 type=1
size = 6
dbname=gis
estimate_extent=false
extent=-20037508,-19929239,20037508,19929239
host=/var/run/postgresql
table=
(select * from planet_osm_line order by z_order) as roads
type=postgis
borrow 0x92cb730
unknown type_oid=16401
return 0x92cb730
datasource=0x91db868 type=1
size = 6
dbname=gis
estimate_extent=false
extent=-20037508,-19929239,20037508,19929239
host=/var/run/postgresql
table=
(select * from planet_osm_roads order by z_order) as roads
type=postgis
borrow 0x92cb730
unknown type_oid=16401
return 0x92cb730
datasource=0x91e8160 type=1
size = 6
dbname=gis
estimate_extent=false
extent=-20037508,-19929239,20037508,19929239
host=/var/run/postgresql
table=(select * from planet_osm_line where waterway IS NOT NULL or
landuse='reservoir' or landuse='water' or "natural"='lake' or
"natural"='water' order by z_order) as water
type=postgis
borrow 0x92cb730
unknown type_oid=16401
return 0x92cb730
datasource=0x92151d0 type=1
size = 6
dbname=gis
estimate_extent=false
extent=-20037508,-19929239,20037508,19929239
host=/var/run/postgresql
table=
(select * from planet_osm_line order by z_order) as roads
type=postgis
borrow 0x92cb730
unknown type_oid=16401
return 0x92cb730
datasource=0x9218690 type=1
size = 6
dbname=gis
estimate_extent=false
extent=-20037508,-19929239,20037508,19929239
host=/var/run/postgresql
table=
(select * from planet_osm_line where "railway"='tram' order by
z_order) as trams
type=postgis
borrow 0x92cb730
unknown type_oid=16401
return 0x92cb730
datasource=0x92224e0 type=1
size = 6
dbname=gis
estimate_extent=false
extent=-20037508,-19929239,20037508,19929239
host=/var/run/postgresql
table=(select * from planet_osm_point where amenity IS NOT NULL or railway
is NOT NULL or "natural" is NOT NULL or man_made is NOT NULL or highway is
NOT NULL or aeroway is NOT NULL) as amenity
type=postgis
borrow 0x92cb730
unknown type_oid=16401
return 0x92cb730
datasource=0x9222860 type=1
size = 6
dbname=gis
estimate_extent=false
extent=-20037508,-19929239,20037508,19929239
host=/var/run/postgresql
table=(select way from planet_osm_line where "power"='line') as power
type=postgis
borrow 0x92cb730
unknown type_oid=16401
return 0x92cb730
datasource=0x9223188 type=1
size = 6
dbname=gis
estimate_extent=false
extent=-20037508,-19929239,20037508,19929239
host=/var/run/postgresql
table=(select way from planet_osm_point where power='tower') as power_towers
type=postgis
borrow 0x92cb730
unknown type_oid=16401
return 0x92cb730
datasource=0x9223d28 type=1
size = 6
dbname=gis
estimate_extent=false
extent=-20037508,-19929239,20037508,19929239
host=/var/run/postgresql
table=
(select
way,highway,landuse,"natural",man_made,waterway,name,ref,char_length(ref) as
length from planet_osm_line where waterway IS NULL and leisure IS NULL and
landuse IS NULL) as roads
type=postgis
borrow 0x92cb730
unknown type_oid=16401
return 0x92cb730
datasource=0x91dfdc8 type=1
size = 6
dbname=gis
estimate_extent=false
extent=-20037508,-19929239,20037508,19929239
host=/var/run/postgresql
table=
(select
way,highway,landuse,"natural",man_made,waterway,tourism,learning,amenity,place,name,ref,oneway,char_length(ref)
as length from planet_osm_line where waterway IS NULL and leisure IS NULL
and landuse IS NULL) as roads
type=postgis
borrow 0x92cb730
unknown type_oid=16401
return 0x92cb730
datasource=0x9224b48 type=1
size = 6
dbname=gis
estimate_extent=false
extent=-20037508,-19929239,20037508,19929239
host=/var/run/postgresql
table=(select * from planet_osm_polygon order by z_order,way_area desc) as
leisure
type=postgis
borrow 0x92cb730
unknown type_oid=16401
return 0x92cb730
datasource=0x9226420 type=1
size = 6
dbname=gis
estimate_extent=false
extent=-20037508,-19929239,20037508,19929239
host=/var/run/postgresql
table=planet_osm_point
type=postgis
borrow 0x92cb730
unknown type_oid=16401
return 0x92cb730
datasource=0x9226750 type=1
size = 6
dbname=gis
estimate_extent=false
extent=-20037508,-19929239,20037508,19929239
host=/var/run/postgresql
table=
(select way,admin_level from planet_osm_roads where
"boundary"='administrative') as admin
type=postgis
borrow 0x92cb730
unknown type_oid=16401
return 0x92cb730
datasource=0x9226b50 type=1
size = 2
file=/usr/local/share/mapnik/world_boundaries/places
type=shape
Envelope(-175.2365875244141,-41.21039581298828,179.2218933105469,66.14411926269531)
file_length=3564
shape_type=1
datasource=0x9227090 type=1
scale=78105
start map processing
bbox=Envelope(-65015319.38158181,-39989750.49959189,34959056.86739794,39989750.49959191)
scale denominator = 2.78946e+08
start layer processing : world-1
datasource = 0x91dbc28
ENCODING = utf-8
query size=3807
3807 features
end layer processing
start layer processing : world
datasource = 0x9213d68
end layer processing
start layer processing : coast-poly
datasource = 0x9215ce0
end layer processing
start layer processing : builtup
datasource = 0x920e498
end layer processing
start layer processing : leisure
datasource = 0x9216b50
end layer processing
start layer processing : water
datasource = 0x91f0460
end layer processing
start layer processing : waterway
datasource = 0x91e6ff0
end layer processing
start layer processing : tunnels
datasource = 0x91dd2d0
end layer processing
start layer processing : tracks
datasource = 0x91e9798
end layer processing
start layer processing : minor-roads
datasource = 0x91db868
end layer processing
start layer processing : roads
datasource = 0x91e8160
end layer processing
start layer processing : waterway-bridges
datasource = 0x92151d0
end layer processing
start layer processing : bridges
datasource = 0x9218690
end layer processing
start layer processing : trams
datasource = 0x92224e0
end layer processing
start layer processing : amenity
datasource = 0x9222860
end layer processing
start layer processing : power
datasource = 0x9223188
end layer processing
start layer processing : power_towers
datasource = 0x9223d28
end layer processing
start layer processing : line features
datasource = 0x91dfdc8
end layer processing
start layer processing : planet roads text osm
datasource = 0x9224b48
end layer processing
start layer processing : area-text
datasource = 0x9226420
end layer processing
start layer processing : text
datasource = 0x9226750
end layer processing
start layer processing : admin
datasource = 0x9226b50
end layer processing
start layer processing : places
datasource = 0x9227090
end layer processing
end map processing
5.04 s
Traceback (most recent call last):
File "./gpsdrive_mapnik_gentiles-in.py", line 240, in <module>
main(sys.argv[1:])
File "./gpsdrive_mapnik_gentiles-in.py", line 233, in main
render_tiles(bbox, mapfile, tile_dir, mapkoordfile, minZoom, maxZoom,
"Generate:")
File "./gpsdrive_mapnik_gentiles-in.py", line 137, in render_tiles
im = fromstring('RGBA', (1280, 1024), rawdata(im))
NameError: global name 'rawdata' is not defined
close connection 0x9207880
destroyed singleton
destroyed singleton
destroyed singleton
destroyed singleton
Is the script somewhat maintained and should be expected to work? Atleast I
had to install PIL/imaging to get it working, is that also used by GPSDrive?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gpsdrivers.org/pipermail/gpsdrive/attachments/20080618/67516f7e/attachment.html>
More information about the GPSdrive
mailing list