2026-09-22

KML, GeoJSON, or CSV?

A CSV holds a list of places. KML holds a presentation, including folders and styles. GeoJSON holds geometry with properties attached. The right choice depends on what the layer has to draw and who will edit it in six months.

A marketing team sends a spreadsheet of gallery addresses. A partner sends a KML exported from Google Earth. A city office publishes a district boundary as GeoJSON. All three have to sit on the same map by Friday.

The formats are not interchangeable, and converting one into another does not remove the differences. Start with what each layer has to draw, then look at how the file will be maintained.

Points, lines and areas behave differently in a table

A point is one coordinate. A line is an ordered list of coordinates. An area is a ring that closes on itself, sometimes with holes. A spreadsheet row holds the first easily, the second awkwardly, and the third not at all.

Attributes follow the same logic. A shop has a name, an address and opening hours. A route has a length and a direction. A district has an official code and a population figure. Whatever holds the geometry also has to hold those fields, or someone spends an afternoon joining two files by hand.

CSV is a list of places

One row per place, one column per attribute. The format survives being emailed, opened in a spreadsheet, edited by someone who has never made a map, and put under version control. For two hundred venues with addresses and categories, it is the easiest file to hand to a colleague.

Its limits show up quickly. In Tasmap, a table describes places; routes and areas come from the geometry formats, because a row cannot express a shape. Coordinates are already resolved. An address still needs a lookup that can fail, land in the wrong city, or draw on credits, and that lookup takes longer than reading a coordinate pair.

If the file is a spreadsheet, the column work matters more than the format. Column names and a few sample values decide what the import suggests, and anything the suggestions get wrong can be corrected before the rows are added.

KML and KMZ carry the presentation

KML is the format Google Earth reads. It holds folders, names, descriptions and styles, which is why an export often looks exactly like the project it came from. KMZ is the same document packed into a zip archive with its icons and images.

That makes KML a good fit when the styling is part of the information. A trail network with official marker colours, a site plan with an icon for each facility, a layer where the author used colour to mean something. Tasmap can keep the source styles or apply your own, so you decide how much of that look survives.

It also makes KML a weak master file. A presentation is harder to update than a table. Three hundred placemarks that each carry an inline style will fight any consistent palette you apply later, and descriptions written as HTML blocks need reformatting before they read well in an article panel.

GeoJSON is geometry with properties attached

Each feature in a GeoJSON file is a geometry plus a properties object. Points, lines, polygons, multi-part polygons and holes as inner rings all fit in one structure. Properties can nest, so a boundary can carry its official name, code and area without a second file.

This is the format boundaries and generated routes usually arrive in, and it handles areas better than the other two. It is also the one that most needs a size check. A coastline traced at survey precision can hold tens of thousands of vertices, and the browser draws all of them while someone drags the map.

GeoJSON is readable but unpleasant to edit by hand. One missing comma breaks the file. Coordinates are listed longitude first, while spreadsheets and most people write latitude first, so a pair copied in either direction points at the wrong place unless someone flips it. A swapped pair in Taipei ends up in the Pacific.

Let the maintenance plan decide

Ask who edits the layer after this project.

If the answer is a colleague with a spreadsheet, keep the CSV as the master and treat the map as an output. If the boundary is authoritative, changes once a year and comes from an official source, keep the GeoJSON and leave it alone. If a partner delivered a KML for a one-time event, import it, keep what is useful, and do not plan to maintain it.

A single map often mixes all three: a CSV for the venues, a GeoJSON for the district, a KML for the trail. The format question applies per layer, not per project.

Converting a file once is cheap. Keeping two copies of the same data is what costs time, because eventually one of them is wrong and nobody remembers which.

Check what survived the import

Tasmap reads CSV, TSV, XLSX, GeoJSON, JSON, KML and KMZ, and shows a preview before anything is added to the map. Tabular files get a column mapping step. KML and KMZ offer a choice between keeping the source styles and applying default ones.

Make that choice deliberately. Keep the source styles when they carry meaning, replace them when they are only decoration. Then look at the result: labels, description text, holes in polygons and the order of layers.

The import range defaults to the map's focus area, so rows or features outside it are listed in the problem summary and skipped. You can switch to the whole file if the focus area is tighter than the data. A file can be up to 10 MB, one import can add up to 1,000 places, routes and areas, and routes and areas are limited to 5,000 points each and 20,000 points in total.

For a closer look at the KML path, read how to map KMZ and KML files. If your data starts as addresses, clean spreadsheets for maps covers the column work that saves the most time.

References

Related reading

If you already have one of these files, bring it into Tasmap and read the preview before anything is added. Start at tasmap.app.

← back to blog