Skip to content

NKAmapper/osm2kml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

Converts OSM files to KML

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages