[PROJ] Affine transformation using DERIVEDPROJCRS

Even Rouault even.rouault at spatialys.com
Sat Jul 9 07:13:07 PDT 2022


Le 09/07/2022 à 16:05, Bart.Duijndam at ziggo.nl a écrit :
>
> Hi Even,
>
> You mentioned that in order to have ID["EPSG",9624]]included into the 
> WKT2 string, you need to add it to the PropertyMap with
>
> .set(metadata::Identifier::CODESPACE_KEY, metadata::Identifier::EPSG)
>
> .set(metadata::Identifier::CODE_KEY, 9624)
>
> I appreciate this, but the question is *where* do this.
>
Well, on the object where this is relevant :-)

So on the property map of the conversion method, that is the one of

PropertyMap().set(IdentifiedObject::NAME_KEY, "Affine parametric 
transformation"),

> Obviously, I have similar problems with the Affine transformation 
> parameters: 8623, 8624, 8625, 8639, 8640 and 8641.
>
Same here on the respective property map of each operation parameter.

so something like

Conversion::create
      (
          PropertyMap().set(IdentifiedObject::NAME_KEY, "Affine"),
          PropertyMap().set(IdentifiedObject::NAME_KEY, "Affine 
parametric transformation").set(metadata::Identifier::CODESPACE_KEY, 
metadata::Identifier::EPSG).set(metadata::Identifier::CODE_KEY, 9624) ,
          std::vector<OperationParameterNNPtr>
          {
              OperationParameter::create(PropertyMap().set(
                  IdentifiedObject::NAME_KEY, 
"A0").set(metadata::Identifier::CODESPACE_KEY, 
metadata::Identifier::EPSG).set(metadata::Identifier::CODE_KEY, 8623)),
              OperationParameter::create(PropertyMap().set(
                  IdentifiedObject::NAME_KEY, "A1")),
              OperationParameter::create(PropertyMap().set(
                  IdentifiedObject::NAME_KEY, "A2")),
              OperationParameter::create(PropertyMap().set(
                  IdentifiedObject::NAME_KEY, "B0")),
              OperationParameter::create(PropertyMap().set(
                  IdentifiedObject::NAME_KEY, "B1")),
              OperationParameter::create(PropertyMap().set(
                  IdentifiedObject::NAME_KEY, "B2")),
          },


> Kind regards,
>
> Bart
>
-- 
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20220709/6a49d90b/attachment-0001.htm>


More information about the PROJ mailing list