Skip to content

Commit

Permalink
Added test
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Jan 17, 2018
1 parent 6a4b8b4 commit ccd98f5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/src/python/test_provider_postgres.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ def test_table(dbconn, table_name, wkt):
test_table(self.dbconn, 'mls2d', 'MultiLineString ((0 0, 1 1),(2 2, 3 3))')
test_table(self.dbconn, 'mls3d', 'MultiLineStringZ ((0 0 0, 1 1 1),(2 2 2, 3 3 3))')

test_table(self.dbconn, 'pt4d', 'PointZM (1 2 3 4)')

def testGetFeaturesUniqueId(self):
"""
Test tables with inheritance for unique ids
Expand Down
11 changes: 11 additions & 0 deletions tests/testdata/provider/testdata_pg.sql
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,17 @@ CREATE TABLE qgis_test.mls3d(
INSERT INTO qgis_test.mls3d values (1, 'srid=4326;MultiLineString((0 0 0, 1 1 1),(2 2 2, 3 3 3))'::geometry);


-- Test of 4D geometries (with Z and M values)

CREATE TABLE qgis_test.pt4d(
id int,
geom Geometry(PointZM,4326)
);

INSERT INTO qgis_test.pt4d values (1, 'srid=4326;PointZM(1 2 3 4)'::geometry);



-----------------------------------------
-- Test tables with INHERITS
--
Expand Down

0 comments on commit ccd98f5

Please sign in to comment.