[ gpsdrive ] Mapnik module

haylocki haylocki at yahoo.co.uk
Mon Oct 15 16:35:14 AKDT 2007


Hi,


Joerg Ostertag (gpsdrive Munich/Germany) wrote:
> 
> 
> But the osm2pgsql completed completely?
> 
> 

The script has just finished again and this is the final output :

Node stats: total(41758170), max(62169198)
Segment stats: total(0), max(0)
Way stats : total (4549905), max (8698245)
Way stats: duplicate segments in ways 0


Ending data import


Running analysis on intermediate data


Output processing

ian at thinkpad-t21-2:~/svn..........

The output of mapnik-osm-updater.sh --count_db

--------- Check Number of lines in Database
SELECT COUNT(*) from planet_osm_point;  =  156667
SELECT COUNT(*) from planet_osm_line;   =      0
SELECT COUNT(*) from planet_osm_polygon;        =      0
SELECT COUNT(*) from planet_osm_roads;  =      0

I did have to change this line :

 sudo -u "$osm_username" $osm2pgsql_cmd --database   "$database_name"
$planet_file

To:

 sudo -u "$osm_username" $osm2pgsql_cmd $planet_file

Otherwise I get this error :

--------- Unpack and import /home/osm/osm/planet/planet.osm.bz2
Usage error:
       
/home/ian/svn.openstreetmap.org/applications/utils/export/osm2pgsql/osm2pgsql
planet.osm

or read a .bzip2 or .gz file directly
       
/home/ian/svn.openstreetmap.org/applications/utils/export/osm2pgsql/osm2pgsql
planet.osm.bz2

or use 7za to decompress and pipe the data in
        7za x -so ~/osm/planet/planet-070516.osm.7z |
/home/ian/svn.openstreetmap.org/applications/utils/export/osm2pgsql/osm2pgsql
-

Cheers, Ian
 

-- 
View this message in context: http://www.nabble.com/Mapnik-module-tf4630428.html#a13224806
Sent from the GpsDrive mailing list archive at Nabble.com.



More information about the GPSdrive mailing list