Hot answers tagged

13

Recent versions of gdal_translate have support for KML Superoverlay. Although it is not yet documented on the GDAL website the following can be used: gdal_translate.exe -of KMLSUPEROVERLAY c:\in.tif c:\out.kmz -co FORMAT=JPEG This will save a tiled version in a kmz file using jpeg compression. On windows you can automate using forfiles /m *.tif /c "cmd /...


13

On a Mac, where QGIS uses the Kyngchaos.com GDAL 1.9 Complete framework, or on any platform where QGIS has been compiled against a GDAL build with support for the Google LIBKML driver, you can open .kmz files directly using the open dialog and selecting the All Files (*) option, or simply drag/drop onto QGIS. (Otherwise, you will need to decompress the .kmz ...


10

as far as I know, you are right: vectors in qgis are read and written by ogr. qgis 1.8 uses the lastest gdal/ogr, which is 1.91. you can read zipped shape-files, but *.kmz, which actually are a zip-archive containing *.kml-file(s) need to be unzipped manually before importing


7

QGIS has a plugin called "Photo2Shape" that will convert the geotagged coordinates of the photo into a shapefile. You can then use the "eVis" plugin to set up hotlinks to the photos themselves, and launch a photo viewer by clicking on the attribute field.


6

You can use GDAL tool inside Quantum GIS. Its free and it works fine. Install Quantum GIS and Gdaltools and you'll have a set of tool for raster/image processing. The one you want would be vectorize (gdal_polygonize). Cheers


5

Here is a guide to create and import KML files into Quantum. It does not work for KMZ files so these would need to first be decompressed to be used in this manner.


5

One of the fastest and easiest possible solutions uses a short program written with the free open source program R (the R project for statistical computing). The following code computes the distance matrix (using spherical distances) between two arrays of (lon, lat) coordinates named customers and facilities and stores it in an array distances (with rows ...


5

My favorite app for doing these kinds of things is Locus map free. It can import KML file amongst many other formats, and can work completely offline. If you need a base map, you can either download it within the app (for a fee) or add your own data either in mbtiles, or one of the other myriad formats that it supports.


5

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

ArcMap 10.x has a tool for creating KML files directly. The kmz files created by the Map to KML tool in ArcMap 10 can be opened in Google Earth but do NOT work directly on Garmin GPS units. This is because the image format required by Garmin is JPG, and the image saved in the KMZ file is a PNG. A workaround: Create your map document, then run the Map to ...


3

If you convert your 3D KML to collada (.dae) a Google Earth Model - using Google Sketchup http://sketchup.google.com/download/ Then you can import this MODEL into ArcGIS with ArcScene. Here is a youtube video showing how this can be done. http://www.youtube.com/watch?v=udhm3yxVinc


3

ArcGIS can read KML files and since 9.3 also KMZ via the Data Interoperability Extension. From version 10 you must install this separately. The basic version of DI extension does not require a special licence and certainly lets you read GML and (from memory) I think it also reads KML. I have been used to having the full version so I forget where the free ...


3

So far I came up with this: I replaced the first 2 lines of the original KML with the following 3 lines: <?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"> Then I replaced the lower case "z" of the Timespan by uppercase "Z", like these: <...


3

Those look like the grids for the National Topographic System in Canada. They can be downloaded from Geogratis as the Vector Indexes of the National Topographic System of Canada. There is a folder in there called kml_files full of .kmz files. If you prefer, you can get them more easily by downloading them zipped (15mb) at all scales from the WMS in ...


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. ...


3

PostGIS comes with a shapefile loader called shp2pgsql which converts a shapefile into the SQL statements that are needed to load the data into PostGIS. You can find a detailed description of the command and the options needed on this page. But it boils down to something like: shp2pgsql -I -s 4326 input.shp schema.table > output.sql


3

It should not be too hard to achieve this by converting the PDF to an image format (say Tiff) and georeferencing that image and projecting it in the same projection as the data you are overlaying. You will not be 100% accurate but with care you can get a good result. A few random thoughts: As seems typical with so many maps, there are no graticules or ...


3

You can do the following to name the kmz file and place it in the folder you want: arcpy.LayerToKML_conversion(fNAME, "c:\\temp\\" + str(fNAME) + ".kmz", "12000", ..... or in the env.workspace but a new subfoler - if it exists: arcpy.LayerToKML_conversion(fNAME, "KMZ\\" + str(fNAME) + ".kmz", "12000", .....


3

It is not currently supported to import KML or KMZ to Google Maps Engine Lite or Pro. https://support.google.com/mapsenginelite/answer/3024937 The only current way is to use MyMaps (with the Classic Version of Google Maps) Open the classic Google Maps and click My places in the top left corner. (Make sure you’re signed-in). Click Or create with classic My ...


3

Check out the Overpass Turbo API. Use the wizard to simply search for your desired OpenStreetMap routes using their location or the route's osm-id and then press the export-tab. There you can choose "KML" as an export format.


2

If you have your placemarks in order in the kmz file, the task will be fairly simple (and can be accomplished in a text editor). Either save the placemarks as a kml file (right click and "Save place as"), or change the file extension of the kmz file to zip and extract the zip file (a kmz file is simply a zipped up kml file(s)). Here you can open up the kml ...


2

If you are talking about GeoTagged photos, I'll recommend ArcPhoto, available at http://resources.arcgis.com/gallery/file/geoprocessing/details?entryID=8C3643DC-1422-2418-8836-CF0510413D40


2

I've found a workaround to do this. You can import your kmz file from your pc using the classic (legacy) "import with classic google maps" link on google maps. This link allow you to import kmz/kmz files in new maps engine format with a limit of 3MB. Now you can download mapsEngine app for android and open the link to the new converted file.


2

The simplest solution I can think of would be to import the shapefile into PostGIS using Shapefile to DBF loader (or if in another format write a scipt to upload using ogr2ogr). Then once in PostGIS you can create the dump file. If you use PgAdmin then both these operations are very easy as the shapefile loader is a plugin to PgAdmin and to dump, just ...


2

Since you are using arcpy, you will be able to modify how the KMZ is exported. I am not sure if that is the kml_document or kml_id attribute controlling your hoover/click, but essentially you can control what value is in both of those attributes. See the KML documentation. Also, an excellent webcast from FME (even though that is not the software you are ...


2

If you need ruler distance, You can use the distance matrix tool in Quantum GIS. Quantum GIS can read your KMZ files. Then you can easily compute the distance matrix. Here is tutorial http://qgis.spatialthoughts.com/2013/04/tutorial-nearest-neighbor-analysis.html


2

I think this is a pure GE limitation - and I am not aware of a direct way to force GE to spread the lines (that would be nice, though). Assuming that feature does not in fact exist - there are two options I can think of. Set different heights based on what you want to have priority (clamp the less important features to the ground and set a height of a few ...


2

Given that VBA is a programming language, in theory, it is possible to process a KMZ file. However, you must first unzip it from binary into KML format. Maybe look at how-to-parse-process-a-kmz-file and Read From Binary Files in Visual Basic for inspiration. Then you need to parse this hierarchically structured KML data and reconcile it with the relationally ...


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 ...



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