diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2021-09-28 14:47:07 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2021-09-28 14:47:07 +0200 |
| commit | f386e22e3604b6268989a04a4749b5bc24b3a632 (patch) | |
| tree | 4cf1ec8343d11f89cddf9fe9dc3b41ad8d95a80a /src/iso19111/factory.cpp | |
| parent | 17a218964e8cb06f289d04b9698fa62cb8f31f22 (diff) | |
| download | PROJ-f386e22e3604b6268989a04a4749b5bc24b3a632.tar.gz PROJ-f386e22e3604b6268989a04a4749b5bc24b3a632.zip | |
AuthorityFactory::createGeodeticCRS(): use description column for remarks
Diffstat (limited to 'src/iso19111/factory.cpp')
| -rw-r--r-- | src/iso19111/factory.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/iso19111/factory.cpp b/src/iso19111/factory.cpp index a898af6d..6c81b5ff 100644 --- a/src/iso19111/factory.cpp +++ b/src/iso19111/factory.cpp @@ -4809,8 +4809,7 @@ AuthorityFactory::createGeodeticCRS(const std::string &code, } std::string sql("SELECT name, type, coordinate_system_auth_name, " "coordinate_system_code, datum_auth_name, datum_code, " - "text_definition, " - "deprecated FROM " + "text_definition, deprecated, description FROM " "geodetic_crs WHERE auth_name = ? AND code = ?"); if (geographicOnly) { sql += " AND type in (" GEOG_2D_SINGLE_QUOTED "," GEOG_3D_SINGLE_QUOTED @@ -4831,9 +4830,10 @@ AuthorityFactory::createGeodeticCRS(const std::string &code, const auto &datum_code = row[5]; const auto &text_definition = row[6]; const bool deprecated = row[7] == "1"; + const auto &remarks = row[8]; auto props = d->createPropertiesSearchUsages("geodetic_crs", code, name, - deprecated); + deprecated, remarks); if (!text_definition.empty()) { DatabaseContext::Private::RecursionDetector detector(d->context()); |
