Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
2 additions
and
2 deletions.
-
+2
−2
src/core/qgscoordinatereferencesystem.cpp
|
@@ -316,7 +316,7 @@ bool QgsCoordinateReferenceSystem::createFromString( const QString &definition ) |
|
|
} |
|
|
else |
|
|
{ |
|
|
const thread_local QRegularExpression reCrsStr( "^(?:(wkt|proj4|proj)\\:)?(.+)$", QRegularExpression::CaseInsensitiveOption ); |
|
|
const thread_local QRegularExpression reCrsStr( QStringLiteral( "^(?:(wkt|proj4|proj)\\:)?(.+)$" ), QRegularExpression::CaseInsensitiveOption ); |
|
|
match = reCrsStr.match( definition ); |
|
|
if ( match.capturedStart() == 0 ) |
|
|
{ |
|
@@ -406,7 +406,7 @@ bool QgsCoordinateReferenceSystem::createFromOgcWmsCrs( const QString &crs ) |
|
|
QString wmsCrs = crs; |
|
|
|
|
|
thread_local const QRegExp re_uri( QStringLiteral( "http://www\\.opengis\\.net/def/crs/([^/]+).+/([^/]+)" ), Qt::CaseInsensitive ); |
|
|
thread_local const QRegExp re_urn( "urn:ogc:def:crs:([^:]+).+([^:]+)", Qt::CaseInsensitive ); |
|
|
thread_local const QRegExp re_urn( QStringLiteral( "urn:ogc:def:crs:([^:]+).+([^:]+)" ), Qt::CaseInsensitive ); |
|
|
if ( re_uri.exactMatch( wmsCrs ) ) |
|
|
{ |
|
|
wmsCrs = re_uri.cap( 1 ) + ':' + re_uri.cap( 2 ); |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.