Get the latest tech news

Map Machine: Python renderer for OpenStreetMap with custom icons


Python renderer for OpenStreetMap with custom icons intended to display as many map features as possible - enzet/map-machine

For man_made= mast distinguish types (communication, lighting, monitoring, and siren) and construction (freestanding or lattice, and using of guys) are rendered by combining 7 unique icon shapes. For natural= volcano status (active, dormant, extinct, or unspecified) and type (stratovolcano, shield, or scoria) are rendered by combining 7 unique icon shapes. OptionDescription-i,--input<path> input XML file name or names (if not specified, file will be downloaded using the OpenStreetMap API)-o,--output<path> output SVG file name, default value: out/map.svg-b,--boundary-box<lon1>,<lat1>,<lon2>,<lat2> geo boundary box--cache<path> path for temporary OSM files, default value: cache-z,--zoom<float> OSM zoom level, default value: 18.0-c,--coordinates<latitude>,<longitude> coordinates of any location inside the tile-s,--size<width>,<height> resulted image sizeOptionDescription-c,--coordinates<latitude>,<longitude> coordinates of any location inside the tile-t,--tile<zoom level>/<x>/<y> tile specification--cache<path> path for temporary OSM files, default value: cache-b,--boundary-box<lon1>,<lat1>,<lon2>,<lat2> construct the minimum amount of tiles that cover the requested boundary box-z,--zoom<range> OSM zoom levels; can be list of numbers or ranges, e.g. 16-18, 16,17,18, or 16,18-20, default value: 18-i,--input<path> input OSM XML file name (if not specified, the file will be downloaded using the OpenStreetMap API)Specify the tile coordinates:

Get the Android app

Or read this on Hacker News

Read more on:

Photo of OpenStreetMap

OpenStreetMap

Photo of custom icons

custom icons

Photo of Map Machine

Map Machine

Related news:

News photo

The current state of map design in OpenStreetMap