Skip to content

Instantly share code, notes, and snippets.

Avatar

Toan Nguyen congtoan

  • University of Economics Ho Chi Minh city
  • Ho Chi Minh City
View GitHub Profile
@congtoan
congtoan / keyholemarkup_converter.py
Created Mar 21, 2020 — forked from linwoodc3/keyholemarkup_converter.py
Convert KML/KMZ to CSV or KML/KMZ to shapefile or KML/KMZ to Dataframe or KML/KMZ to GeoJSON. Full script with classes to convert a KML or KMZ to GeoJSON, ESRI Shapefile, Pandas Dataframe, GeoPandas GeoDataframe, or CSV. Can write the converted file directly to disk with no human intervention.
View keyholemarkup_converter.py
# Author:
# Linwood Creekmore III
# email: valinvescap@gmail.com
# Acknowledgements:
# http://programmingadvent.blogspot.com/2013/06/kmzkml-file-parsing-with-python.html
# http://gis.stackexchange.com/questions/159681/geopandas-cant-save-geojson
# https://gist.github.com/mciantyre/32ff2c2d5cd9515c1ee7
View polygon-with-a-hole.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.