.Net rest api wrapper library for consuming arcgis rest api.
- Authentication
- Geometry Service (Project Polygons, Calculate Areas and Length)
- Feature Layer Service (Can query feature layers)
Cross platform because of .Net Standard 2.0. Please collaborate to make this into a complete rest client for ArcGIS RestAPI
// Authentication
var authService = new ArcGISAuthService(host, username, password);
// Get Auth Token
var authTokenResp = await authService.GetToken();
// Geometry Service
var geometryService = new ArcGISGeometryService(host);
// Project Polygons to diffrent spatial reference
PolygonGeometry projected = await geometryService.ProjectPolygon(authToken, inSR, outSR, originalGeometry);
// Calculate Areas and Length
ArcGISAreaLengthResponse areaLenth = await geometryService.CalculateAreasAndLengths(authToken, SR,
EsriGeometryCalcType.preserveShape, EsriAreaUnit.esriAcres, projected);