Skip to content
Browse files

Writing shapefiles with Z dimensions is gdal version dependent

  • Loading branch information
m-kuhn committed Apr 9, 2016
1 parent 21702ba commit c825f4653417b0654ecb45cb25449374d2bcc7f3
Showing with 3 additions and 2 deletions.
  1. +3 −2 tests/src/python/
@@ -25,6 +25,7 @@
from PyQt.QtCore import QDate, QTime, QDateTime, QVariant, QDir
import os
import osgeo.gdal
import platform
from qgis.testing import start_app, unittest
from utilities import writeShape, compareWkt
@@ -163,8 +164,8 @@ def testDateTimeWriteTabfile(self):
assert isinstance(f.attributes()[datetime_idx], QDateTime)
self.assertEqual(f.attributes()[datetime_idx], QDateTime(QDate(2014, 3, 5), QTime(13, 45, 22)))

# This test fails on Travis Linux build for unknown reason (probably GDAL version related)
@unittest.expectedFailure(os.environ.get('TRAVIS') and 'linux' in platform.system().lower())
# This test fails with GDAL version < 2
@unittest.expectedFailure(osgeo.gdal.VersionInfo()[:1] < 2)
def testWriteShapefileWithZ(self):
"""Check writing geometries with Z dimension to an ESRI shapefile."""

0 comments on commit c825f46

Please sign in to comment.
You can’t perform that action at this time.