Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add ZM to TIN and others
  • Loading branch information
elpaso committed May 21, 2021
1 parent 4a386db commit ef3e213
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/providers/postgres/qgspostgresconn.cpp
Expand Up @@ -2350,10 +2350,34 @@ QgsWkbTypes::Type QgsPostgresConn::wkbTypeFromPostgis( const QString &type )
{
return QgsWkbTypes::MultiPolygon;
}
else if ( ( type == QLatin1String( "POLYHEDRALSURFACEZ" ) ) || ( type == QLatin1String( "TINZ" ) ) )
{
return QgsWkbTypes::MultiPolygonZ;
}
else if ( ( type == QLatin1String( "POLYHEDRALSURFACEM" ) ) || ( type == QLatin1String( "TINM" ) ) )
{
return QgsWkbTypes::MultiPolygonM;
}
else if ( ( type == QLatin1String( "POLYHEDRALSURFACEZM" ) ) || ( type == QLatin1String( "TINZM" ) ) )
{
return QgsWkbTypes::MultiPolygonZM;
}
else if ( type == QLatin1String( "TRIANGLE" ) )
{
return QgsWkbTypes::Polygon;
}
else if ( type == QLatin1String( "TRIANGLEZ" ) )
{
return QgsWkbTypes::PolygonZ;
}
else if ( type == QLatin1String( "TRIANGLEM" ) )
{
return QgsWkbTypes::PolygonM;
}
else if ( type == QLatin1String( "TRIANGLEZM" ) )
{
return QgsWkbTypes::PolygonZM;
}
return QgsWkbTypes::parseType( type );
}

Expand Down

0 comments on commit ef3e213

Please sign in to comment.