[ gpsdrive ] [gpsdrive] ERROR: cannot create POI Database

Guenther Meyer d.s.e at sordidmusic.com
Tue Jan 13 04:42:25 AKST 2009


Am Dienstag 13 Januar 2009 schrieb Aerics:
> Good morning together.
>
> I try to install gpsdrive and want to use the osm maps.
> I use
> http://www.4x4falcon.com/bb/viewtopic.php?p=9&sid=e29021d2f42d45a77175e0ff7
>8f7842d this  how to to install everything.
> To get the datas i use this command: sudo mapnik-osm-updater.sh
> --all-planet-geofabrik=europe/germany/
>
> Now i get this error:
> Reading in file: /home/osm/osm/planet/hessen.osm.bz2
> Processing: Node(1395k) Way(183k) Relation(1k)
> Node stats: total(1395616), max(331630373)
> Way stats: total(183255), max(30104150)
> Relation stats: total(1055), max(67046)
>
> Writing way(30k)
>
>
> --------- Create GpsDrive POI-Database
> gpsdrive-update-osm-poi-db v0.1
>
> + Initializing Database access
> + Creating osm database file: /usr/share/gpsdrive/osm.db
>   Error while opening /usr/share/gpsdrive/osm.db: unable to open database
> file
> !!!!!!! ERROR: cannot create POI Database
>
> I can find any help in google. How can i fix this error?

yes, there is an error in the script, my fault.


this patch should fix it:

Index: mapnik-osm-updater.sh
===================================================================
--- mapnik-osm-updater.sh	(Revision 13188)
+++ mapnik-osm-updater.sh	(Arbeitskopie)
@@ -683,7 +683,8 @@
     fi
     echo ""
     echo "--------- Create GpsDrive POI-Database"
-    bunzip2 -c $planet_file | $sudo_cmd $gpsdrive_poitypes_cmd -w -f 
$geoinfodb_file -o $osmdb_file STDIN
+    sudo mv $osmdb_file $osmdb_file.bak
+    bunzip2 -c $planet_file | sudo $gpsdrive_poitypes_cmd -w -f 
$geoinfodb_file -o $osmdb_file STDIN
     rc=$?
     if [ "$rc" -gt "0" ]; then
         echo "!!!!!!! ERROR: cannot create POI Database"



-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.gpsdrivers.org/pipermail/gpsdrive/attachments/20090113/2ca22661/attachment.bin>


More information about the GPSdrive mailing list