Skip to content
Permalink
Browse files
Remove useless check
  • Loading branch information
m-kuhn committed Nov 19, 2021
1 parent a7e1a99 commit 49f003f5263dd8aa434dc248783dab6c3c3cb832
Showing with 0 additions and 2 deletions.
  1. +0 −2 src/providers/postgres/qgspostgresprovider.cpp
@@ -372,8 +372,6 @@ QgsReferencedGeometry QgsPostgresProvider::fromEwkt( const QString &ewkt, QgsPos
ewktInfo.wkt = ewkt.mid( regularExpressionMatch.captured( 0 ).size() );
ewktInfo.srid = regularExpressionMatch.captured( 1 ).toInt();

if ( ewktInfo.srid < 0 )
return QgsReferencedGeometry();

QgsGeometry geom = QgsGeometry::fromWkt( ewktInfo.wkt );
return QgsReferencedGeometry( geom, sridToCrs( ewktInfo.srid, conn ) );

0 comments on commit 49f003f

Please sign in to comment.