[PROJ] Affine transformation using DERIVEDPROJCRS

Bart.Duijndam at ziggo.nl Bart.Duijndam at ziggo.nl
Tue Jul 5 14:35:50 PDT 2022


Hi Even,

 

Thanks for your help; you’re working late…

Please be advised that I already started with using nn_dynamic_pointer_cast<ProjectedCRS>(crs);

But then I got the following obscure error message:

 

D:\Source\VS19\PROJ\test\unit\test_crs.cpp(5516): error C2280: 'dropbox::oxygen::nn<osgeo::proj::crs::ProjectedCRSPtr>::nn(PtrType)': attempting to reference a deleted function

          with

          [

              PtrType=osgeo::proj::crs::ProjectedCRSPtr

          ]

  D:\Source\VS19\PROJ\include\proj\nn.hpp(126): note: see declaration of 'dropbox::oxygen::nn<osgeo::proj::crs::ProjectedCRSPtr>::nn'

  D:\Source\VS19\PROJ\include\proj\nn.hpp(126): note: 'dropbox::oxygen::nn<osgeo::proj::crs::ProjectedCRSPtr>::nn(PtrType)': function was explicitly deleted

          with

          [

              PtrType=osgeo::proj::crs::ProjectedCRSPtr

          ]

  ninja: build stopped: subcommand failed.

 

Build All failed.

 

So that’s why I tried ProjectedCRSNNPtr instead

 

Cheers,

 

Bart

 

 

 

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

 

    auto proj_crs = nn_dynamic_pointer_cast<ProjectedCRSNNPtr>(crs);

==> auto proj_crs = nn_dynamic_pointer_cast<ProjectedCRS>(crs);

-- 
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/20220705/4aa74469/attachment.htm>


More information about the PROJ mailing list