Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

format-spatial-ref

GeoXForm8Apache-2.01.1.0

Format WKID spatial reference variations into a standard structure.

arcgis, esri, format, reference, spatial, well-known, wkid

readme

format-spatial-ref

Format WKID spatial reference variations into a standard structure.

npm travis

Install

npm install format-spatial-ref

Usage

var formatSpatialRef = require('format-spatial-ref')

formatSpatialRef({"wkid": 4326})
formatSpatialRef('{"wkid": 4326}')
formatSpatialRef(4326)

// All of the above will return { "wkid": 4326 }

Contributing

Contributions welcome! Please read the contributing guidelines first.

License

Apache-2.0

changelog

format-spatial-ref change log

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

1.1.0 - 2018-06-19

Added

  • Coerce numeric-strings to numbers

1.0.0 - 2015-08-21

  • engage