Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@esri/proj-codes
Advanced tools
This module provides a method for looking up information about the Coordinate Reference Systems (CRS) shipped with ArcGIS.
Provide a Well Known ID (WKID) to the lookup()
method and the CRS Name, Well Known Text (WKT) and other metadata will be returned.
npm install @esri/proj-codes
Then require the module, call the lookup
method and pass in your well known id of choice.
const codes = require('@esri/proj-codes')
const crs = codes.lookup(3857)
crs.name
> 'WGS_1984_Web_Mercator_Auxiliary_Sphere'
crs.wkt
> 'PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984"...'
crs.description
> 'WGS 1984 Web Mercator Major Auxiliary Sphere'
crs.authority
> 'EPSG'
crs.deprecated
> 'no'
crs.extent
> { "slat": -85.06, "nlat": 85.06, "llon": -180.0, "rlon": 180.0 }
// this works too
codes.lookup(3857).name
> 'WGS_1984_Web_Mercator_Auxiliary_Sphere'
Find a bug or want to request a new feature? Please let us know by submitting an issue.
Esri welcomes contributions from anyone and everyone. Please see our guidelines for contributing.
Copyright © 2010-2020 Esri
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
A copy of the license is available in the repository's LICENSE file.
[2.7.0] - 2020-12-17
FAQs
Get WKT and other metadata associated with an Esri/EPSG factory code.
The npm package @esri/proj-codes receives a total of 1,106 weekly downloads. As such, @esri/proj-codes popularity was classified as popular.
We found that @esri/proj-codes demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.