[ gpsdrive ] ERROR: cannot create POI Database
Aerics
DeadlyAppearance at gmx.de
Tue Jan 13 05:11:00 AKST 2009
How i can update the mapnik-osm-updater.sh?
I have installed everything over the gpsdrive Repository for intrepid
(Ubuntu).
Guenther Meyer wrote:
>
> 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"
>
>
>
>
>
> _______________________________________________
> GPSdrive mailing list
> GPSdrive at lists.gpsdrivers.org
> http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive
>
>
--
View this message in context: http://www.nabble.com/ERROR%3A-cannot-create-POI-Database-tp21433103p21436463.html
Sent from the GpsDrive mailing list archive at Nabble.com.
More information about the GPSdrive
mailing list