Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
3 additions
and
2 deletions.
-
+3
−2
tests/src/core/testqgsgeometry.cpp
|
@@ -617,8 +617,9 @@ void TestQgsGeometry::geos() |
|
|
// Empty geometry |
|
|
QgsPoint point; |
|
|
asGeos = QgsGeos::asGeos( &point ); |
|
|
res = QgsGeometry( QgsGeos::fromGeos( asGeos.get() ) ); |
|
|
QCOMPARE( res.asWkt(), QgsPoint().asWkt( ) ); |
|
|
// should be treated as a null geometry, not an empty point in order to maintain api compatibility with |
|
|
// earlier QGIS 3.x releases |
|
|
QVERIFY( !QgsGeos::fromGeos( asGeos.get() ) ); |
|
|
} |
|
|
|
|
|
void TestQgsGeometry::point() |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.