I have problems trying to extract the osm area from an "openstreetmap" file and using "osm_import":
"osm_import" works fine when using an osm file extracted from the "openstreetmap" website but... does not work when using "osmosis" to extract the area you want to use, from a pbf file (download.geofabrik.de / large area data)
- because when doing so, "Osmosis" cuts the data according to the coordinates you request but does not check that the "node_id" data needed to use the "way" expression is in the truncated part of the file! which means that the resulting file does not contain some "node_id" variables which make "osm_import" announce an error: "Invalid source /obj/geo1/osm_import1/read_in_map_data.
(Error: Python error: Traceback (most recent call last):
File "", line 329, in
File "", line 190, in build
KeyError: '4355555387'
). "
A solution would probably be to check that "node_id" exists when "way" needs it and if "not" ignore this data and move on to the next one?
The code is in python and should be "easily" modifiable by a programmer...but I am not a python programmer! Thanks for any help!