Skip to content
Permalink
Browse files

Add detection for circular types in postgres provider

  • Loading branch information
m-kuhn committed Mar 25, 2020
1 parent 9b0db6e commit 52bb3fbd84265c9a63fdd3eccf3506c758ba18ea
Showing with 20 additions and 0 deletions.
  1. +20 −0 src/providers/postgres/qgspostgresconn.cpp
@@ -2032,6 +2032,26 @@ void QgsPostgresConn::postgisWkbType( QgsWkbTypes::Type wkbType, QString &geomet
geometryType = QStringLiteral( "MULTIPOLYGON" );
break;

case QgsWkbTypes::CircularString:
geometryType = QStringLiteral( "CIRCULARSTRING" );
break;

case QgsWkbTypes::CompoundCurve:
geometryType = QStringLiteral( "COMPOUNDCURVE" );
break;

case QgsWkbTypes::CurvePolygon:
geometryType = QStringLiteral( "CURVEPOLYGON" );
break;

case QgsWkbTypes::MultiCurve:
geometryType = QStringLiteral( "MULTICURVE" );
break;

case QgsWkbTypes::MultiSurface:
geometryType = QStringLiteral( "MULTISURFACE" );
break;

case QgsWkbTypes::Unknown:
geometryType = QStringLiteral( "GEOMETRY" );
break;

0 comments on commit 52bb3fb

Please sign in to comment.
You can’t perform that action at this time.