0

When saving a search and then exporting the folder to a KML in Google Earth Pro, each entry for your points will look like this in the raw KML:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
<Folder id="results">
    <name>Montreal emergency rooms</name>
    <open>1</open>
    <Placemark id="1.2.1">
        <name>Montreal General Hospital: Emergency Department</name>
        <address>1650 Cedar Ave, Montreal, Quebec H3G 1A4</address>
        <phoneNumber>(514) 934-1934</phoneNumber>
        <snippet>1650 Cedar Ave, Montreal, Quebec H3G 1A4</snippet>
        <description><![CDATA[<!DOCTYPE html><html><head></head><body><script type="text/javascript">window.location.href="https://www.google.com/earth/rpc/entity?lat=45.5005&lng=-73.6965&fid=0x4cc91a167f10f399:0xe61adad7a2c58aca&hl=en&gl=ca&client=earth-client&cv=7.3.2.5776&useragent=GoogleEarth/7.3.2.5776(Windows;Microsoft Windows (6.2.9200.0);en;kml:2.2;client:Pro;type:default)";</script></body></html>]]></description>
        <styleUrl>#listing_A</styleUrl>
        <ExtendedData>
            <Data name="placepageUri">
                <value>https://www.google.com/earth/rpc/entity?lat=45.5005&amp;lng=-73.6965&amp;fid=0x4cc91a167f10f399:0xe61adad7a2c58aca&amp;hl=en&amp;gl=ca&amp;client=earth-client&amp;cv=7.3.2.5776&amp;useragent=GoogleEarth/7.3.2.5776(Windows;Microsoft Windows (6.2.9200.0);en;kml:2.2;client:Pro;type:default)</value>
            </Data>
        </ExtendedData>
        <Point>
            <coordinates>-73.58845529999999,45.4967702,0</coordinates>
        </Point>
    </Placemark>
    <Placemark id="1.3.1">
        <name>Jewish General Hospital: Emergency Department</name>
        <address>5767 Legare St, Montreal, Quebec H3T 1E4</address>
        <phoneNumber>(514) 340-8222</phoneNumber>
        <snippet>5767 Legare St, Montreal, Quebec H3T 1E4</snippet>
        <description><![CDATA[<!DOCTYPE html><html><head></head><body><script type="text/javascript">window.location.href="https://www.google.com/earth/rpc/entity?lat=45.5005&lng=-73.6965&fid=0x4cc919e8bf78f7bb:0x1abb204c3a4f2553&hl=en&gl=ca&client=earth-client&cv=7.3.2.5776&useragent=GoogleEarth/7.3.2.5776(Windows;Microsoft Windows (6.2.9200.0);en;kml:2.2;client:Pro;type:default)";</script></body></html>]]></description>
        <styleUrl>#listing_B</styleUrl>
        <ExtendedData>
            <Data name="placepageUri">
                <value>https://www.google.com/earth/rpc/entity?lat=45.5005&amp;lng=-73.6965&amp;fid=0x4cc919e8bf78f7bb:0x1abb204c3a4f2553&amp;hl=en&amp;gl=ca&amp;client=earth-client&amp;cv=7.3.2.5776&amp;useragent=GoogleEarth/7.3.2.5776(Windows;Microsoft Windows (6.2.9200.0);en;kml:2.2;client:Pro;type:default)</value>
            </Data>
        </ExtendedData>
        <Point>
            <coordinates>-73.63111839999999,45.49745279999999,0</coordinates>
        </Point>
    </Placemark>
</Folder>
</kml>

However, when saving 'my places' as a KML, they come out as multigeometry, and won't get loaded in QGIS. Each entry looks like this:

<Placemark id="1.2.1">
        <name>Jewish General Hospital</name>
        <address>3755 Chemin de la Côte-Sainte-Catherine, Montréal, QC H3T 1E2</address>
        <phoneNumber>(514) 340-8222</phoneNumber>
        <snippet>3755 Chemin de la Côte-Sainte-Catherine, Montréal, QC H3T 1E2</snippet>
        <description><![CDATA[<!DOCTYPE html><html><head></head><body><script type="text/javascript">window.location.href="https://www.google.com/earth/rpc/entity?lat=45.4970905&lng=-73.6302431&fid=0x4cc919eec8ecff79:0xbc05b9a74eaff7e1&hl=en&gl=ca&client=earth-client&cv=7.3.2.5776&useragent=GoogleEarth/7.3.2.5776(Windows;Microsoft Windows (6.2.9200.0);en;kml:2.2;client:Pro;type:default)";</script></body></html>]]></description>
        <styleUrl>#listing_A</styleUrl>
        <ExtendedData>
            <Data name="placepageUri">
                <value>https://www.google.com/earth/rpc/entity?lat=45.4970905&amp;lng=-73.6302431&amp;fid=0x4cc919eec8ecff79:0xbc05b9a74eaff7e1&amp;hl=en&amp;gl=ca&amp;client=earth-client&amp;cv=7.3.2.5776&amp;useragent=GoogleEarth/7.3.2.5776(Windows;Microsoft Windows (6.2.9200.0);en;kml:2.2;client:Pro;type:default)</value>
            </Data>
        </ExtendedData>
        <MultiGeometry>
            <Point>
                <coordinates>-73.6302431,45.49709050000001,0</coordinates>
            </Point>
            <LinearRing>
                <coordinates>
                    -73.63331000650342,45.49479032012243,0 -73.63331000650342,45.49939067987757,0 -73.62717619349658,45.49939067987757,0 -73.62717619349658,45.49479032012243,0 -73.63331000650342,45.49479032012243,0 
                </coordinates>
            </LinearRing>
        </MultiGeometry>
    </Placemark>

Furthermore, placemark id doesn't update, and stays as 1.2.1 for each entry. Obviously I can take out the extra code that makes it into multigeometry, and manually change all the placemark id's into ascending order, but this completely defeats the purpose of exporting points from Google Earth.

Is there any way I can assure that my saved places folders will export the same way as the search results do?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.