Skip to content

Commit

Permalink
Add export to KML/KMZ vector formats
Browse files Browse the repository at this point in the history
  • Loading branch information
drnextgis committed Oct 7, 2022
1 parent bcb5d77 commit 9abf737
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions nextgisweb/feature_layer/ogrdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,21 @@ def OGRDriver(
dsco_configurable=("SXF_MAP_SCALE:1000000", "SXF_MAP_NAME", "SXF_SHEET_KEY"),
)

EXPORT_FORMAT_OGR["KML"] = OGRDriver(
"LIBKML",
"KML (*.kml)",
"kml",
single_file=True,
mime="application/vnd.google-earth.kml+xml"
)

EXPORT_FORMAT_OGR["KMZ"] = OGRDriver(
"LIBKML",
"KMZ (*.kmz)",
"kmz",
single_file=True,
mime="application/vnd.google-earth.kmz"
)

OGR_DRIVER_NAME_2_EXPORT_FORMATS = [
{
Expand Down

0 comments on commit 9abf737

Please sign in to comment.