Socket
Book a DemoInstallSign in
Socket

arcgis-featureservice

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arcgis-featureservice

A simple GeoJSON API for dealing with ArcGIS Feature Services

latest
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

ArcGIS Feature Service

A simple GeoJSON API for dealing with ArcGIS Feature Services.

Install

npm install arcgis-featureservice

Usage

Initialize a feature service by providing a url and idField, and optionally a token.

var FeatureService = require('arcgis-featureservice');

var svc = new FeatureService({
  url: 'http://mysite.com/arcgis/rest/services/MyService/FeatureServer/0',
  idField: 'OBJECTID',
  token: 'abc123'
});

Perform the basic CRUD operations, using GeoJSON as the data format.

svc.get({ where: '1=1' }, function (err, featureCollection) {/* ... */});
svc.add(feature, function (err) {/* ... */});
svc.update(feature, function (err) {/* ... */});
svc.delete(id, function (err) {/* ... */});

Debugging

This module uses the debug module to provide debugging information during usage. To enable it, set the DEBUG environment variable to 'arcgis-featureservice'. See https://github.com/visionmedia/debug#usage for more details.

Testing

npm test

Keywords

esri

FAQs

Package last updated on 26 Jan 2015

Did you know?

Socket

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.

Install

Related posts