Not sure if if makes sense in your case, but one feature that is often overlooked in general is the ability to send a URL that will return geometries instead of the actual geometries. Whether a GP or SOE, depending on your specific use case, you might want to just send a URL to something like (instead of retrieving, parsing, returning those three polygons):http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer/buffer?geometries={"geometries":[{"x":1469510.0355645495,"y":7499622.6821904825}],"geometryType":"esriGeometryPoint"}&inSR=102100&outSR=102100&bufferSR=4326&distances=10,50,100&unit=9036&unionResults=false&f=jsonAgain, depending on your specific use case, this might or might not be a good idea 🙂
result from the Geometry service ... and I want so send over that Geometry to do another process using a SOE ... but the goetry is huge
Francisco, Sure you can. To JSON encode the data there is a class for that.import com.esri.ags.utils.JSON; JSON.encode(your geometries array);
import com.esri.ags.utils.JSON; JSON.encode(your geometries array);
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.