Why not ask your question on the new OpenStreetMap Community Forum?


I have a CSV file with coordinates and I want to find the tags that belong to the coordinates in my osm file. My problem is that the coordinates are not identical to the coordinates in my osm file (for example my csv file has the coordinates lon 1.02 lat 1.02 and the osm file contains the coordinates lon 1.01 lat 1.01). Does anyone know whether osmium has a "nearest fit" function? Thanks in advance.

asked 31 May '17, 12:39

M%C3%A4rtin's gravatar image

accept rate: 0%

No, Osmium doesn't have a function like that. That is outside its scope. There are plenty of other libraries that do. It depends on what language you want etc. what makes sense for your case. For instance the Shapely Python library seems to be popular and you can combine it with PyOsmium. Another option would be to use PostgreSQL/PostGIS and do this in the database.

permanent link

answered 01 Jun '17, 06:54

Jochen%20Topf's gravatar image

Jochen Topf
accept rate: 31%

Your answer
toggle preview

Follow this question

By Email:

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



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:


question asked: 31 May '17, 12:39

question was seen: 2,467 times

last updated: 01 Jun '17, 06:54

powered by OSQA