Skip to content

Commit

Permalink
[SpatiaLite] Fix getQueryGeometryDetails() for Z, M and ZM
Browse files Browse the repository at this point in the history
  • Loading branch information
agiudiceandrea authored Apr 17, 2024
1 parent 62c5427 commit af805a9
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions src/providers/spatialite/qgsspatialiteprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit af805a9

Please sign in to comment.