All Projects → geosquare → geojson-bbox

geosquare / geojson-bbox

Licence: MIT License
Calculates extent/bbox for a given valid geojson object.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to geojson-bbox

geok
Kotlin geometry library
Stars: ✭ 29 (+16%)
Mutual labels:  geojson, geometry
Indonesia Postal And Area
Indonesia Postal Code & Area (BPS)
Stars: ✭ 64 (+156%)
Mutual labels:  geojson, geometry
GeoJSON4EntityFramework
Create GeoJSON from Entity Framework Spatial Data or WKT
Stars: ✭ 18 (-28%)
Mutual labels:  geojson, geometry
osm-static-maps
Openstreetmap static maps is a nodejs lib, CLI and server open source inspired on google static map service
Stars: ✭ 130 (+420%)
Mutual labels:  geojson, geometry
geofeatures2
A lightweight, high performance geometry library in Swift.
Stars: ✭ 18 (-28%)
Mutual labels:  geojson, geometry
geojson
GeoJSON classes for R
Stars: ✭ 32 (+28%)
Mutual labels:  geojson, bbox
geoh
Transform a geoJSON into a list of geohashes that intersect with it
Stars: ✭ 26 (+4%)
Mutual labels:  geojson, geometry
d3.geometer
[NOT MAINTAINED] A D3js library for drawing polytopes, angles, coordinates, geometries and more.
Stars: ✭ 18 (-28%)
Mutual labels:  geometry
examples
Example nteract notebooks with links to execution on mybinder.org
Stars: ✭ 24 (-4%)
Mutual labels:  geojson
polylabel cmd
A command-line utility for generating optimum polygon label coordinates from GeoJSON
Stars: ✭ 12 (-52%)
Mutual labels:  geojson
terraformer-arcgis-parser
No description or website provided.
Stars: ✭ 30 (+20%)
Mutual labels:  geojson
jenn3d
A Toy for Visualizing Coxeter Polytopes
Stars: ✭ 39 (+56%)
Mutual labels:  geometry
galileo
Scala Math - Numerical (Matlab-like) and Symbolic (Mathematica-like) tool
Stars: ✭ 62 (+148%)
Mutual labels:  geometry
countriesNowAPI
CountriesNow is an Open source API for retrieving geo-information for countries, including their states, cities, population, etc. 🌎
Stars: ✭ 78 (+212%)
Mutual labels:  geojson
Unity-Int-Vectors
Library that adds Vector2i and Vector3i classes, which are integer counterparts to Vector2 and Vector3.
Stars: ✭ 23 (-8%)
Mutual labels:  geometry
tripbot9000
Procedural generation of geometric patterns and fractals.
Stars: ✭ 22 (-12%)
Mutual labels:  geometry
spherical-cow
A high volume fraction sphere packing library
Stars: ✭ 24 (-4%)
Mutual labels:  geometry
pymadcad
Simple yet powerful CAD (Computer Aided Design) library, written with Python.
Stars: ✭ 63 (+152%)
Mutual labels:  geometry
birkhoff
Euclidean plane and its relatives; a minimalist introduction.
Stars: ✭ 15 (-40%)
Mutual labels:  geometry
xyz-hub
XYZ Hub is a RESTful web service for the access and management of geospatial data.
Stars: ✭ 43 (+72%)
Mutual labels:  geojson

geojson-bbox

Calculates extent/bbox for a given valid geojson object. When passed a valid geojson returns an array of bounding box

installation

npm install geojson-bbox

usage

var bbox = require('geojson-bbox');
var feature = { 
  type: 'Feature',
  geometry: {
    type: 'LineString', 
    coordinates: [
      [10, 40], [40, 30], [20, 20], [30, 10]
    ]
  }
};
var extent = bbox(feature); 
// extent is array 
// [10, 10, 40, 40]

developing

Once you run

npm isntall

then for running test

npm run test

to create build

npm run build

license

This project is licensed under the terms of the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].