esri-extent
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

esri-extent

Get the Esri-formatted extent of a GeoJSON feature collection.

Install

npm install esri-extent

Usage

var esriExtent = require('esri-extent')
var example = require('./test/geojson-spec-example.json')
 
var extent = esriExtent(example)
 
// OR
 
esriExtent(example, function (err, extent) {
  if (err) throw err
 
  console.log(extent)
  // {
  //   xmin: 100,
  //   ymin: 0,
  //   xmax: 105,
  //   ymax: 1,
  //   spatialReference: {
  //     wkid: 4326,
  //     latestWkid: 4326
  //   }
  // }
})

License

ISC

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.3
    380
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.3
    380
  • 1.1.2
    0
  • 1.1.1
    1
  • 1.1.0
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i esri-extent

Weekly Downloads

381

Version

1.1.3

License

ISC

Last publish

Collaborators

  • jgravois
  • dmfenton
  • chelm