Select to view content in your preferred language

How to batch processing geometry service?

731
1
Jump to solution
05-14-2012 06:46 AM
weiliang
Deactivated User
Hi,

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?

Thanks,

Wei
0 Kudos
1 Solution

Accepted Solutions
dotMorten_esri
Esri Notable Contributor
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?

View solution in original post

0 Kudos
1 Reply
dotMorten_esri
Esri Notable Contributor
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?
0 Kudos