8000 GitHub - samfoo/mercator: Clojure library for translating from GPX and KML to GeoJSON (and maybe more in the future?)
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Clojure library for translating from GPX and KML to GeoJSON (and maybe more in the future?)

Notifications You must be signed in to change notification settings

samfoo/mercator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mercator reads GPX and KML

... into a clojure persistent map in the format of GeoJSON.

Installation

Include in your project.clj

[mercator "0.1.1"]

Usage

(require 'mercator.gpx)

(-> "secret-hideout.gpx"
    (java.io.File.)
    (io/input-stream)
    (mercator.gpx/parse))

;; {:type "FeatureCollection"
;;  :features [{:type "Feature"
;;              :properties {:name "Way to Mordor"}
;;              :geometry {:type "LineString"
;;                         :coordinates [[90.86062421614008
;;                                        34.9328621088893
;;                                        0.0]
;;                                       [90.86092208681491
;;                                        24.93293237320851
;;                                        0.0]]}}]}

About

Clojure library for translating from GPX and KML to GeoJSON (and maybe more in the future?)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0