GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - riatelab/geotoolbox: geojson toolbox

BranchesTags
Open more actions menu

Latest commit

 

History

236 Commits
236 Commits

Folders and files

NameName
Last commit message
Last commit date
docs
docs
 
 
examples
examples
 
 
img
img
 
 
src
src
 
 
test
test
 
 
.DS_Store
.DS_Store
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
doc_index.md
doc_index.md
 
 
jsdoc.json
jsdoc.json
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
rollup.config.mjs
rollup.config.mjs
 
 

Repository files navigation

npm jsdeliver license code size

geotoolbox@3

geotoolbox is a javascript tool for geographers. It allows one to manage GeoJSON properties (attribute data) and provides several useful GIS operations for thematic cartography. The aim of geotoolbox is to offer functions designed to handle geoJSON directly, not just single features or geometries. As a result, the library is particularly user-friendly for users with little experience of javascript development. From a technical point of view, geotoolbox is largely based on geos-wasm GIS operators (a big thanks to Christoph Pahmeyer 🙏), but also on d3.geo and topojson. Geotoolbox also works well with other cartographic libraries such as geoviz and bertin.js. Note that there are other GIS libraries like turf.js, which is really great.

logo

➡️ Installation

  • CDN
<script src="https://cdn.jsdelivr.net/npm/geotoolbox@3" charset="utf-8"></script>
  • npm
npm install geotoolbox@3
  • Observable notebooks
geo = require("geotoolbox@3");

➡️ Usage

Most functions take the same type of argument as input - a dataset and options - like geotoolbox.myfunction(data, {options}). Please note that functions based on geos-wasm are asynchronous.

  • A buffer example
const mybyffer = await geotoolbox.buffer(data, {dist: 1000});
  • Data handling example (add a field in a geoJSON)
geotoolbox.derive(data, {
  field: "gdppc", // the name of the new field
  value: "gdp/pop*1000", // a function to calculate the value
  mutate: true // to update the dataset
});
  • Tests if two geometries intersect
geotoolbox.intersects(data1, data2);

➡️ How it works?

See documentation api: https://riatelab.github.io/geotoolbox

About

geojson toolbox

riatelab.github.io/geotoolbox

Resources

Readme
MIT license
Activity
Custom properties

Stars

75 stars

Watchers

4 watching

Forks

10 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.