Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A clojure implementation of the GeoScript project

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 src
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.rst
Octocat-spinner-32 project.clj
README.rst

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)
Something went wrong with that request. Please try again.