OpenStreetMap 标志 OpenStreetMap

Rub21的日记

最近的日记文章

Changeset viewer plugin for JOSM

Rub21 于 2018年二月 9日 以 English 发布

A long time ago when I was starting the mapping in OpenStreetMap, I always wondered how I could see all the changes that have been made in a map in my area or another place where I worked, and have those changes in the JOSM background, and at the same time to make editions or verify according to the objects changed.

OSMCHA + Changeset-map are good tools to visualize the changeset, the plugin is consuming those API services to display the changesets. I am a fan of JOSM for faster editions with the high quality. Having these changesets in JOSM background helps to visualize the changes and edit the objects whether is necessary according to the made changes. image

How it works?

Set the map view in the place where you interest, pressed the button Get Changeset in the area, it will get the changeset, you can display more than one changeset.

If you want to display a particular changeset you can set the changeset id in the text field and pressed the button Display changeset

查看完整日记文章

Linting the open map of the world

Rub21 于 2016年五月12日 以 English 发布

The data team at Mapbox have built tools that allow detecting and cleaning these issues as they happen on the map.

Detecting issues with OSMlint

To detect issues, we run spatial analysis on the map data of the whole world everyday using OSMlint. This is made possible be leveraging the power of tile-reduce to analyze OpenStreetMap vector tiles using javascript. OSMlint consists of a set of validators which check the data on each tile for common issues in geometry and tags. An example validator is crossingHighways which detects roads that cross each other without an intersection.

Each validator produces a GeoJSON output of the OpenStreetMap geometries that are invalid and needs review.

Fixing issues with To-fix

To-fix is a micro tasking tool that helps us create tasks of issues to fix on OpenStreetMap. The issues collected with OSMlint is loaded into to-fix, each of which is then reviewed by a member of the mapping community or the Mapbox data team. Over 500,000 issues have been fixed so far using to-fix.

To-fix also allows marking issues as false positives. These are later investigated and used to improve the validator algorithm in OSMlint.

The linting pipeline

We’ve implemented an architecture that automates the detection of issues using OSMlint and loading them into to-fix on a daily basis.

查看完整日记文章

Osmlint to detect errors in OSM

Rub21 于 2016年三月 2日 以 English 发布 最后一次更新于2016年三月 3日。

We have been developing OSMLint as a tool identify common geometry and metadata problems OpenStreetMap data. OSMLint processes vector tiles with turf.js and TileReduce to produce geojson files of detected data errors.

In this post, I will demonstrate using OSMlint with OSM-qa-tiles to detect errors in OpenStreetMap.

  • Clone my sample repository and install required software.

git clone https://github.com/Rub21/run-osmlint

cd run-osmlint

./install.sh

  • To run this for your country, run the worker.sh. The worker.sh requires 2 parameters:
  • input vector tiles, get them from the OSM-QA tiles website,
  • boundingbox of your area.

sh ./worker.sh https://s3.amazonaws.com/mapbox/osm-qa-tiles/latest.country/brazil.mbtiles.gz "[-73.975067, -34.108073, -34.512177,5.5056583]"

The script runs all the available linters and produces a gist file that you can visualize.

screen shot 2016-03-01 at 16 41 19

查看完整日记文章

Combine Major highways using scripting plugin

Rub21 于 2015年十二月 8日 以 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

查看完整日记文章

The new To-Fix JOSM plugin makes working on OpenStreetMap micro tasks much faster. Usually, when working on micro tasks with To-Fix, users switch between the To-Fix web interface and their OpenStreetMap editor software. This plugin avoids the switch and allows editors to work with To-Fix tasks directly within the JOSM power editor for a smoother workflow. We use this plugin every day in our mapping activities like updating OpenStreetMap from Runkeeper routes.

Installing the plugin

If you’re not using JOSM yet, download and install it from josm.openstreetmap.de. To install the plugin, open JOSM, open the “Preferences” dialog, select “plugins”, click “update plugins” and select “tofix” from the list of plugins. Now confirm with OK and restart JOSM.

Working with the plugin

查看完整日记文章

En septiembre, el equipo Mapbox-Data se centró en el rastreo satelital de Ayacucho y la inspección de la cuidad, con el objetivo de tener en esta ciudad el mejor mapa en el Perú y América Latina. Éste es un impulso importante para el equipo de datos de Mapbox; completarla nos enseña acerca de las complejidades de los datos de OpenStreetMap y a su vez nos hace mejores cartógrafos.

screenshot from 2014-09-29 22 36 49

Estos fueron nuestros trabajos en el mapeo

### Fijación y mapeo de las calles Alrededor del 95% de las calles en Ayacucho ya están nombradas. En Algunos lugares en Ayacucho las calles no tienen nombres, estos sitios son descritos por nombres de bloques, como aquí.

查看完整日记文章