Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am working on a project which requires real time map matching. I am currently using ArcGIS but not sure whether it will work.

Here is what happens with my system: the cell phones sent GPS fixes every five seconds to my server and I need to do real time map matching to snap the point on to one of the links of the map and store the matched points.

ArcGIS has a 'near' tool for snapping the point to nearest link. But the input to to the tool has to be a shape file for the points. I am wondering how I can deal with the real time data I get in ArcGIS. Creating a shape file for each point?

Any other suggestion for accomplish this work?

Thanks.

share|improve this question
add comment

1 Answer 1

Create a point feature from your GPS location (presumably stored as a table format file) using Make XY Event and Copy Features and then use this with the Near tool - or try the Spatial Join tool with the 'closest' option. You will likely want to store these intermediate features in a temporary/scratch workspace that can be deleted after obtaining the final output (which you could Append to your database).

share|improve this answer
    
Hi, Thanks you for your help. I did exactly the way you said and it is solved now. However, there is a new problem. The computation takes seven to ten seconds to print the final results for a point. But what I can developing is a real time application which is better to be controlled within at most 2 to 3 seconds. Is the import of Arcpy the problem since this is a large module? Could you please tell me where the problem is and any way to improve the system? (The whole system is in Java, The python module I developed will be called from the main codes) –  user14631 Feb 2 '13 at 6:10
    
So It seems that the arcpy is imported every time. Is this where the problem is? Thanks. –  user14631 Feb 2 '13 at 6:16
    
You're welcome to the first comment. As for your second comment, I recommend that you post a new question (perhaps with reference to this original one) about how to improve your code, along with the example code so we can all assess it better. –  ccn Feb 2 '13 at 21:29
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.