Hot answers tagged

4

GDAL has two drivers for KML, "KML" http://www.gdal.org/drv_kml.html and "LIBKML" http://www.gdal.org/drv_libkml.html. The LIBKML driver can read KMZ files out-of-the-box. This works for me with the GDAL 2.1-dev version from gisinternals.com: Acquire test data from https://code.google.com/p/kml-samples/ Run ogrinfo: ogrinfo time-stamp-point.kmz -al -so ...


3

Posting this for posterity as I have just figured out facing the same issue. Because the only answer so far is just as time-consuming as moving placemarks individually in Google Earth. Create desired folders in Google Earth, then select the multiple KML / KMZ files in Windows Explorer / File Manager and drag into the respective folders in Google Earth. ...


2

I think you are seeing that particular error message from this line of your code: arcpy.KMLToLayer_conversion( r"C:\Project\gis\layers" ,r'C:\Project\gis') arcpy.KMLToLayer_conversion expects a file as its first parameter (KML or KMZ) but you are giving it a folder name. You could try concatenating the contents of your filename variable, with the ...


2

The only way to have the same placemark appear in two folders in KML is 1) duplicate the placemark or 2) have NetworkLink in each folder reference the placemark in a separate KML file. In both cases, if both folders are visible then the placemark is duplicated on the map which may or may not be apparent. Google Earth does not remove duplicates. If user ...


2

You should be able to use the "KML to layer" tool in ArcGIS for Desktop. As long as there is meta data associated with your image this tool will convert the images from KML and then they should plot over your basemap.


1

This sounds like a job for some scripting! KMZ files are zipped KML files (rename it to .zip, and extract, to find the KML.) KML files are essentially XML files, a type of markup language which is readable in programs like Notepad++. If you open the KML file in a text editor, you get stuff like this: <?xml version="1.0" encoding="utf-8" ?> <kml ...


1

You need to use the LibKML driver instead of the older KML one. This requires GDAL to be built with libkml support. It sounds like the GDAL binaries you have don't have this support built in; according to the docs: Note that if you build and include this LIBKML driver, it will become the default reader of KML for ogr ... You will either need to ...


1

I'm not aware of a particular KML/KMZ file, but if you're creating the KMZ file yourself you might have some success if you generalize the data to remove vertices. I've never had a problem using KMZ in Google Earth with file sizes larger than 10MB, however I've had plenty of problems with KMZ containing more than 30000 vertices. If you can't generalize the ...


1

I had similar problems before. You can use folling MATLAB function to plot your grid. It's far from being perfect, but that's what I've figured out so far. You probably hve to adjust it to your needs!! NOTE: you need to habe the KML-Toolbox and the MAPPING-Toolbox installed. function [ ok ] = grid2kmloverlay( grd, R, varargin ) % ...


1

The reason why you get only white tiles is most likely that the maximum tile size of your WMS is exceeded when the map is rendered with increased resolution. What you could do is download your WMS e.g. through GRASS r.in.wms in desired resolution or use GDAL / gdal_translate for that... Then you can load the resulting raster map in QGIS and the ...


1

the way it become accessible in html: make your kml/kmz file can be accessed by public right click -> share -> advanced -> who has accesse - Public then use drive for hosting your file http://googledrive.com/host/ in your case the item ID is 0B4_TJdssPL1RRC13MTlzbjVPWHM so change the kml address in your HTML become : ...



Only top voted, non community-wiki answers of a minimum length are eligible