Logoja e OpenStreetMap OpenStreetMap

Ditari i capiscuas

Shënimet e fundit në ditar

Simple script to bulk add non redundant tags on boundary=administrative ways

Postuar nga capiscuas më 22 Prill 2018 në English Përditësuar për herë të fundit më 24 Prill 2018.

Sometimes we find in some cities/countries some boundary ways (the ones that define the political borders of provinces/towns/countries) that are missing some tag(not appearing already in the relations, because it’s better to avoid redundant data.

Example of boundary way without any tag:

For the renders and 3rd party apps that is not a big problem because that way is indide the the corresponding relations with different admin_level, it can be shared by one or many relations, but what happens if we need to add a tag to those ways based on the data from their relations?

The script is the following, based on Dmitri Lebedev’s osm2python library (not python3 compatible yet, help migrating).

Shih shënimin e plotë

Fixing Jakarta boundaries (and II)

Postuar nga capiscuas më 30 Nëntor 2015 në English Përditësuar për herë të fundit më 1 Dhjetor 2015.

After few days of working with the quality assurance of the original OSM data extracted I finally finished the python script that generates the administrative boundary relations from level 5 to level 9

All the .osm files(original and results) can be downloaded here to check them out.

Here are the statistics and screenshots:

  • Original ways: 7717 (between level 8 and some level 9)
  • (after conversion) Splitted ways/segments: 21627

admin_level=9(in Indonesia: RT) 5006 Level9 in JOSM

Shih shënimin e plotë

Vendndodhja: Condongcatur, Depok, Sleman Regency, Special Region of Yogyakarta, Java, 55283, Indonesia

Fixing Jakarta's boundaries (Part I)

Postuar nga capiscuas më 16 Nëntor 2015 në English

After having announced in the Indonesia and Imports mailing list about my intentions of fixing the current administrative boundaries in Jakarta, capital of Indonesia.

So the first I did was to download the boundary:administrative ways in Jakarta area, by using the following Overpass API rule while downloading in JOSM.

(way["boundary"="administrative"];node(w); way(bn);); out meta;

Total boundary:administrative ways: 7809 of admin_level = 9 ways = 5082 of admin_level = 8 ways = 2717

I analyze the data and soon realize that there is a lot of overlapping ways, unjoined nodes with similar coordinates, and some areas that contain ways of admin_level=9 doesn’t have the father way of admin_level=8

Shih shënimin e plotë

Vendndodhja: RW 04, Gambir, Central Jakarta, Special capital Region of Jakarta, Java, 10110, Indonesia

Bulk conversion of administrative boundaries to new OSM format in Jakarta

Postuar nga capiscuas më 12 Nëntor 2015 në English Përditësuar për herë të fundit më 17 Nëntor 2015.

Hi everybody, apa kabar?, this is my first post in OpenStreetMap so I’m quite excited.

My name is Ivan Garcia and I’ve been contributing to OSM since many years now, I am currently living in Yogyakarta Indonesia where I do digital volunteering for various projects. I am an opensource python programmer and I love useful is OSM for the world, no wonder we all feel contributing back to the community when we have free time.

I realized that HOT Indonesia contributed adding most of the administrative boundaries of the Jakarta province in order to make a program for disaster management(flood related), my thumbs up for that team and their tremendous efforts, here is their blog

I see those boundaries have an obsolete OSM format to represent the boundaries, that is, still using the obsolete is_in tags, instead of the new boundary relations.

You can take a look at here:

osm.org/#map=17/-6.172219373575377/106.8088689627239 Boundary RW03 duplicates way with RW06 Boundary RW03 duplicates way with RW06

Shih shënimin e plotë

Vendndodhja: Kampung Jogoyudan, Gowongan, Jetis, Yogyakarta, Special Region of Yogyakarta, Java, 55232, Indonesia