Subject: Overpass API developpement
List archive
- From: <>
- To:
- Subject: [overpass] Error while importing osmfiltered file into database
- Date: Wed, 4 Nov 2015 17:51:24 +0100 (CET)
Hello everyone.
For an application of mine I am trying to set up my own Overpass Api server.
Importing andorra-latest.osm.bz2 with the following command works fine, beside
~a dozen ways that are referenced in relations can't be found, which is
probably due to it being an extracted file and not the planet.osm file.
nohup ./srv/osm3s/bin/init_osm3s.sh /root/andorra-latest.osm.bz2 /srv/
osm3sdb /srv/osm3s
In hope of saving some space on the hard disk i created a file that contains
only the data that are necessary for my application, using osmfilter. The
command i used:
osmfilter D:\osm\germany-latest.osm --keep= --keep-ways="water= or waterway=
or natural= or leisure= or landuse= or landcover=" --keep-relations="water= or
natural= or leisure= or landuse= or landcover= or waterway=" -o=D:\osm
\germany-filtered.osm
Which reduced the file size down to about 20%. Afterwards i put it into a bz2
archiv using 7z.
using the same command that worked for Andorra, i get the following error:
Reading XML file ...terminate called after throwing an instance of
'std::bad_alloc'
what(): std::bad_alloc
./srv/osm3s/bin/init_osm3s.sh: line 44: 15227 Broken pipe bunzip2
< $PLANET_FILE
15228 Aborted (core dumped) | $EXEC_DIR/bin/update_database
--db-dir=$DB_DIR/ $META $COMPRESSION
does anyone have an idea how to solve this? Is it even possible to import
osmfiltered files?
- [overpass] Error while importing osmfiltered file into database, kamikaze311, 11/04/2015
- Re: [overpass] Error while importing osmfiltered file into database, Roland Olbricht, 11/05/2015
Archive powered by MHonArc 2.6.18.