Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
terraformer
Advanced tools
Terraformer is a small javascript library for working with GeoJSON. It is designed to be fast lightweight and usable in large numbers of environments including, browsers, AMD (require.js or Dojo), Node.js and inside Web Workers.
addVertex
Gizipped and minified Terraformer comes to about 6kb.
Terraformer on Node.js is split into multiple small packages for easy consumption.
$ npm install terraformer
$ npm install terraformer-rtree
$ npm install terraformer-wkt-parser
$ npm install terraformer-arcgis-parser
Tests are written in Jasmine and can be run through $ grunt
or $ npm install
then $ npm test
. To run the tests run the following commands to setup PhantomJS and Grunt...
$ npm install grunt -g
$ brew install phantomjs
Then run the tests with $ grunt
which will buld all the files and then run the tests. You can also run $ grunt watch
which will run the tests when source files change.
Running the $ grunt build
command will build the libraries to dist/node
and dist/browser
. If you want to build with a different version number run $ grunt build-versioned
.
Terraformer.GeoStore
new Terraformer.Stores.Memory
new Terraformer.Stores.LocalStorage
new Terraformer.Stores.WebSQL
new Terraformer.Stores.PostGIS
Terraformer.Tools.isMercator
and Terraformer.Tools.isGeographic
new Terraformer.Position()
new Terraformer.Point()
new Terraformer.MultiPoint()
new Terraformer.LineString()
new Terraformer.MultiLineString()
new Terraformer.Polygon()
new Terraformer.MultiPolygon()
new Terraformer.Feature()
new Terraformer.FeatureCollection()
new Terraformer.GeometryCollection()
new Terraformer.Circle()
new Terraformer.ArcGIS.parse(arcgis);
new Terraformer.ArcGIS.to(geojson);
new Terraformer.WKY.parse(wkt);
new Terraformer.RTree(json);
new Terraformer.GeoStore(store);
new Terraformer.Stores.Local(namespace);
new Terraformer.Stores.Memory(namespace);
new Terraformer.Stores.WebSQL(namespace);
new Terraformer.Stores.PostGIS(namespace);
// Does shape one contain shape 2?
Terraformer.Tools.contains(shape1, shape2)
// Does shape one intersect shape 2?
Terraformer.Tools.intersects(shape1, shape2);
// Creates a 32 point polygon representing a circle
Terraformer.Tools.createCircle([x,y], radius, steps=64);
FAQs
A Geo-toolkit built in Javascript.
The npm package terraformer receives a total of 41,167 weekly downloads. As such, terraformer popularity was classified as popular.
We found that terraformer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.