Home > geoscript-clj

geoscript-clj

Geoscript-clj is a project mainly written in Clojure, it's free.

A clojure implementation of the GeoScript project

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

. Java JDK

. Apache Maven

. Leiningen

Install

  1. Install Java Arch linux::

    sudo pacman -S jdk

Install on debian/ubuntu::

sudo aptitude install sun-java6-jdk

  1. 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)

Previous:UrlParse