[PROJ] Affine transformation using DERIVEDPROJCRS

Bart.Duijndam at ziggo.nl Bart.Duijndam at ziggo.nl
Sat Jul 9 09:01:14 PDT 2022


Hi Even,

 

Merci beaucoup; ça marche !

 

Bart

 

 

From: Even Rouault <even.rouault at spatialys.com> 
Sent: Saturday, 9 July 2022 16:13
To: Bart.Duijndam at ziggo.nl; proj at lists.osgeo.org
Subject: Re: [PROJ] Affine transformation using DERIVEDPROJCRS

 

 

Le 09/07/2022 à 16:05, Bart.Duijndam at ziggo.nl <mailto: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/c311b073/attachment.htm>


More information about the PROJ mailing list