Batch styling of KML files in Google Earth

Probably you used Google Earth many times, watched at least a few tutorials, and tried to manipulate some files by yourself. On the Web, you can find many sources, where the process of creating some simple elements in Google Earth is explained. Besides the drawing features, Google Earth can be a place where a user can alter existing .kml files uploaded from external sources. Usually, they can be done one by one, although here I want to demonstrate the way, you probably didn’t know before.
For instance, by reading this article, you can realize, that changing the properties of each object (or circumstance) separately might take a while. There is completely no need to do it as shown in the link above unless you deal with dynamic circumstances like changing cruising altitude. What is most important, the multiple-selection feature is possible just from the Google Earth Pro 7.3.2 version released in early 2019. Compressing our task to styling only, we can make the desired change only once for all the files. See the steps below on how to do this:

1. Create a new folder in your “Places” panel located on the left (Pic. 1).

Google Earth Places new folder

Pic. 1 New folder in the “Places” section.

2. Move all your objects to the folder regardless of their total number. You can do it in pieces (Pic. 2).

Google Earth moving objects to the folder

Pic. 2 Moving objects to the folder, where: 1 – Select all of the items and drag them to our new folder; 2 – All the files in our new folder.

3. Every single object has its properties to change (Pic. 3). Look at all the options available there.

Google Earth KML file properties

Pic. 3 The properties of the single object in Google Earth.

Looking at the above screenshot, you have an example of a defined style for one element. This style can be different across the other files in your folder.

4. Now, right-click on your folder including all the files instead of one file like previously (Pic. 4), and select the “Properties” option again. In this case, you will see nothing apart from the message that  “The descendant(s) of this folder do not share the same style. Click the button below if you want to force all descendants to share the same style.”
By clicking the “share style” button, every single object located in your folder adopts the style visible in the “Properties” window. You can even notice, that all your elements become uniform regardless of their number in the folder.

Google Earth batch styling files

Pic. 4 Batch styling files in Google Earth: 1 – Right-clicking in the folder and selecting the “Properties” option; 2 – The information about not the same style features of the folder descendants, which requires clicking the “Share style” button; 3 – Styling properties.

5. At this step just change your options left. You can alter both styles and colors as well as the altitude and view of your items. What is the most convenient, every single change can be instantly visible on your Google Earth map beneath (Pic. 5).

Google Earth batch styling files 2

Pic. 5 Batch styling files in Google Earth can be monitored simultaneously with any alterations provided in the “Properties” window.

6. When you are happy with your styling, just click “OK” making your job done.

Google Earth batch styling files 3

Pic. 6 Batch styling of the files in Google Earth is complete.

I have done it for about 120 features. Everything took me about a minute! Imagine now how much time you can save for a bigger amount of items. The prerequisite is their uniformity. The process cannot be applied when your job requires keeping the styling various. Every “Sharing style” will erase all other styles defined previously. This is basically the one and a very huge disadvantage of this solution. Concluding, this process must be applied deliberately. If this explanation wasn’t clear enough for you, watch the video below.

Mariusz Krukar

Links:

  1. Notes of Google Earth releases

Forums:

  1. https://gis.stackexchange.com/questions/9662/select-more-than-one-place-at-a-time-in-google-earth
  2. How do I select multiple placemarks to move them all in the same folder?

Youtube:

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *