Skip to content

Commit

Permalink
Adjust naming
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Nov 19, 2021
1 parent 1b2dd54 commit 4b610b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -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 )
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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() );

}

Expand Down
2 changes: 1 addition & 1 deletion src/providers/postgres/qgspostgresprovider.h
Expand Up @@ -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 );

};

Expand Down

0 comments on commit 4b610b9

Please sign in to comment.