Git Product home page Git Product logo

geoscript-js's Introduction

geoscript.js

GeoScript in JavaScript

Copyright (c) 2009-2012 Tim Schaub

Released under the MIT license. Please see the license.txt for full detail.

Download and Installation

The latest release of GeoScript JS can be found on the downloads page. To install, extract the zip archive somewhere onto your filesystem. In the bin folder you'll find a geoscript executable. Adding this bin folder to your path makes for easy launching of GeoScript from anywhere.

Running GeoScript JS

Change into the directory where you extracted the GeoScript JS download. From there, you can launch the GeoScript JS shell.

./bin/geoscript

Once running the shell, you can pull in GeoScript modules with require.

js> var geom = require("geoscript/geom")
js> var p = new geom.Point([1, 2])
js> p.buffer(10)
<Polygon [[[11, 2], [10.807852804032304, 0.04909677983871763], [10.23...>

When you're done in the shell, exit with quit().

js> quit()

To run a script that uses the GeoScript JS modules, include the path to your script.

./bin/geoscript yourscript.js

Learning GeoScript JS

See the GeoScript JS website for details on getting started using GeoScript JS.

Getting set up for development

If you'd like to contribute to GeoScript JS development, clone the repository and then use Maven to pull in dependencies and run tests.

git clone git://github.com/tschaub/geoscript-js.git
cd geoscript-js
mvn install

After pulling down the dependencies, you can launch the shell and use GeoScript JS modules as described above - with one exception: use the geoscript-dev script in the bin directory.

Generating a release

Update version numbers in the main pom.xml file. Generate an archive with all dependencies included:

mvn assembly:single

For applications that already have the GeoTools dependency, an archive is published in repo.opengeo.org that contains only the JavaScript modules:

mvn deploy

geoscript-js's People

Contributors

jdeolive avatar jstuhr avatar tschaub avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.