I am writing some macros and the current one is to create a custom field and populate it with the name of the city (polygon) that the cache is located in. I would like the macro to use the original coordinates, not corrected coordinates. Is there a way to have GetPolygon() use the original coordinates?
My current workaround is below, but it worries me to be changing all the lat and long values in a database
My current workaround is below, but it worries me to be changing all the lat and long values in a database
CODE |
# Saves Lat and Long $savedlat=$d_Latitude $savedLon=$d_Longitude # Converts Lat and Long to Original Lat and Long $d_Latitude=$d_LatOriginal $d_Longitude=$d_LonOriginal $Municipalitydata = GetPolygon("{Municipality}",$_Appdata+"\locations\polygons\Saint_Louis_Municipalities\*.*") #Restores Lat and Long $d_Latitude=$savedlat $d_Longitude=$savedLon |