Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

davetimmins/ScriptCs.ArcGIS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ScriptCs.ArcGIS

Build Status Build status NuGet Status

A scriptcs script pack for ArcGIS.PCL

###Quick Start

var arcgis = Require<ArcGISPack>();
var gateway = arcgis.CreateGateway("http://services.arcgisonline.com/arcgis");

// Now do whatever you want!

###Going further

The returned gateway supports the following as typed operations:

  • Query<T> - query a layer by attribute and / or spatial filters
  • QueryForCount - only return the number of results for the query operation
  • QueryForIds - only return the ObjectIds for the results of the query operation
  • Find - search across n layers and fields in a service
  • ApplyEdits<T> - post adds, updates and deletes to a feature service layer
  • Geocode - single line of input to perform a geocode using a custom locator or the Esri world locator
  • Suggest - lightweight geocode operation that only returns text results, commonly used for predictive searching
  • ReverseGeocode - find location candidates for a input point location
  • Simplify<T> - alter geometries to be topologically consistent
  • Project<T> - convert geometries to a different spatial reference
  • Buffer<T> - buffers geometries by the distance requested
  • DescribeSite - returns a url for every service discovered
  • Ping - verify that the server can be accessed
  • PublicKey - admin operation to get public key used for encryption of token requests
  • ServiceStatus - admin operation to get the configured and actual status of a service

In all cases above T is a geometry type of Point, MultiPoint, Polyline, Polygon or Extent

If you need to call secure resources and your ArcGIS Server supports token based authentication then specify a TokenProvider in your call to CreateGateway or if the token service is at the same root url then you can just pass in the username and password

var arcgis = Require<ArcGISPack>();
var gateway = arcgis.CreateGateway("http://localhost/arcgis", new TokenProvider("http://otherhost/arcgis", "username", "password"));

var gateway2 = arcgis.CreateGateway("http://localhost/arcgis", "username", "password");

Refer to the ArcGIS.PCL project for more information on what you can call.

About

📝 A ScriptCs script pack for ArcGIS.PCL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published