Is possible to reduce the size of the output.kml file?

ogr2ogr -f "KML" output.kml input.shx

1 Answer 1


The KMZ file format is just a zipped KML file, so much smaller. I think you can just zip the kml and rename it to kmz, but you can also create it that way using ogr2ogr, I'm pretty sure.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.