Skip to content

Instantly share code, notes, and snippets.

View sventech's full-sized avatar
🔎

Sven Pedersen sventech

🔎
View GitHub Profile
@sgillies
sgillies / geo_interface.rst
Last active October 20, 2025 13:07
A Python Protocol for Geospatial Data

Author: Sean Gillies Version: 1.0

Abstract

This document describes a GeoJSON-like protocol for geo-spatial (GIS) vector data.

Introduction

(ns nakkaya.ppxml
(:import [java.io StringReader StringWriter]
[javax.xml.transform TransformerFactory OutputKeys]
[javax.xml.transform.stream StreamSource StreamResult]))
(defn ppxml
"Accepts an XML string with no newline formatting and returns the
same XML with pretty-print formatting, as described by Nurullah Akaya
in [this post](http://goo.gl/Y9OVO)."
[xml-str]