aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xwebmap-publish1
1 files changed, 1 insertions, 0 deletions
diff --git a/webmap-publish b/webmap-publish
index 36bed88..1c1e9a2 100755
--- a/webmap-publish
+++ b/webmap-publish
@@ -302,6 +302,7 @@ def exportLayer(lyr_dst, lyr_src, srs=None, clip=None, layername=None,
geom = feature.GetGeometryRef().Clone()
if ct is not None and geom.Transform(ct) != ogr.OGRERR_NONE:
raise Exception('Could not apply coordinate transformation')
+ geom.FlattenTo2D()
if metadata is not None:
# serialize the feature to JSON and save it