Por que converter KMZ para GEOJSON?
GeoJSON is the expected input format for web mapping libraries such as Leaflet and Mapbox, and for many web APIs. Converting KMZ data to .geojson makes it directly usable in browser-based maps and modern GIS workflows without requiring a desktop viewer.
Como converter KMZ para GEOJSON
QGIS OPEN-SOURCE
Add the .kmz as a vector layer, right-click it in the Layers panel, and choose Export > Save Features As with format set to GeoJSON.
ogr2ogr (GDAL) OPEN-SOURCE
Run ogr2ogr -f GeoJSON out.geojson in.kmz. Use ogrinfo in.kmz to list layers first if the file contains multiple folders.
Sobre estes formatos
Um arquivo KMZ é um mapa do Google Earth compactado em ZIP - ele contém marcadores, rotas, polígonos, sobreposições de imagem e, às vezes, modelos 3D em um único pacote portátil. Abra-o com…
Abrir detalhes de .KMZ →Um arquivo GEOJSON armazena feições geográficas - pontos, linhas e polígonos com seus atributos - como texto JSON simples, e é o formato padrão para mapeamento web. Para visualizá-lo em um…
Abrir detalhes de .GEOJSON →Qualidade e o que observar
- Placemarks, lines, and polygons with names and description text transfer correctly; KML styling (icon colors, line widths, fills) has no GeoJSON equivalent and is dropped.
- GeoJSON is always WGS 84 (EPSG:4326), which matches KMZ - no reprojection is needed.
- GeoJSON is plain text and typically larger than a compressed
.kmz; for large datasets consider gzip-compressed GeoJSON or FlatGeobuf for web delivery.
Perguntas frequentes
Can I convert KMZ to GeoJSON without installing software?
Does the KML folder structure survive in GeoJSON?
What if ogr2ogr cannot read my KMZ?
.kmz to .zip, unzip it, and run ogr2ogr on the doc.kml inside instead.