ThinkGeo.com    |     Documentation    |     Premium Support

Strange problem about get coordinates information

Hello, all


According to input coordinates, I use some methods of component to get Address.

First, I use GetFeaturesIntersecting to get country name/town name. 

Then, I use GetFeaturesWithinDistanceOf to find near road .


Now, I find a problem...if I do this method again...it will spend more time.


I repeated to get the same records Address, it spent time as follows...


00:00:04.2812500

00:00:05.0937500

00:00:06.2187500

00:00:07.2500000

00:00:08.2968750

00:00:09.3593750

00:00:10.4531250

00:00:11.4531250


I just spent about 4 sec to get 224 records Address ...


but if I repeated do this, it spent more time...


Could anyone to tell me what's wrong?


 


 



Carol, 
  
 Can you show me your code? It seems that the timing is not set to zero after its previous query. 
  
 So basically your scenario is in a button click event do the query, you repeat to click the button , the timing is spent more and more?  It would be nice if you could provide me a small sample application for this. 
  
 Thanks. 
  
 Yale