I may be wrong about this, but if I understand the issue then there are two aspects to this:
(1) you need to use "point=" to identify the coordinates you are checking and
(2) you need a folder full of polygon data where each file has the name of the municipality that it represents. GSAK probably does not have those data, but if you can get the polygon files, then it is possible to do the calculations like this:
This will check the current cache in the grid to see into which county in California the original coordinates fall. So all you need to do is replace the second string with a path to the folder of those files for your particular issue. Look at the end of this page to see how to configure your polygon files. If you want the result to be not the file name but instead the name of the municipality, then in each file the first line should look like this:
# GsakName=xxxxxxxxx
where the xxxxxxxxx represents your local name for the municipality.
(1) you need to use "point=" to identify the coordinates you are checking and
(2) you need a folder full of polygon data where each file has the name of the municipality that it represents. GSAK probably does not have those data, but if you can get the polygon files, then it is possible to do the calculations like this:
GSK |
$data = GetPolygon("point=[$d_LatOriginal,$d_LonOriginal]","$_AppData\locations\counties\usa\California\*.*") msgok msg=$data |
This will check the current cache in the grid to see into which county in California the original coordinates fall. So all you need to do is replace the second string with a path to the folder of those files for your particular issue. Look at the end of this page to see how to configure your polygon files. If you want the result to be not the file name but instead the name of the municipality, then in each file the first line should look like this:
# GsakName=xxxxxxxxx
where the xxxxxxxxx represents your local name for the municipality.