Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 1.11 KB

README.md

File metadata and controls

20 lines (14 loc) · 1.11 KB

osm2kml

Convert nodes from OSM to KML file.

Usage

python osm2kml.py [input filename] [folder tag] [name tag] [description tags]

Parameters:

  • input filename - Name of OSM input file.
  • folder tag - Tag in OSM file which will be used to group nodes into KML folders (optional; empty value "" permitted).
  • name tag - Tag in OSM file which will be used as name tag in KML (default: name; empty value "" permitted).
  • description tags - List of tags in OSM which will be included in description tag in KML (default: description; empty value "" permitted).

The output filename will be the same as the input filename plus ".kml".

Examples

  • python osm2kml.py petrol_stations.osm - No folders, name and description tags from OSM file included by default.
  • python osm2kml.py petrol_stations.osm brand branch opening_hours - Brand tag determines folder, branch tag as name, opening_hours as description.
  • python osm2kml.py petrol_stations.osm "" branch brand opening_hours - No folders, branch tag as name, brand and opening_hours as description.