Skip to content

Instantly share code, notes, and snippets.

View planemad's full-sized avatar

Arun Ganesh planemad

View GitHub Profile
@planemad
planemad / nid-map-design-workshop.md
Last active August 29, 2015 14:15
Intermediate map design workshop

Objective: Make students comfortable with creating interactive map based visualizations that can be used in their projects.

Tool chain: mapbox editor > overpass-turbo > openstreetmap > geojson.io > mapbox studio (download) > github pages > mapbox.js > turf.js

Duration: 16 hours (3 days)

Schedule

Background Tasks

  • Participants can explore existing maps and geo visualizations on the web and select one of choice that interests them.
@planemad
planemad / short-gis-workshop.md
Last active August 29, 2015 14:16
Short GIS workshop

Objective: Make particpants understand how to use openstreetmap data in their GIS projects and to leverage its value using custom cartography and web interactivity.

Tool chain: Openstreetmap > Overpass-turbo > Mapbox Studio (download) > Mapbox.js > Turf.js

Duration: 2 hours

Schedule

Background Tasks

  • Signup with Mapbox using your .edu email
@planemad
planemad / studio-exercise.md
Last active August 29, 2015 14:19
Studio Exercise

Studio Exercise

Use the Mapbox Studio Guides for reference.

1: Introduction

  • Create a new style project using the Basic style
  • Change the color of the land to black
  • Change the color of water to lighten(@land,50%)
  • Change color of roads to red
  • Brighten the color of place names so that they are visible
  • Show names of places only after zoom level 7

Nepal HOT Validation: Road Network for Routing

High quality maps is critical to field work. Experienced mappers may validate existing data to fix serious errors and invalidate an area for further work.

Task Briefing

Review the work of existing mappers using the HOT Task Manager. Our priority is routing and we will focus on Road network tasks 1,2,3,6. Pick and unreviewed area and throughly examine the area for the following issues:

Incomplete/Low quality Task If there are numeruous roads missing and requires a lot more work to improve the quality, /invalidate this task/ so that others can continue to improve it. Add a comment clearly describing the reason for invalidating and what areas needs improvement.

Isolated Segments

  • Enable your home folder from your Finder preferences>Sidebar section

  • From Finder, browse to your home folder and Goto View>Show View Options or Cmd+Shift+J and enable the Show Library Folder option
@planemad
planemad / gist:5d8cd7dd885048341458
Last active August 29, 2015 14:24
Mapping roads

Mapping roads

A road is a thoroughfare, route, or way on land between two places that has been paved or otherwise improved to allow travel by some conveyance, including a horse, cart, bicycle, motor vehicle or foot - Wikipedia

Roads are one of the most useful features of a map, as they help us find the best travel path between any two points based on our preferences.

Find the shortest driving route Khanpur to Rajanpur. Assume your car cannot swim. untitled

This is a Japanese version of the post by user:PlaneMad - Data issues in Japan

Over the last few weeks, the data team at Mapbox have been investigating the unusually large number of unconnected highways in Japan which otherwise looked comprehensively mapped.

screenshot 2015-10-08 17 25 25 Broken highways in Japan. Bigger circles indicate highways of higher classification

Looking into the data threw up quite a few interesting findings:

Adding imagery in JOSM

You can add imagery sources from WMS, TMS or even a scanned map source into JOSM for mapping into OpenStreetMap.

Imagery Sources

The imagery menu lists common imagery sources that is open to use for tracing for OSM. The most common imagery to use in from Bing which has fairly high resolution worldwide coverage at 30m/px resolution.

Tile Map Service (TMS)

Web Map Service (WMS)

AC Boundaries

  • Export attribute table to assembly_constituencies.csv including .csvt headers
  • Convert field types using field calculator
    • stateCode = toInt("ST_CODE")
    • stateCode = toInt("ST_CODE")
  • Import into GRASS v.in.ogr.qgis as assembly_constituencies
  • Remove small areas v.clean.rmarea with threshold 10000 : 617 areas of total size 574572 removed
  • Dissolve into parliamentary_constituencies with field PC_NAME : v.reclass complete. 4391 features reclassed.