How does Potlatch determine intersections? I went through their repo on GitHub, but I don't understand ActionScript. I searched the directory for the keyword "intersection," but there were only two results and they didn't seem too promising.

From what I've been reading, nodes that are present in more than one way are considered intersections, I wanted to see this for myself and to my surprise, there were tons of extraneous points (thousands even in a small city). I thought about considering only the ways that had the "highway" tag on them, but I'm not sure if this is an exhaustive search of all the intersections considered by OSM - can someone please help?

asked 09 Jun '15, 16:48

jycai's gravatar image

jycai
11112
accept rate: 0%

2

From reading this question, it seems that you have some problem that you're trying to solve that may not be directly related to Potlatch2. Is that true, and if so, what is it?

(09 Jun '15, 17:39) SomeoneElse ♦

Potlatch 2 can detect intersections, I wondering if anyone knows how they go about doing this and labeling them as intersections since nodes in OSM are not tagged with an intersections tag. I understand that a node that is in 2 or more ways could be considered an intersection, but I am only looking for the intersection of streets - simply doing this search gives us a lot of extraneous information such as the buildings that have borders that intersect, etc.

(10 Jun '15, 07:16) jycai
1

There is no other indicator except for the highway tag. Your approach seems sensible.

(10 Jun '15, 07:53) scai ♦
1

keep in mind that roads in OSM are split into several lines. For example, a road has to be split in two segments if you want to tag a change in max speed. This is also picked up as a possible intersection in Potlach. Depending on your needs, you might consider only including those nodes that belong to three or more ways tagged as highway=*. Keep in mind that "highway" is also used for footpaths etc, which you might want to exclude too.

(10 Jun '15, 08:19) joost schouppe

Thanks scai. There are a lot of things going on with the Potlatch database that are very interesting to me - I know the code is open source, but are the databases used by the program open to the public as well?

(10 Jun '15, 08:20) jycai

good call joost, I'll keep that in mind

(10 Jun '15, 08:26) jycai

Does anyone know whether or not Potlatch is detecting these intersections, or are users marking them manually? I've seen a couple posts about how to merge ways and mark an intersection - does this mean that users have to mark them in order for Potlatch to display it?

(10 Jun '15, 08:28) jycai
1

What "Potlatch database"? Potlatch just uses the regular OSM database which you are free to set up on your own.

(10 Jun '15, 08:30) scai ♦

I'd like to see all of the nodes that Potlatch has tagged as "Intersections." I've already downloaded OSM data, but this tag on nodes does not exist.

(10 Jun '15, 08:36) jycai
2

There is no "intersection" tag. Potlatch just uses a heuristic for highlighting intersections. This is done by iD, JOSM and most other editors, too. It helps the user editing the map, that's all.

(10 Jun '15, 08:40) scai ♦

Where could I find this heuristic? I think it could potentially be pretty useful for what I'm trying to do. Thanks a bunch scai!

(10 Jun '15, 08:44) jycai
1

I'm not familiar with Potlatch2's code but this seems to be the relevant code line: https://github.com/openstreetmap/potlatch2/blob/9cab0567af82bf9e377bc42bfab96cdd9f95c68d/net/systemeD/halcyon/WayUI.as#L359

(10 Jun '15, 09:06) scai ♦

Thanks so much scai!

(10 Jun '15, 09:36) jycai
showing 5 of 13 show 8 more comments
Be the first one to answer this question!
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:

×530
×205
×64
×44
×8

question asked: 09 Jun '15, 16:48

question was seen: 1,986 times

last updated: 10 Jun '15, 09:36

powered by OSQA