Hot answers tagged kml
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> ...
Typical - after spending hours on this, I realised the answer a few minutes after posting the question to Stack Exchange. At least others can learn from my stupidity. I needed to add a 3rd control point, in order to allow the affine transformation to apply the correct adjustment:
The correct syntax is: ogr2ogr -f GeoJSON geojson.json Areas.kml You can also use togeojson (Online Maps moving forward, from KML to GeoJSON) togeojson Areas.kml > geojson.json
That loads two raster layers in Google Earth. I don't think QGIS (through GDAL) supports reading that KMZ (not a KML) because of it. ogrinfo below can't recognize the geometry, even with the libkml (google) driver. ogrinfo -ro -so GMRT.kmz -al ERROR 1: ERROR Parseing kml Style: No id ERROR 1: ERROR Parseing kml Style: No id INFO: Open of `GMRT.kmz' ...
There is some new functionality for kmls in QGIS which I haven't tried. But along your existing skill/workflow, you should try exporting separate kmls and then bring them together in a folder in GE. Firstly select subsets of your data in QGIS based on Soil Type etc. Then Save Selected As Style each of the kmls in GE, then bring them together in a new ...
You have your input and output datasets in the wrong order. The ogr2ogr syntax is: ogr2ogr [options] dst_datasource_name src_datasource_name [layers] Use the following instead: ogr2ogr -f "KML" geo-kml geo-mif
Only top voted, non community-wiki answers of a minimum length are eligible