diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-04-22 13:15:33 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-04-22 15:49:31 +0200 |
| commit | 17b2607deff4e939255ef7747c5887887ad3b7d7 (patch) | |
| tree | 036a2b120fea237a01755c0ebd1b62fce795716f /src/iso19111/factory.cpp | |
| parent | d8526d7870e4b91238c9a7b652ed03c21b77e884 (diff) | |
| download | PROJ-17b2607deff4e939255ef7747c5887887ad3b7d7.tar.gz PROJ-17b2607deff4e939255ef7747c5887887ad3b7d7.zip | |
Database: import common projections from ESRI projected CRS in structured form
That is Transverse_Mercator/Gauss_Kruger, Lambert_Conformal_Conic and
Hotine_Oblique_Mercator_Azimuth_Natural_Origin
Decreases proj.db from 5 853 184 bytes to 5 189 632 bytes.
Diffstat (limited to 'src/iso19111/factory.cpp')
| -rw-r--r-- | src/iso19111/factory.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/iso19111/factory.cpp b/src/iso19111/factory.cpp index 0f19c44a..e683c485 100644 --- a/src/iso19111/factory.cpp +++ b/src/iso19111/factory.cpp @@ -2413,6 +2413,11 @@ AuthorityFactory::createProjectedCRS(const std::string &code) const { auto conv = d->createFactory(conversion_auth_name) ->createConversion(conversion_code); + if (conv->nameStr() == "unnamed") { + conv = conv->shallowClone(); + conv->setProperties(util::PropertyMap().set( + common::IdentifiedObject::NAME_KEY, name)); + } auto cartesianCS = util::nn_dynamic_pointer_cast<cs::CartesianCS>(cs); if (cartesianCS) { |
