Esri / arcgis-rest-js

compact, modular JavaScript wrappers for the ArcGIS REST API
https://developers.arcgis.com/arcgis-rest-js/
Apache License 2.0
347 stars 119 forks source link

Clarify how should be using this library with GeometryServer operations? #900

Open dawogfather opened 3 years ago

dawogfather commented 3 years ago

I'm trying to understand how I can/should use this API to call a geometry service?

Does this package provide a wrapper around it?

Specifically I want to call generalize operation on https://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/Geometry/GeometryServer for example...

Is it intended just to use request and/or basic fetch for this and there is no wrapper around the GeometryEngine/GeometryServer stuff?

gavinr commented 3 years ago

Unless I'm missing it, I do not see that covered in ArcGIS REST JS. I think we would be open to adding it in the future.

For reference, here's the REST API documentation for GeometryServer: https://developers.arcgis.com/rest/services-reference/enterprise/geometry-service.htm

In cases where ArcGIS REST JS does not cover a particular REST API, you are free to make the REST calls directly using https://esri.github.io/arcgis-rest-js/api/request/request/