Export to GeoJSON

Fixes #239 and #240.