NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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?

asked 04 Nov '15, 16:30

EinFreierNick's gravatar image

EinFreierNick
1214512
accept rate: 50%

closed 04 Nov '15, 17:56

mmd's gravatar image

mmd
5.7k15388

I would recommend to post this question on the Overpass API developer mailing list, as it is too specific for Help OSM and unlikely to help a lot of other users.

Link: http://listes.openstreetmap.fr/wws/info/overpass -> also mirrored on gmane.org and nabble.com, both of which offer a web frontend. Btw: don't forget to include the Overpass APi version you're using and some specs about your system. Your error message may be related to a lack of available memory.

(04 Nov '15, 16:45) mmd
1

Follow up is here.

(04 Nov '15, 17:55) mmd

The question has been closed for the following reason "Follow up on Overpass dev list" by mmd 04 Nov '15, 17:56

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×483
×60

question asked: 04 Nov '15, 16:30

question was seen: 1,891 times

last updated: 04 Nov '15, 17:56

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum