Skip to content

A quick and easy way to download data for a GIS layer on an ESRI MapServer.

License

Notifications You must be signed in to change notification settings

cityssm/esri-mapserver-layer-dl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

ESRI MapServer Layer Download

npm (scoped) DeepSource codecov Coverage Testing

A quick and easy way to download data for a GIS layer on an ESRI MapServer. Handles server record limitations by making paged requests automatically.

Installation

npm install @cityssm/esri-mapserver-layer-dl

Usage

import downloadLayer from '@cityssm/esri-mapserver-layer-dl'

const response = await downloadLayer('https://gis.example.com/MapServer/0', {
  where: "streetName = 'QUEEN STREET'"
})

console.log(response)

/*
[
  {
    civicNumber: '10',
    streetName: 'QUEEN STREET',
    'geometry.x': 698005.6099999994,
    'geometry.y": 5160237.6699999999
  },
  ...
  {
    civicNumber: '12',
    streetName: 'QUEEN STREET',
    'geometry.x': 698005.6099999994,
    'geometry.y": 5160237.6699999999
  }
]
 */

About

A quick and easy way to download data for a GIS layer on an ESRI MapServer.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published