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

Hello,

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

Märtin
10112
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
5.2k55074
accept rate: 31%

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:

×191
×144
×38

question asked: 31 May '17, 12:39

question was seen: 2,920 times

last updated: 01 Jun '17, 06:54

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