Noli Turbare Circulos Meosa GSAK Macro for creating circles and polygons using child waypoints and displaying them in Google Earth or in a browser with Google Earth Plugin.by Jakob8HHistory: Initial release of V1.0 July 7th 2009. v1.1 August 3rd 2009 including paths. Added samples. Contents
IntroductionI created this function to help me solving some geocaching puzzles, where a graphical solution would greatly simplify locating and finding intersections. Not to spoil any true mystery solving I created this image to exemplify what you could, quite, easily achieve:
Image showing Archimedes Circles over Siracusa, Italy
The macro presents a dialog where you can select the colors, fills, and opacities for lines and areas for all the different child types. Parameter settings for the circles for the different child waypoints. Note that a radius is
explicitly given for the original point in the dialog. SamplesThe Archimedes demo can be seen here
Basic WorkflowTo create circles and polygons the following procedure is assumed
Adding Circle StatementsEach child waypoint is colored based on the child waypoint type, this means that you control the color by selecting the type in the child waypoint / edit dialog. The circle statements are inserted in the comment field for the child waypoint. You can add any number of circle statements to a child waypoint. However these will be given the same coloring. The following samples gives the syntax to use:
The cache itself can have one circle, its value is given in the macro dialog and is the same for all caches to be part of the generation. Polygon statements and Circle statements can be used in any order on any child waypoint. A child waypoint with several circle and polygon statements. Blurred on purpose. Adding Polygon StatementsAdding polygons requires a bit more work. Currently you can create 5 polygons for each cache. For each polygon you will have to enumerate the points, this is done by adding polygon enumeration statements to the child waypoints. A polygon always starts and ends with the cache point. If this is not desirable select the your 2nd point also as the final point, this gives a line to the cache point, making it easier to know what polygon belongs to what cache. A child waypoint can be part of all polygons, and it can be used several times in the same polygon. The following samples gives the syntax to use:
Coloring of polygons reuses styles from the circles. Polygon statements and Circle statements can be used in any order on any child waypoint. A child waypoint with multiple polygon statements. Coordinates blurred on purpose.
Adding Path StatementsAdding paths are done in the same way as polygons. Currently you can create 5 paths for each cache. For each path you will have to enumerate the points, this is done by adding path enumeration statements to the child waypoints. A path can start with the cache point, but you can set any child waypoint as the first point of the path . A child waypoint can be part of all paths, and it can be used several times in the same path. The following samples gives the syntax to use:
Coloring of paths reuses styles from the circles. Path statements, Ploygon and Circle statements can be used in any order on any child waypoint.
A sample showing two paths and gives you an intersection. Cache ID blurred on purpose...
DownloadThe first version of the function is available here. Download and start. GSAK should open and ask if you want to install it. Additional commentsThe files are generated into GSAK temporary folder. These are cleared when GSAK exits. The HTML file for using the GE Plugin, uses script files located in the GSAK Macro/NoliCirc folder. If you plan to put these onto your website, you will have to copy these files to. AND you will have to acquire a Google API key and modify the HTML source with it to make it work on a web site. This is the first version and a lot of additional functionality could be imagined. If time allows for it, these functions may be added:
If you like to give some feedback to this please feel free to do so in
|