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

Hi here, Thank you always. Your responses on this platform have been of an immeasurable value to me. In my python project, I want to combine street segments having the same name as one. Merging them is not a problem for me, but how do I do it such that the nodes of each street segment is combined with others, and such that they are arranged in an orderly pattern, to form a single straight street?

asked 01 Sep '22, 21:38

Segunlakata's gravatar image

Segunlakata
16131316
accept rate: 0%

edited 01 Sep '22, 21:39

What editor are you using?

(02 Sep '22, 07:26) Msiipola

Is this for a downstream application? Do you want to upload the result to OSM?

(02 Sep '22, 07:53) InsertUser

It is like a student project on extracting streets within a specified region in OSM and identifying points of intersection . So let's say street "Rue" starts from A and runs through point B to C, and another street "Avenue" starts from X through point B to Y. Then what I want to achieve in my python code now is having on Rue, the street segments AB and BC merged together as one street still under the name Rue, then also street segments for Avenue is merged as one (XB +BY) , with both Rue and Avenue intersecting at B. I'm also particular about the order of street segments merging so that the combined nodes are so arranged as they are in reality on the OSM map.

(02 Sep '22, 10:12) Segunlakata
1

How are you merging?
unary_union? dissolve?

Have you asked on GIS Stackexchange?
If you do; don't forget a code-snippet and leave a trail-of-breadcrumbs (a link) please.

(02 Sep '22, 20:28) arkriger

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:

×142
×41
×1

question asked: 01 Sep '22, 21:38

question was seen: 873 times

last updated: 02 Sep '22, 20:28

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