
Product
Go Support Is Now Generally Available
Socket's Go support is now generally available, bringing automatic scanning and deep code analysis to all users with Go projects.
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)
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.2.6] - 2015-09-02
FAQs
Get all features from an Esri Feature Service
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.
Product
Socket's Go support is now generally available, bringing automatic scanning and deep code analysis to all users with Go projects.
Security News
vlt adds real-time security selectors powered by Socket, enabling developers to query and analyze package risks directly in their dependency graph.
Security News
CISA extended MITRE’s CVE contract by 11 months, avoiding a shutdown but leaving long-term governance and coordination issues unresolved.