GithubHelp home page GithubHelp logo

kustomzone / terriajs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from terriajs/terriajs

0.0 3.0 0.0 32.39 MB

A library for building rich, web-based geospatial data explorers.

Home Page: http://terria.io

License: Other

JavaScript 95.75% CSS 4.20% HTML 0.04%

terriajs's Introduction

TerriaJS

Greenkeeper badge

Join the chat at https://gitter.im/TerriaJS/terriajs Build Status Docs

Terria logo

TerriaJS is a library for building rich, web-based geospatial data explorers, used to drive National Map, AREMI and NEII Viewer. It uses Cesium and WebGL for a full 3D globe in the browser with no plugins. It gracefully falls back to 2D with Leaflet on systems that can't run Cesium. It can handle catalogs of thousands of layers, with dozens of geospatial file and web service types supported. It is almost entirely JavaScript in the browser, meaning it can even be deployed as a static website, making it simple and cheap to host.

Features

  • Nested catalog of layers which can be independently enabled to create mashups of many layers.
  • Supports GeoJSON, KML, CSV (point and region-mapped), GPX and CZML file types natively, and others including zipped shapefiles with an optional server-side conversion service.
  • Supports WMS, WFS, Esri MapServer, ABS ITT, Bing Maps, OpenStreetMap-style raster tiles, Mapbox, Urthecast, and WMTS item types.
  • Supports querying WMS, WFS, Esri MapServer, CSW, CKAN and Socrata services for groups of items.
  • 3D globe (Cesium) or 2D mode (Leaflet). 3D objects supported in CZML format.
  • Time dimensions supported for CSV, CZML, WMS. Automatically animate layers, or slide the time control forward and backward.
  • Drag-and-drop files from your desktop the browser, for instant visualisation (no file upload to server required).
  • Wider range of file types supported through server-side OGR2OGR service (requires upload).
  • All ASGS (Australian Statistical Geographic Standard) region types (LGA, SA2, commonwealth electoral district etc) supported for CSV region mapping, plus several others: Primary Health Networks, Statistical Local Areas, ISO 3 letter country codes, etc.
  • Users can generate a reusable URL link of their current map view, to quickly share mashups of web-hosted data. Google's URL shortener is optionally used.

Terria screenshot

Who's using TerriaJS?

Sites developed by Data61

Prototypes and sites in development

Not Data61

Sites we're aware of that are using TerriaJS. These are not endorsements or testimonials.

Technical

  • Built in Ecmascript 2015, compiled with Babel to ES5 using Gulp.
  • Supports IE9 and later.
  • TerriaJS Server component runs in NodeJS and provides proxying for web services that don't support CORS or require authentication.
  • Dependencies are managed in NPM and assembled using WebPack.

Getting Started

The easiest way to build your own Terria-based map is using the TerriaMap starting point. This gives you the HTML structure, server and build processes you need to get a site up and running immediately.

Pre-requisites: Git, NodeJS, NPM, GDAL (optional).

sudo npm install -g gulp                           # Install gulp, the build tool
git clone https://github.com/TerriaJS/TerriaMap    # Get the code
cd TerriaMap                                       
npm install                                        # Install dependencies
npm start                                          # Start the server in the background
gulp watch                                         # Build the site, and watch for changes.

Now visit the site in your browser at http://localhost:3001.

More information: Deploying your own Terria Map

Documentation about working with Terria and developing it is at http://terria.io/Documentation

JavaScript documentation is at http://nationalmap.gov.au/build/TerriaJS/doc/reference

Components and naming

  • Terria™ is the overall name for the spatial data platform, including closed-source spatial analytics developed by Data61.
  • TerriaJS is this JavaScript library consisting of the 2D/3D map, catalog management and many spatial data connectors.
  • Cesium is the 3D WebGL rendering library used by TerriaJS, which provides many low-level functions for loading and displaying imagery and spatial formats such as GeoJSON and KML.
  • TerriaMap is a complete website starting point, using TerriaJS.
  • TerriaJS-Server is a NodeJS-based server that provides proxying and support services for TerriaJS.
  • NationalMap is the flagship Terria deployment, and the origin of the TerriaJS library.

Related components

  • Catalog Editor, an automatically generated web interface for creating and editing catalog (init) files.
  • Generate-TerriaJS-Schema, a tool which automatically generates a schema for validating catalog files, and also the editor, by processing TerriaJS source code.
  • TerriaMapStatic, a pre-built version of TerriaMap, which can be deployed as a static HTML website, such as on Github Pages.

Using TerriaJS in an existing application

npm install terriajs

TerriaJS is composed of a number of CommonJS modules, making it easy to incorporate only the parts you need into your application. Building a TerriaJS application consists of three steps:

  1. Build the code with webpack (or a similar tool).
  2. Build the CSS with less.
  3. Copy the runtime resources to a directory accessible from your application's web server.

The entire process can be easily automated using gulp. See TerriaMap's gulpfile.js for an example.

index.js requires-in various TerriaJS components and initializes the user interface.

index.less customizes various aspects of the appearance and @imports the less files for the TerriaJS components that the application uses.

All assets in node_modules/terriajs/wwwroot should be copied to [your app's web root directory]/build/TerriaJS.

We'd like to thank these awesome online services that provide us with free accounts for our open source work! BrowserStack, Sauce Labs, Travis CI

Join the community

Get in touch!

terriajs's People

Contributors

a-stacey avatar alexgilleran avatar arrayjam avatar axman6 avatar bsimyo avatar chloeleichen avatar geoffrowland avatar gitter-badger avatar greenkeeper[bot] avatar greenkeeperio-bot avatar hilarycinis avatar jasonjlock avatar jeanpul avatar jiwalker-usgs avatar keattang avatar kring avatar layoric avatar meh9 avatar nahidakbar avatar racingtadpole avatar rdengate avatar rsignell-usgs avatar sppigot avatar stevage avatar steve9164 avatar tobybellwood avatar travissimon avatar x-code-x avatar

Watchers

 avatar  avatar  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.