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

Hi all!

I am new to OSM and GIS in general.

I am trying to create labels for sattelite images I have to do building/road segmentation. I've now figured out how to do this with osmnx (phew!), now that I think about it a little more, I was wondering if there might be an easier (better, cleaner) way creating it with open gis? Or would you know of some other way?

What I did with osmnx:

graph = ox.graph.graph_from_bbox(north, south, east, west)
geometries = ox.geometries.geometries_from_bbox(north, south, east, west, tags = {'building':True, 'amenity':True, 'landuse':['commercial', 'residential', 'industrial', 'mixed']})

this creates a map for my corresponding sattelite image (with bbox north south east west)

Edit: this is an example of what I've been able to cook up for now: image

https://imgur.com/a/U48SViV thanks in advance for any tips,

cheers!

oli

asked 11 Oct '21, 17:08

oliver's gravatar image

oliver
31448
accept rate: 0%

edited 14 Oct '21, 05:32

Can you try explaining that again, perhaps in your native language? I've no idea what you are trying to do.

(11 Oct '21, 17:20) SomeoneElse ♦

@SomeoneElse Hi, apologies, English sort of is my first language but I am bad at all of them (:-S), I have a reading disability, I know my writing can be incoherent sometimes.

I have images, I want the corresponding map from openstreetmap with buildings, roads etc. I have figured out how to do this with osmnx, I'll edit above and add a code snippet to illustrate.

(11 Oct '21, 17:38) oliver

Is this for a static image or for a slippy map? What output formats do you want? (Basically, what are you actually hoping to get out of this?)

Are you using your own aerial imagery or another provider's?

(13 Oct '21, 19:44) InsertUser

@InsertUser Hi, thanks, it's a static image, our (non-profits) own aerial imagery. I am attaching what I did with matplotlib above

(14 Oct '21, 05:28) oliver

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:

×85
×67
×5

question asked: 11 Oct '21, 17:08

question was seen: 962 times

last updated: 14 Oct '21, 05:32

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