[OSGeo Africa] KMZ/KML files in QGIS

Glenn Mullett GMullett at lidwala.com
Tue Jan 21 23:11:54 PST 2014


Hi Chris

kmz is just a zipped kml

e.g.

$ unzip Warden\ Vrede.kmz
Archive:  Warden Vrede.kmz
  inflating: doc.kml


$ cat doc.kml
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2"<http://www.opengis.net/kml/2.2> xmlns:gx="http://www.google.com/kml/ext/2.2"<http://www.google.com/kml/ext/2.2> xmlns:kml="http://www.opengis.net/kml/2.2"<http://www.opengis.net/kml/2.2> xmlns:atom="http://www.w3.org/2005/Atom"<http://www.w3.org/2005/Atom>>
<Document>
        <name>Warden Vrede.kmz</name>
        <StyleMap id="m_ylw-pushpin">
                <Pair>
                        <key>normal</key>
                        <styleUrl>#s_ylw-pushpin</styleUrl>
                </Pair>
                <Pair>
                        <key>highlight</key>
                        <styleUrl>#s_ylw-pushpin_hl0</styleUrl>
                </Pair>
        </StyleMap>

<!--...... etc -->

</Document>
</kml>


Regards,
Glenn


On 22/01/14 08:54, Chris Berens wrote:
What happens when you open the kmz in GE and save as kml? KMZ is the binary version of KML (ascii)

[https://1029187d-a-62cb3a1a-s-sites.googlegroups.com/site/maplandsite/mapland_esigsh.jpg?attachauth=ANoY7crw6MbxaWfXYxv9hmd0ew4aol4FjjXA1RoU27ariWRyfpH_ZxlxCWHTQ-G-hjBDFpr_bKRbKWKsyPl-Xdnjz9pxlovgFuAuYX_-r6isd6Nt37NjquwnVyPd-b-DwJFBE6xHRgJxspde-K1LDOa3lKr7aY9jTnAUfR_CpHVdEvv4JgMnQ3dmo3TVn7yJXWbYzm_FxjT-WVqiOoQSebdw6bMzjbvz2w%3D%3D&attredirects=0]


On 22 January 2014 08:00, <adarsh.1989 at yahoo.com<mailto:adarsh.1989 at yahoo.com>> wrote:
Hi Hanlie,

There are lots of online converters and free software that can convert KML to SHP. Haven't really tried them but I hear that they work. Try them out and see what happens.
http://www.zonums.com/online/kml2shp.php

You can try this link. If it does not work, just look for other converters

Regards,
Adarsh
Sent via my BlackBerry from Vodacom - let your email find you!

-----Original Message-----
From: Hanlie Pretorius <hanlie.pretorius at gmail.com<mailto:hanlie.pretorius at gmail.com>>
Sender: africa-bounces at lists.osgeo.org<mailto:africa-bounces at lists.osgeo.org>
Date: Wed, 22 Jan 2014 07:51:44
To: Africa local chapter discussions<africa at lists.osgeo.org<mailto:africa at lists.osgeo.org>>
Reply-To: Africa local chapter discussions <africa at lists.osgeo.org<mailto:africa at lists.osgeo.org>>
Subject: [OSGeo Africa] KMZ/KML files in QGIS

Hi,

Was just wondering if anyone else has come across this and found a solution.

A client sent me a KMZ file with his data. QGIS can't read KMZ, so I
'unzipped' the KMZ file and a doc.kml popped out.

When I add that to QGIS, I get a list of layers that I can choose to
add - the list is the same as the one I see when I open the KMZ file
in Google Earth.

But some of the layers don't display and have no attributes. I can see
the points in Google Earth and they have attributes there, but the
layer is empty in in QGIS. When I zoom to the layer, it's in the
correct spot, no features display.

Any thoughts?

Thanks
Hanlie.
_______________________________________________
Africa mailing list
Africa at lists.osgeo.org<mailto:Africa at lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/africa
_______________________________________________
Africa mailing list
Africa at lists.osgeo.org<mailto:Africa at lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/africa



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/africa/attachments/20140122/63d7eb29/attachment-0001.html>


More information about the Africa mailing list