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

I'm trying to get the geometry of a building by giving a coordinate. Input (lat,lng) output (coordinates of the building that it intersects).

I want to be able to do this with python from a script within QGIS.

I've tried a library called osmnx and managed to get it to work, however the dependencies are horrible. Took me a few pip installs and pip uninstalls to get it working correctly.

I need this script to run on a few different computers and I can see that being a huge issue. This also needs to be in QGIS, so I want to avoid the osmnx module.

Is there a way I can do with with maybe a built in module in python to return the coordinates of a polygon.

asked 25 Oct '22, 23:09

KrisMapper's gravatar image

accept rate: 0%

I ended up using the Python requests library with building the url query from http://overpass-turbo.eu/ Works great!

permanent link

answered 26 Oct '22, 21:56

KrisMapper's gravatar image

accept rate: 0%

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: 25 Oct '22, 23:09

question was seen: 2,288 times

last updated: 26 Oct '22, 21:56

powered by OSQA