diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-10-17 22:41:55 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2020-10-17 22:41:55 +0200 |
| commit | 3a2df3462c851b7dc823b1cd84fc8a61dc9c2d08 (patch) | |
| tree | 8060f58eda883db9d6a66122fa09bd9ba816d423 /src | |
| parent | 82b496fb32df0b6705159cd5c626aab20c8e9d39 (diff) | |
| download | PROJ-3a2df3462c851b7dc823b1cd84fc8a61dc9c2d08.tar.gz PROJ-3a2df3462c851b7dc823b1cd84fc8a61dc9c2d08.zip | |
CompoundCRS with ellipsoidal height: make sure the vertical axis has 'ellipsoid height' as name and 'h' as abbreviation
Diffstat (limited to 'src')
| -rw-r--r-- | src/iso19111/crs.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/iso19111/crs.cpp b/src/iso19111/crs.cpp index cea6476f..051f9463 100644 --- a/src/iso19111/crs.cpp +++ b/src/iso19111/crs.cpp @@ -4477,8 +4477,12 @@ CRSNNPtr CompoundCRS::createLax(const util::PropertyMap &properties, &(axis->direction()) == &(cs::AxisDirection::UP))) { name += " (" + comp1Vert->nameStr() + ')'; } + auto newVertAxis = cs::CoordinateSystemAxis::create( + util::PropertyMap().set(IdentifiedObject::NAME_KEY, + cs::AxisName::Ellipsoidal_height), + cs::AxisAbbreviation::h, axis->direction(), axis->unit()); return components[0] - ->promoteTo3D(name, dbContext, axis) + ->promoteTo3D(name, dbContext, newVertAxis) ->attachOriginalCompoundCRS(create( properties, comp0Bound ? std::vector<CRSNNPtr>{comp0Bound->baseCRS(), |
