aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-10-08 17:31:13 +0200
committerEven Rouault <even.rouault@spatialys.com>2020-10-08 17:31:54 +0200
commitecf9cf0d975b3eb7630a314e8b32dd59658c3e2a (patch)
treeb7bf33c9c608dd2215d269a827669e3f058a9a98 /src
parent3ed9a613d8da9874f45d2a069686f1fa38c72ad9 (diff)
downloadPROJ-ecf9cf0d975b3eb7630a314e8b32dd59658c3e2a.tar.gz
PROJ-ecf9cf0d975b3eb7630a314e8b32dd59658c3e2a.zip
getCRSInfoList(): make it use area description
Diffstat (limited to 'src')
-rw-r--r--src/iso19111/factory.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/iso19111/factory.cpp b/src/iso19111/factory.cpp
index 6eb03ad4..5d0ed69a 100644
--- a/src/iso19111/factory.cpp
+++ b/src/iso19111/factory.cpp
@@ -5308,7 +5308,7 @@ std::list<AuthorityFactory::CRSInfo> AuthorityFactory::getCRSInfoList() const {
std::string sql = "SELECT c.auth_name, c.code, c.name, c.type, "
"c.deprecated, "
"a.west_lon, a.south_lat, a.east_lon, a.north_lat, "
- "a.name, NULL FROM geodetic_crs c " +
+ "a.description, NULL FROM geodetic_crs c " +
getSqlArea("geodetic_crs");
ListOfParams params;
if (d->hasAuthorityRestriction()) {
@@ -5319,7 +5319,8 @@ std::list<AuthorityFactory::CRSInfo> AuthorityFactory::getCRSInfoList() const {
sql += "SELECT c.auth_name, c.code, c.name, 'projected', "
"c.deprecated, "
"a.west_lon, a.south_lat, a.east_lon, a.north_lat, "
- "a.name, cm.name AS conversion_method_name FROM projected_crs c " +
+ "a.description, cm.name AS conversion_method_name FROM "
+ "projected_crs c " +
getSqlArea("projected_crs") +
"LEFT JOIN conversion_table conv ON "
"c.conversion_auth_name = conv.auth_name AND "
@@ -5335,7 +5336,7 @@ std::list<AuthorityFactory::CRSInfo> AuthorityFactory::getCRSInfoList() const {
sql += "SELECT c.auth_name, c.code, c.name, 'vertical', "
"c.deprecated, "
"a.west_lon, a.south_lat, a.east_lon, a.north_lat, "
- "a.name, NULL FROM vertical_crs c " +
+ "a.description, NULL FROM vertical_crs c " +
getSqlArea("vertical_crs");
if (d->hasAuthorityRestriction()) {
sql += " WHERE c.auth_name = ?";
@@ -5345,7 +5346,7 @@ std::list<AuthorityFactory::CRSInfo> AuthorityFactory::getCRSInfoList() const {
sql += "SELECT c.auth_name, c.code, c.name, 'compound', "
"c.deprecated, "
"a.west_lon, a.south_lat, a.east_lon, a.north_lat, "
- "a.name, NULL FROM compound_crs c " +
+ "a.description, NULL FROM compound_crs c " +
getSqlArea("compound_crs");
if (d->hasAuthorityRestriction()) {
sql += " WHERE c.auth_name = ?";