Why can't i import my osmfiltered file into an overpass server?
Hello everyone.
For an application of mine I am trying to set up my own Overpass Api server. Importing [andorra-latest.osm.bz2][1] 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?
[1]: http://download.geofabrik.de/europe/andorra-latest.osm.bz2