From af805a9328d800680426821c7b81b0d91782f70b Mon Sep 17 00:00:00 2001 From: Andrea Giudiceandrea Date: Wed, 17 Apr 2024 19:04:09 +0200 Subject: [PATCH] [SpatiaLite] Fix getQueryGeometryDetails() for Z, M and ZM --- .../spatialite/qgsspatialiteprovider.cpp | 25 +------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/src/providers/spatialite/qgsspatialiteprovider.cpp b/src/providers/spatialite/qgsspatialiteprovider.cpp index 7e732b3bfa07..8874de4be9aa 100644 --- a/src/providers/spatialite/qgsspatialiteprovider.cpp +++ b/src/providers/spatialite/qgsspatialiteprovider.cpp @@ -5735,30 +5735,7 @@ bool QgsSpatiaLiteProvider::getQueryGeometryDetails() sqlite3_free_table( results ); } - if ( fType == QLatin1String( "POINT" ) ) - { - mGeomType = Qgis::WkbType::Point; - } - else if ( fType == QLatin1String( "MULTIPOINT" ) ) - { - mGeomType = Qgis::WkbType::MultiPoint; - } - else if ( fType == QLatin1String( "LINESTRING" ) ) - { - mGeomType = Qgis::WkbType::LineString; - } - else if ( fType == QLatin1String( "MULTILINESTRING" ) ) - { - mGeomType = Qgis::WkbType::MultiLineString; - } - else if ( fType == QLatin1String( "POLYGON" ) ) - { - mGeomType = Qgis::WkbType::Polygon; - } - else if ( fType == QLatin1String( "MULTIPOLYGON" ) ) - { - mGeomType = Qgis::WkbType::MultiPolygon; - } + mGeomType = QgsWkbTypes::parseType( fType ); mSrid = xSrid.toInt(); }