Skip to content
Permalink
Browse files
Adjust naming
  • Loading branch information
m-kuhn committed Nov 19, 2021
1 parent 1b2dd54 commit 4b610b95278d49dbed984261c322b2ffa39c38d8
Showing with 4 additions and 4 deletions.
  1. +3 −3 src/providers/postgres/qgspostgresprovider.cpp
  2. +1 −1 src/providers/postgres/qgspostgresprovider.h
@@ -376,7 +376,7 @@ QgsReferencedGeometry QgsPostgresProvider::fromEwkt( const QString &ewkt, QgsPos
return QgsReferencedGeometry();

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

QString QgsPostgresProvider::toEwkt( const QgsReferencedGeometry &geom, QgsPostgresConn *conn )
@@ -425,7 +425,7 @@ int QgsPostgresProvider::crsToSrid( const QgsCoordinateReferenceSystem &crs, Qgs
return -1;
}

QgsCoordinateReferenceSystem QgsPostgresProvider::sridToCoordSystem( int srid, QgsPostgresConn *conn )
QgsCoordinateReferenceSystem QgsPostgresProvider::sridToCrs( int srid, QgsPostgresConn *conn )
{
QgsCoordinateReferenceSystem crs;

@@ -4807,7 +4807,7 @@ QgsCoordinateReferenceSystem QgsPostgresProvider::crs() const
QgsCoordinateReferenceSystem srs;
int srid = mRequestedSrid.isEmpty() ? mDetectedSrid.toInt() : mRequestedSrid.toInt();

return sridToCoordSystem( srid, connectionRO() );
return sridToCrs( srid, connectionRO() );

}

@@ -507,7 +507,7 @@ class QgsPostgresProvider final: public QgsVectorDataProvider
static QString toEwkt( const QgsReferencedGeometry &geom, QgsPostgresConn *conn );
static QString geomAttrToString( const QVariant &attr, QgsPostgresConn *conn );
static int crsToSrid( const QgsCoordinateReferenceSystem &crs, QgsPostgresConn *conn );
static QgsCoordinateReferenceSystem sridToCoordSystem( int srsId, QgsPostgresConn *conn );
static QgsCoordinateReferenceSystem sridToCrs( int srsId, QgsPostgresConn *conn );

};

0 comments on commit 4b610b9

Please sign in to comment.