getting XY co-ordinates

692
2
09-25-2011 11:44 PM
ChingizEsenaliev
New Contributor
Hi everybody,

Can anyone assist with programatically getting XY co-ordinates of points from shp file in ArcPad (VBScript)?
Tags (3)
0 Kudos
2 Replies
stuartcassin
New Contributor III
Hi,

I've had this problem as well and was thankful for the following assistance. This script will read the GPS when it's running and populate the nominated fields in a .dbf via an EDITFORM

Enter this code in the onload event for the EDITFORM, and it looks like this:

Dim page1
Set page1 = thisevent.object("Page1")
page1("dblSUV_EAST").value = gps.x
page1("dblSURV_NORTH").value = gps.y

This was quick, simple and very effective.

Hope this helps.

Stuart
0 Kudos
ChingizEsenaliev
New Contributor
Hi,
I've had this problem as well and was thankful for the following assistance. This script will read the GPS when it's running and populate the nominated fields in a .dbf via an EDITFORM

Enter this code in the onload event for the EDITFORM, and it looks like this:

Dim page1
Set page1 = thisevent.object("Page1")
page1("dblSUV_EAST").value = gps.x
page1("dblSURV_NORTH").value = gps.y

This was quick, simple and very effective.

Hope this helps.

Stuart


Thank you, Stuart.

I have another question:

There's shp with a lot of points. GPS puts the point and I need to open the attributes of the closest point in edit mode. how to implement it?
0 Kudos