Skip to content

Instantly share code, notes, and snippets.

View malcolmrh's full-sized avatar

Malcolm malcolmrh

  • Anchorage, Alaska
View GitHub Profile
@malcolmrh
malcolmrh / README.md
Last active February 26, 2023 15:51
Syncing Google Earth Pro with ☁️

Syncing Google Earth Pro with Dropbox/Drive/'the Cloud'

Before you start backup your myplaces.kml by saving manually. In Windows you will need administrator privileges. On OSX or Linux you may need to add sudo before a command if you get permission errors. If your Dropbox or Google Drive etc folder is somewhere non-default, you'll obviously have to change these paths.

On a Mac

First Machine

Make your new cloud folder and move the .kml there manually or by:

mkdir ~/Dropbox/GoogleEarth
@malcolmrh
malcolmrh / centroid_when_zoomed.xml
Created April 2, 2015 18:15
If geoserver polygons are small it's nice to have a centroid point that is really big when zoomed out. Remember painter's rendering order.
<Rule>
<MinScaleDenominator>1500000</MinScaleDenominator>
<PointSymbolizer>
<Geometry>
<ogc:Function name="centroid">
<ogc:PropertyName>geom</ogc:PropertyName>
</ogc:Function>
</Geometry>
<Graphic>
<Mark>