rmarianski / geoscript-clj

A clojure implementation of the GeoScript project

Home Page:geoscript.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

geoscript clojure

Geoscript is a clojure library for working with Geospatial data. Its based on GeoTools and JTS. If you are looking for other GeoTools based scripting libraries please see the Geoscript project.

Requirements

  1. Java JDK
  2. Apache Maven
  3. Leiningen

Install

1. Install Java Arch linux:

sudo pacman -S jdk

Install on debian/ubuntu:

sudo aptitude install sun-java6-jdk

2. Install Maven Install on Arch Linux:

sudo pacman -S maven

Install on Ubuntu:

sudo aptitude install maven2
  1. Install Leiningen:

geoscript requires leiningen. Leiningen is a clojure based wrapper to maven. Please see the leiningen github project for install instructions.

  1. To install geo.clj and its dependences:

    git clone git://github.com/iwillig/geoscript.git cd geoscript lein deps

Usage

To use geoscript:

lein repl
(use 'geoscript.io)
(use 'geoscript.render)
(viewer (-> (data-store "shp:///path/to/shapefile.shp")
   (read-features)) nil)

About

A clojure implementation of the GeoScript project

geoscript.org


Languages

Language:Clojure 100.0%