Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
featureservice
Advanced tools
Get all features from an Esri Feature Service
A little module that extracts every feature from an Esri Feature Service. The real power in this module is that it's designed to page over a service and extract every single feature no matter what ArcGIS Server version the data is hosted on.
npm install featureservice
var FeatureService = require('featureservice')
// a url to a feature service
var url = 'http://....../FeatureServer/0'
var service = new FeatureService(url, options)
service.pages(function (err, pages) {
/* will give you links to all pages of data in the service*/
})
An object passed as the second parameter when initializing a service
Get the information describing the service itself
Get all the ids in a feature service layer
Get the json metadata for a service layer
Get statistics for a field and an array of stats.
service.statistics('id', ['min', 'max'], function (err, stats) {
console.log(stats.features)
})
Returns an array of page urls that would get every feature in the service
A browser ready build of this module is in dist/featureservice.min.js
.
<html>
<script src="dist/featureservice.min.js"></script>
<script>
var service = new FeatureService('http://koop.dc.esri.com/socrata/seattle/2tje-83f6/FeatureServer/0', {})
service.statistics('id', ['max'], function (err, stats) {
console.log(err, stats)
})
</script>
</html>
[1.5.6] - 2016-04-06
FAQs
Get all features from an Esri Feature Service
The npm package featureservice receives a total of 32 weekly downloads. As such, featureservice popularity was classified as not popular.
We found that featureservice demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.