🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

ArcGIS.PCL.Signed

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ArcGIS.PCL.Signed

ArcGIS.PCL can be used to call ArcGIS Server resources, including those from Portal for ArcGIS and ArcGIS Online. The resources can be secure or unsecure and the ArcGIS Online token service and OAuth token service are supported. Supports the following as typed operations: • CheckGenerateToken - create a token automatically via an ITokenProvider • 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 usning 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 Also supports converting GeoJSON <-> ArcGIS Features. Works with .NET for Windows Store apps, .NET framework 4 and higher, Silverlight 5, Windows Phone 8 and higher, Xamarin Android and Xamarin iOS.

3.2.1
NuGet
Version published
Maintainers
1
Created
Source

To get started with ArcGIS.PCL first create an ISerializer implementation

The easiest way is to add a reference to either ArcGIS.PCL.JsonDotNetSerializer or ArcGIS.PCL.ServiceStackV3Serializer via NuGet.

Now you can have this ISerializer used by your gateway and token providers automatically by initializing it

========================= Json.NET example ==============================

ArcGIS.ServiceModel.Serializers.JsonDotNetSerializer.Init();

==================== ServiceStack.Text example ==========================

ArcGIS.ServiceModel.Serializers.ServiceStackSerializer.Init();

Now you can go ahead and create your gateway classes

========================== Gateway use cases ============================

ArcGIS Server with non secure resources

var gateway = new PortalGateway("http://sampleserver3.arcgisonline.com/ArcGIS/");

ArcGIS Server with secure resources

var secureGateway = new SecureArcGISServerGateway("http://serverapps10.esri.com/arcgis", "user1", "pass.word1");

ArcGIS Server with secure resources and token service at different location

var otherSecureGateway = new PortalGateway("http://sampleserver3.arcgisonline.com/ArcGIS/", tokenProvider: new TokenProvider("http://serverapps10.esri.com/arcgis", "user1", "pass.word1"));

ArcGIS Online either secure or non secure

var arcgisonlineGateway = new ArcGISOnlineGateway();

var secureArcGISOnlineGateway = new ArcGISOnlineGateway(tokenProvider: new ArcGISOnlineTokenProvider("user", "pass"));

var secureArcGISOnlineGatewayOAuth = new ArcGISOnlineGateway(tokenProvider: new ArcGISOnlineAppLoginOAuthProvider("clientId", "clientSecret"));

========================== Calling operations ===========================

Once you have a gateway you can call operations on it, for example to query an endpoint

var queryPoint = new Query(@"Earthquakes/EarthquakesFromLastSevenDays/MapServer/0".AsEndpoint());

var resultPoint = await gateway.Query(queryPoint);

Keywords

ArcGIS

FAQs

Package last updated on 29 May 2014

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