Select to view content in your preferred language

Python Get Current GPS Location in ArcMAP

4864
2
Jump to solution
01-26-2015 01:26 PM
PaulVepraskas
Frequent Contributor

Does anyone know of a way to get the Lat/Long for a connected GPS device into python in ArcMAP.  I cannot find a resource to do this?  ArcMAP has GPS tools that allow me to view the GPS Position, so I know the data is in the program, just can't seem to isolate it?

Thanks

Paul

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
OwenEarley
Frequent Contributor

In ArcMap the GPS functionality is contained within the GPS toolbar. This toolbar would have been implemented using ArcObjects.

Arcpy allows you to access geoprocessing tools or manipulate map documents but it has a courser object model than the full ArcObjects – not everything in ArcObjects is available via arcpy.

There do not appear to be any arcpy classes or functions that refer to the GPS toolbar functionality so you may be out of luck.

View solution in original post

2 Replies
DanPatterson_Retired
MVP Emeritus

Don't know that specifically, but I suspect that you might need to save the location in order to get the coordinates.  I use DNRGPS for this instead of ArcMap, so you might want to give it a try as well

0 Kudos
OwenEarley
Frequent Contributor

In ArcMap the GPS functionality is contained within the GPS toolbar. This toolbar would have been implemented using ArcObjects.

Arcpy allows you to access geoprocessing tools or manipulate map documents but it has a courser object model than the full ArcObjects – not everything in ArcObjects is available via arcpy.

There do not appear to be any arcpy classes or functions that refer to the GPS toolbar functionality so you may be out of luck.