kartograph/kartograph.py — Issue #10: Add import of KML and GeoJSON
Author: gka
Created: 2012-03-07 14:11:34+00:00
State: open

To some degree, Kartograph could allow the import of KML and GeoJSON. Both formats are slightly more complex than shapefiles, since they can store hierarchical structures instead of just a plain list of features and can have arbitrary meta data for each feature. However, there might be a way to allow import.

Regarding the hierarchical structure one can

* simply flatten the hierarchy to import every feature
* use the hierarchy to filter features

Regarding the meta data we might simply assume that every feature has the same attributes and throw errors if not.