Posts

Showing posts from November, 2020

MyMaps to Spreadsheet, KML to CSV and back

Image
I'm sharing a couple Python scripts that I used to update my Google MyMaps map for a website that I manage. Know your data On the  website I manage for the Friends of Silverbrook Cemetery, I created a Map of Sections page with an iframe of a Google MyMaps page. Each of these colored sections is a map layer of polygons. The major sections are Old Grounds, City Addition, Bond Addition, New Addition, Garden of Memory and Garden of Eternal Peace.   Each of those polygons was hand drawn in MyMaps. In addition to the polygon, I have pins in a separate layer called "Points of Interest".   Those pins have a slightly different data structure than the polygons.   For now I'm just going to focus on the polygons. As an example, I'm going to take that large yellow triangle in section New-63 and distort it.   First, I need to export the New layer of the map to a KML file.   I select "Export to KML/KMZ". I just need the KML file.  A KMZ is a zip archive o