Package detail

esri-extent

GeoXForm31kISC1.1.3

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

bounding, box, collection, esri

readme

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

changelog

esri-extent change log

All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.

1.1.3 - 2018-01-10

Fixed

  • make sure the typings make it into the npm tarball (🙏bcherny🙏)

1.1.2 - 2018-01-02

Added

  • TypeScript typings (🙏bcherny🙏)

1.1.1 - 2015-08-03

Added

  • add large point feature collection test to assure parity with koop.Extent

Changed

  • moved to koopjs github org

1.1.0 - 2015-03-20

Added

  • add support for multipoint geojson type (#1)
  • add more robust tests for complex multiline and multipolygon feature collections

Fixed

  • improve handling of polygons and multipolygons (#1 & #2)
  • fix caching bug with misplaced bbox variable

1.0.0 - 2015-03-19

  • engage