How to Open KML and KMZ Files on Your Phone
What is a KML file?
A KML file is a map in a text file: points, lines and shapes, each with a name, a description and its colors, written in KML (Keyhole Markup Language), an open standard of the Open Geospatial Consortium. Its coordinates are latitude and longitude, so a KML lands in the right place on any map. Surveyors, agencies, farm advisers and colleagues send them as boundaries, routes, field plots and sample points.
KML vs KMZ
| KML | KMZ | |
|---|---|---|
| What it is | Plain text (XML) | A KML zipped up, with its icons and pictures |
| Size | Larger | Much smaller, so easier to email or send in a chat |
| In GoGIS | Opens as a layer | Opens as a layer, with no unzipping |
A KMZ can hold more than one KML document. GoGIS makes a layer of each one.
Open a KML or KMZ on iPhone or iPad
- From the file. In Files, Mail, Messages, a chat app or AirDrop, tap the file, tap Share, and choose GoGIS. It's in the list because GoGIS opens KML and KMZ.
- Or from GoGIS. Tap Import and pick the file from iCloud Drive, Downloads or any other drive connected to Files.
- Read the map. The layer appears in the file's own colors. Tap a point, line or shape for its name and description.
Open a KML or KMZ on Android
- Save the file to your phone. Download the email attachment, or save the document from the chat it came in. It usually lands in Downloads.
- Import it in GoGIS. Tap Import, then Select files…, and choose the KML or KMZ. If it's greyed out, tap Show all files.
- Read the map. The layer appears in the file's own colors. Tap a point, line or shape for its name and description.
What You Can Do with It
- Keep the file's colors. Fill and line colors, line widths and icon colors become the layer's legend, on the column they go with, such as the soil unit or crop type. It's an ordinary legend, so you can recolor it or switch it to another column.
- Read every field. Many GIS programs put a placemark's fields in a table inside its description. GoGIS turns that table into real columns you can search, sort and color by; other descriptions open as readable text.
- Work through it in the attribute table. Filter the placemarks by any of those columns, sort them, total a number column with a column summary, and export the rows to Excel as a CSV. See the attribute table on iPhone and iPad.
- Lay it over other data. Put a KML boundary over your own Shapefiles or GeoPackages, or over the Reference Data GoGIS downloads for your area: parcels, crop fields, soils and public land.
- Take it into the field. Once imported, the layer lives on your phone: walk it with your GPS position, with no signal. See offline maps for fieldwork.
- Measure. Measure areas and distances on the map, or read each shape's area and length in its record.
- Edit and send it on. Add points, change shapes and attributes, then export the layer as KML, Shapefile, GeoPackage, GeoJSON or CSV.
Questions
Why won't my phone open a KMZ file?
A KMZ is a zipped map, and a phone can't show it without a map app that reads it. GoGIS opens it straight away, with no unzipping and no computer.
My map app won't open a KML. What can I do?
Many map apps can only show a KML after it has been imported on a computer. GoGIS opens it on the phone itself: share the file to GoGIS, or use Import.
The KMZ opened, but the map is empty. Why?
Some KMZ files hold no shapes at all, only a link to data online (a network link) or a picture laid over the map (an image overlay). GoGIS imports the points, lines and shapes in a file, not network links or image overlays. Ask the sender for the data itself, or for a Shapefile or GeoJSON.
Can I change a KML and send it back?
Yes. Edit the attributes and shapes, add your own points, then export the layer as KML (or Shapefile, GeoPackage, GeoJSON or CSV) and share it.
Does it work without a signal?
Yes. Once imported, the layer is stored on your phone or tablet, so it stays on the map, with your GPS position, offline.