Skip to content

Commit f14b729

Browse files
committed
fix some references to PROJ.4
1 parent 23dc1c8 commit f14b729

8 files changed

+32
-25
lines changed

python/core/qgscoordinatereferencesystem.sip.in

+8-8
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ This class represents a coordinate reference system (CRS).
2121

2222
Coordinate reference system object defines a specific map projection, as well as transformations
2323
between different coordinate reference systems. There are various ways how a CRS can be defined:
24-
using well-known text (WKT), PROJ.4 string or combination of authority and code (e.g. EPSG:4326).
24+
using well-known text (WKT), PROJ string or combination of authority and code (e.g. EPSG:4326).
2525
QGIS comes with its internal database of coordinate reference systems (stored in SQLite) that
2626
allows lookups of CRS and seamless conversions between the various definitions.
2727

@@ -34,7 +34,7 @@ typically using meters or feet as units. Common projected coordinate systems are
3434
Transverse Mercator or Albers Equal Area.
3535

3636
Internally QGIS uses proj4 library for all the math behind coordinate transformations, so in case
37-
of any troubles with projections it is best to examine the PROJ.4 representation within the object,
37+
of any troubles with projections it is best to examine the PROJ representation within the object,
3838
as that is the representation that will be ultimately used.
3939

4040
Methods that allow inspection of CRS instances include isValid(), authid(), description(),
@@ -49,7 +49,7 @@ For example, the following code will create and inspect "British national grid"
4949
crs = QgsCoordinateReferenceSystem("EPSG:27700")
5050
if crs.isValid():
5151
print("CRS Description: {}".format(crs.description()))
52-
print("CRS PROJ.4 text: {}".format(crs.toProj4()))
52+
print("CRS PROJ text: {}".format(crs.toProj4()))
5353
else:
5454
print("Invalid CRS!")
5555

@@ -58,7 +58,7 @@ This will produce the following output:
5858
.. code-block::
5959

6060
CRS Description: OSGB 1936 / British National Grid
61-
CRS PROJ.4 text: +proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 [output trimmed]
61+
CRS PROJ text: +proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 [output trimmed]
6262

6363
CRS Definition Formats
6464
======================
@@ -80,7 +80,7 @@ on different machines or user profiles.
8080

8181
See authid() and createFromOgcWmsCrs() methods.
8282

83-
2. **PROJ.4 string.** This is a string consisting of a series of key/value pairs in the following
83+
2. **PROJ string.** This is a string consisting of a series of key/value pairs in the following
8484
format: `+param1=value1 +param2=value2 [...]`. This is the format natively used by the
8585
underlying proj4 library. For example, the definition of WGS84 looks like this:
8686

@@ -376,7 +376,7 @@ user's local CRS database from home directory is used.
376376

377377
bool createFromProj4( const QString &projString );
378378
%Docstring
379-
Sets this CRS by passing it a PROJ.4 style formatted string.
379+
Sets this CRS by passing it a PROJ style formatted string.
380380

381381
The string will be parsed and the projection and ellipsoid
382382
members set and the remainder of the proj4 string will be stored
@@ -430,7 +430,7 @@ If no prefix is specified, WKT definition is assumed.
430430
Set up this CRS from various text formats.
431431

432432
Valid formats: WKT string, "EPSG:n", "EPSGA:n", "AUTO:proj_id,unit_id,lon0,lat0",
433-
"urn:ogc:def:crs:EPSG.n", PROJ.4 string, filename (with WKT, XML or PROJ.4 string),
433+
"urn:ogc:def:crs:EPSG.n", PROJ string, filename (with WKT, XML or PROJ string),
434434
well known name (such as NAD27, NAD83, WGS84 or WGS72),
435435
ESRI.[WKT string] (directly or in a file), "IGNF:xxx"
436436

@@ -489,7 +489,7 @@ if that involves resorting to a hard coded default of geocs:wgs84.
489489
long findMatchingProj();
490490
%Docstring
491491
Walks the CRS databases (both system and user database) trying to match
492-
stored PROJ.4 string to a database entry in order to fill in further
492+
stored PROJ string to a database entry in order to fill in further
493493
pieces of information about CRS.
494494

495495
.. note::

scripts/qgis_srs.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# AUTHOR: Maciej Sieczka, msieczka@sieczka.org, http://www.sieczka.org
1919
#
2020
# PURPOSE: Create a QGIS srs.db-compliant SQL script with SRS, ellipsoid
21-
# and projections defs based on the output of installed PROJ.4 and
21+
# and projections defs based on the output of installed PROJ and
2222
# GDAL.
2323
#
2424
# VERSION: 1.1.0, 2009.03.19

src/app/qgisapp.cpp

+9-2
Original file line numberDiff line numberDiff line change
@@ -4112,13 +4112,20 @@ void QgisApp::about()
41124112

41134113
versionString += QLatin1String( "</tr><tr>" );
41144114

4115-
versionString += "<td>" + tr( "QWT Version" ) + "</td><td>" + QWT_VERSION_STR + "</td>";
4116-
versionString += "<td>" + tr( "PROJ.4 Version" ) + "</td><td>" + QString::number( PJ_VERSION ) + "</td>";
4115+
#if PJ_VERSION >= 500
4116+
versionString += "<td>" + tr( "Compiled against PROJ" ) + "</td><td>" + QString::number( PJ_VERSION ) + "</td>";
4117+
versionString += "<td>" + tr( "Running against PROJ" ) + "</td><td>" + proj_info() + "</td>";
4118+
#else
4119+
versionString += "<td colspan=2>" + tr( "PROJ.4 Version" ) + "</td><td>" + QString::number( PJ_VERSION ) + "</td>";
4120+
#endif
41174121

41184122
versionString += QLatin1String( "</tr><tr>" );
41194123

4124+
versionString += "<td>" + tr( "QWT Version" ) + "</td><td>" + QWT_VERSION_STR + "</td>";
41204125
versionString += "<td>" + tr( "QScintilla2 Version" ) + "</td><td>" + QSCINTILLA_VERSION_STR + "</td>";
41214126

4127+
versionString += QLatin1String( "</tr><tr>" );
4128+
41224129
#ifdef QGISDEBUG
41234130
versionString += "<td colspan=2>" + tr( "This copy of QGIS writes debugging output." ) + "</td>";
41244131
#endif

src/core/qgscoordinatereferencesystem.h

+8-8
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ typedef void ( *CUSTOM_CRS_VALIDATION )( QgsCoordinateReferenceSystem & ) SIP_SK
5656
*
5757
* Coordinate reference system object defines a specific map projection, as well as transformations
5858
* between different coordinate reference systems. There are various ways how a CRS can be defined:
59-
* using well-known text (WKT), PROJ.4 string or combination of authority and code (e.g. EPSG:4326).
59+
* using well-known text (WKT), PROJ string or combination of authority and code (e.g. EPSG:4326).
6060
* QGIS comes with its internal database of coordinate reference systems (stored in SQLite) that
6161
* allows lookups of CRS and seamless conversions between the various definitions.
6262
*
@@ -69,7 +69,7 @@ typedef void ( *CUSTOM_CRS_VALIDATION )( QgsCoordinateReferenceSystem & ) SIP_SK
6969
* Transverse Mercator or Albers Equal Area.
7070
*
7171
* Internally QGIS uses proj4 library for all the math behind coordinate transformations, so in case
72-
* of any troubles with projections it is best to examine the PROJ.4 representation within the object,
72+
* of any troubles with projections it is best to examine the PROJ representation within the object,
7373
* as that is the representation that will be ultimately used.
7474
*
7575
* Methods that allow inspection of CRS instances include isValid(), authid(), description(),
@@ -83,7 +83,7 @@ typedef void ( *CUSTOM_CRS_VALIDATION )( QgsCoordinateReferenceSystem & ) SIP_SK
8383
* crs = QgsCoordinateReferenceSystem("EPSG:27700")
8484
* if crs.isValid():
8585
* print("CRS Description: {}".format(crs.description()))
86-
* print("CRS PROJ.4 text: {}".format(crs.toProj4()))
86+
* print("CRS PROJ text: {}".format(crs.toProj4()))
8787
* else:
8888
* print("Invalid CRS!")
8989
* \endcode
@@ -92,7 +92,7 @@ typedef void ( *CUSTOM_CRS_VALIDATION )( QgsCoordinateReferenceSystem & ) SIP_SK
9292
*
9393
* \code
9494
* CRS Description: OSGB 1936 / British National Grid
95-
* CRS PROJ.4 text: +proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 [output trimmed]
95+
* CRS PROJ text: +proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 [output trimmed]
9696
* \endcode
9797
*
9898
* CRS Definition Formats
@@ -115,7 +115,7 @@ typedef void ( *CUSTOM_CRS_VALIDATION )( QgsCoordinateReferenceSystem & ) SIP_SK
115115
*
116116
* See authid() and createFromOgcWmsCrs() methods.
117117
*
118-
* 2. **PROJ.4 string.** This is a string consisting of a series of key/value pairs in the following
118+
* 2. **PROJ string.** This is a string consisting of a series of key/value pairs in the following
119119
* format: `+param1=value1 +param2=value2 [...]`. This is the format natively used by the
120120
* underlying proj4 library. For example, the definition of WGS84 looks like this:
121121
*
@@ -357,7 +357,7 @@ class CORE_EXPORT QgsCoordinateReferenceSystem
357357
bool createFromSrsId( const long srsId );
358358

359359
/**
360-
* Sets this CRS by passing it a PROJ.4 style formatted string.
360+
* Sets this CRS by passing it a PROJ style formatted string.
361361
*
362362
* The string will be parsed and the projection and ellipsoid
363363
* members set and the remainder of the proj4 string will be stored
@@ -401,7 +401,7 @@ class CORE_EXPORT QgsCoordinateReferenceSystem
401401
* Set up this CRS from various text formats.
402402
*
403403
* Valid formats: WKT string, "EPSG:n", "EPSGA:n", "AUTO:proj_id,unit_id,lon0,lat0",
404-
* "urn:ogc:def:crs:EPSG::n", PROJ.4 string, filename (with WKT, XML or PROJ.4 string),
404+
* "urn:ogc:def:crs:EPSG::n", PROJ string, filename (with WKT, XML or PROJ string),
405405
* well known name (such as NAD27, NAD83, WGS84 or WGS72),
406406
* ESRI::[WKT string] (directly or in a file), "IGNF:xxx"
407407
*
@@ -443,7 +443,7 @@ class CORE_EXPORT QgsCoordinateReferenceSystem
443443

444444
/**
445445
* Walks the CRS databases (both system and user database) trying to match
446-
* stored PROJ.4 string to a database entry in order to fill in further
446+
* stored PROJ string to a database entry in order to fill in further
447447
* pieces of information about CRS.
448448
* \note The ellipsoid and projection acronyms must be set as well as the proj4string!
449449
* \returns long the SrsId of the matched CRS, zero if no match was found

src/core/qgscoordinatetransform.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ void QgsCoordinateTransform::transformCoords( int numPoints, double *x, double *
644644

645645
QString msg = QObject::tr( "%1 of\n"
646646
"%2"
647-
"PROJ.4: %3 +to %4\n"
647+
"PROJ: %3 +to %4\n"
648648
"Error: %5" )
649649
.arg( dir,
650650
points,

src/core/qgsellipsoidutils.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ QgsEllipsoidUtils::EllipsoidParameters QgsEllipsoidUtils::ellipsoidParameters( c
7676
//
7777
sqlite3_database_unique_ptr database;
7878
sqlite3_statement_unique_ptr statement;
79-
// Continue with PROJ.4 list of ellipsoids.
79+
// Continue with PROJ list of ellipsoids.
8080

8181
//check the db is available
8282
int result = database.open_v2( QgsApplication::srsDatabaseFilePath(), SQLITE_OPEN_READONLY, nullptr );

src/plugins/grass/qgsgrassnewmapset.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ void QgsGrassNewMapset::setGrassProjection()
435435

436436
if ( errcode != OGRERR_NONE )
437437
{
438-
QgsDebugMsg( QString( "OGR can't parse PROJ.4-style parameter string:\n%1\nOGR Error code was %2" ).arg( proj4 ).arg( errcode ) );
438+
QgsDebugMsg( QString( "OGR can't parse PROJ-style parameter string:\n%1\nOGR Error code was %2" ).arg( proj4 ).arg( errcode ) );
439439

440440
mCellHead.proj = PROJECTION_XY;
441441
mCellHead.zone = 0;

tests/src/core/testqgscoordinatereferencesystem.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ void TestQgsCoordinateReferenceSystem::initTestCase()
118118
qDebug() << "GEOPROJ4 constant: " << GEOPROJ4;
119119
qDebug() << "GDAL version (build): " << GDAL_RELEASE_NAME;
120120
qDebug() << "GDAL version (runtime): " << GDALVersionInfo( "RELEASE_NAME" );
121-
qDebug() << "PROJ.4 version: " << PJ_VERSION;
121+
qDebug() << "PROJ version: " << PJ_VERSION;
122122

123123
// if user set GDAL_FIX_ESRI_WKT print a warning
124124
if ( strcmp( CPLGetConfigOption( "GDAL_FIX_ESRI_WKT", "" ), "" ) != 0 )
@@ -338,11 +338,11 @@ QString TestQgsCoordinateReferenceSystem::testESRIWkt( int i, QgsCoordinateRefer
338338
return QStringLiteral( "test %1 crs is invalid" );
339339
#if 0
340340
if ( myCrs.toProj4() != myProj4Strings[i] )
341-
return QString( "test %1 PROJ.4 = [ %2 ] expecting [ %3 ]"
341+
return QString( "test %1 PROJ = [ %2 ] expecting [ %3 ]"
342342
).arg( i ).arg( myCrs.toProj4() ).arg( myProj4Strings[i] );
343343
#endif
344344
if ( myCrs.toProj4().indexOf( myTOWGS84Strings[i] ) == -1 )
345-
return QStringLiteral( "test %1 [%2] not found, PROJ.4 = [%3] expecting [%4]"
345+
return QStringLiteral( "test %1 [%2] not found, PROJ = [%3] expecting [%4]"
346346
).arg( i ).arg( myTOWGS84Strings[i], myCrs.toProj4(), myProj4Strings[i] );
347347
if ( myCrs.authid() != myAuthIdStrings[i] )
348348
return QStringLiteral( "test %1 AUTHID = [%2] expecting [%3]"

0 commit comments

Comments
 (0)