diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2021-09-24 17:16:28 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2021-09-24 17:16:28 +0200 |
| commit | 1d6c202f9091d4f733c0824d1fcac2cec87c3a26 (patch) | |
| tree | ca5d8f99f0deffee972b59c61eabd8f2030a4a20 /src/iso19111/c_api.cpp | |
| parent | 35fe5da17d67f793336decbc6e9280fe8f26ca8f (diff) | |
| download | PROJ-1d6c202f9091d4f733c0824d1fcac2cec87c3a26.tar.gz PROJ-1d6c202f9091d4f733c0824d1fcac2cec87c3a26.zip | |
proj_normalize_for_visualization(): set input and output units when there are several alternative transformations (fixes #2866)
Diffstat (limited to 'src/iso19111/c_api.cpp')
| -rw-r--r-- | src/iso19111/c_api.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/iso19111/c_api.cpp b/src/iso19111/c_api.cpp index 791d75bc..a5e1bc81 100644 --- a/src/iso19111/c_api.cpp +++ b/src/iso19111/c_api.cpp @@ -8711,6 +8711,10 @@ PJ *proj_normalize_for_visualization(PJ_CONTEXT *ctx, const PJ *obj) { if (!pjNew) return nullptr; pjNew->ctx = ctx; + pjNew->descr = "Set of coordinate operations"; + pjNew->left = obj->left; + pjNew->right = obj->right; + for (const auto &alt : obj->alternativeCoordinateOperations) { auto co = dynamic_cast<const CoordinateOperation *>( alt.pj->iso_obj.get()); |
