Skip to content

NKAmapper/gml2osm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gml2osm

Convert GML to geojson and OSM format.

Usage

Usage: python3 gml2osm.py <url> [filename] [object type] [-osm]

Arguments:

  • url - URL of GML file, including zip files, for example from this folder.
  • filename - Optional filename in zip folder.
  • object type - Optional name of object type in GML to filter. If omitted all object types will be loaded.
  • -osm - Optional, will output in .osm file format instead of geojson.

The utm.py file should be located in the same folder as n50osm.py when running the program.

Notes

  • The gml2osm.py program loads a GML file and converts it into geojson or OSM format.
  • The program has been optimized for and has been tested with Kartverket/GeoNorge GML files.
  • The code may be run stand alone but it is also designed to be imported into other Python programs to load, parse, simplify and save GML data. Data transformations will then take place in the other programs.

Changelog

  • 0.3: Initial version.

References

About

Convert GML to geojson and OSM format

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages