Biểu trưng OpenStreetMap OpenStreetMap

Combine Major highways using scripting plugin

Do Rub21 đăng vào 08 tháng 12 năm 2015 bằng English.

Mapbox data-team are working on realigning major highways in Japan, together with OSM Japan Community. This is a collective effort to improve the quality of OSM maps in Japan. For all of us who worked on Japan this is a very difficult task, because many roads are split into several parts with the same version, tags and direction.

To solve this problem I created a script to use in josm-scripting-plugin,that allows us to combine highways which are:

  • Highways with version =1
  • Highways which use tags (motorway,trunk,primary,secondary,tertiary)
  • Highways with the same direction
  • Highways with the same tags
  • Highways which are not part of a relation
  • Highways intersections with an angle of > 150 && < 210 degrees

You can find the script and documentation here.

script4

If you have the chance, feel free to modify the script, add support for Residential roads or other roads, and for any type of roads

I would like to know from community if there is a official repository to add this kind of script to share with whole community. If it exist, let me know.

Biểu tượng thư điện tử Biểu tượng Bluesky Biểu tượng Facebook Biểu tượng LinkedIn Biểu tượng Mastodon Biểu tượng Telegram Biểu tượng X

Thảo luận

Bình luận của DaCor vào 8 tháng 12 năm 2015 lúc 16:39

I only ask because you don’t mention it, but does your script avoid merging where pieces belong to relations?

Bình luận của manings vào 9 tháng 12 năm 2015 lúc 03:37

@DaCor,

avoid merging where pieces belong to relations?

Yes.

Bình luận của Rub21 vào 9 tháng 12 năm 2015 lúc 04:06

Hi DaCor:

Highways which are not part of a relation

the scrpit not include the ways belong relations

Bình luận của PlaneMad vào 9 tháng 12 năm 2015 lúc 04:30

Thanks Rub21, this really saved a lot of time when cleaning up the Japan data.

Bình luận của nyampire vào 9 tháng 12 năm 2015 lúc 05:28

Thank you. Great plugin!

Đăng nhập để nhận xét