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, 23:09

KrisMapper's gravatar image

KrisMapper
2614
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, 21:56

KrisMapper's gravatar image

KrisMapper
2614
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

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:

×690
×75
×74
×2

question asked: 25 Oct, 23:09

question was seen: 273 times

last updated: 26 Oct, 21:56

powered by OSQA