Skip to content
Permalink
Browse files
Add ZM to TIN and others
  • Loading branch information
elpaso committed May 21, 2021
1 parent 4a386db commit ef3e213644d3c74aa406ef61821062055dd324f7
Showing with 24 additions and 0 deletions.
  1. +24 −0 src/providers/postgres/qgspostgresconn.cpp
@@ -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 );
}

0 comments on commit ef3e213

Please sign in to comment.