I have a bunch of graphics (over 20 pairs) need to run the geometry service to calculate their distances, and I only created one Geometry service object in my code. it seems that I must wait the geometry service to finish one calculation then I can run the next calculation. This makes the performance really low. Is there a way that I can do a batch call the geometry service (not only this distance calculation, but also other geometry service tasks like intersection)? How about if I create an array of geometry services, and associate each one of these geometry services with a graphic pair and execute them at the same time? Is there any limitation for the number of geometry service objects can run at the same time?
There is no limit to how many geometry services you can create so that's one option. However did you see the Geodesic and Euclidean classes that have a method for calculating the length of polylines?
There is no limit to how many geometry services you can create so that's one option. However did you see the Geodesic and Euclidean classes that have a method for calculating the length of polylines?