[GIS] get an empty shapefile when converting this KMZ in QGIS

convertgoogle earthkmlqgisshapefile

I have downloaded a KMZ file containing global elevation information. I have tried to convert the data to a shapefile using qgis (save as shape option) and using the zonum solutions website but both times the conversion has not worked.

When using qgis to convert, the new shape file was empty and all attributes were 'NULL'.

Any idea on how to get around this? The KML/KMZ files I am using is from the Marine Geoscience Data system and is available from their website on the following link http://www.marine-geo.org/link/download.php?data_uid=14255&client=DataLink.

Best Answer

I think you may need to process this file yourself - either manually, or by writing a script to automate the extraction.

If you rename the file GMRT.kmz to GMRT.zip you can open it in WinZip or similar, and see its contents.

This includes the file doc.kml, which contains a number of Links - examining the first link shows a URL:

<Link>
  <href>http://www.virtualocean.org/cgi-bin/GMRT?wesn=-180,-144,-90,-54</href>
  <viewRefreshMode>onRequest</viewRefreshMode>
</Link>

Open the URL http://www.virtualocean.org/cgi-bin/GMRT?wesn=-180,-144,-90,-54 and note that this downloads a new KML file. Open this file in a text editor and see the first ICON image:

http://www.virtualocean.org/data/tiles/geographic/geographic_512/0/0/0_7.jpg

You can download and georeference this image using the coordinates in the KML file:

<LatLonAltBox>
  <north> -54 </north>
  <south> -90 </south>
  <east> 108 </east>
  <west> 72 </west>
</LatLonAltBox>

So if you're unable to process this file automatically using tools in QGIS, you could automate the process using the above manual steps.