-
Notifications
You must be signed in to change notification settings - Fork 789
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for EPSG methods 9666 and 1049 #4097
Comments
cf 4d64a35#diff-55a7b23971462a1329140262661d2e756961dfc3bd5df17a34e471ba6c095b6c for some potential inspiration |
In
|
One option is to do some maths to get a single affine translation
This is the normal formula
p2 = T + S*p1
But you want to do something like this, right?
p2 = T + S*( T1 + p1)
You can calculate another translation like this
p2 = (T + S*T1) + S*p1
…On Sat, 11 May 2024, 20:34 Yannick, ***@***.***> wrote:
In singleoperation.cpp, I am defining the parameters for the Affine
Parametric Transformation, but I need first to shift the coordinates so can
I apply two affine steps like in the following code ?
formatter->addStep("affine");
formatter->addParam("xoff", I0);
formatter->addParam("yoff", J0);
formatter->addStep("affine");
formatter->addParam("xoff", X0);
formatter->addParam("s11", SF * Mx * cos(theta) / inc_SX);
formatter->addParam("s12", SF * My * sin(theta) / inc_SY);
formatter->addParam("yoff", Y0);
formatter->addParam("s21", -SF * Mx * sin(theta) / inc_SX);
formatter->addParam("s22", SF * My * cos(theta) / inc_SY);
—
Reply to this email directly, view it on GitHub
<#4097 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADXTXHVB2334KRY5NWSHLN3ZBZQCJAVCNFSM6AAAAABFBAH2ZOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBVHE4DKMBQG4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Is this what you are suggesting ? formatter->addStep("affine"); |
P6 I=J+90 seismic bin grid coordinate operation (EPSG:9666) and
P6 I=J-90 seismic bin grid coordinate operation (EPSG:1049)
are both special cases of the Affine Geometric Transformation (method code 9623)
They are fully described in EPSG Guidance Note 7-2 (p.142-147) and as such should be easy to implement.
I'd like to help but have no idea where to start.
The text was updated successfully, but these errors were encountered: