I would like to perform a counter-clockwise rotation of a country polygon about an origin in d3.geo.
For example, let's rotate Italy -7.2 degrees around a point with λ=0.5, φ=49.9. First, we need to transform those Euler angles into an Affine transformation parameters. In our case, the parameters will be:
affine(0.5, 49.9, -7.2)
scaleX rotY transX rotX scaleY transY
0.9921147 0.1253332 -6.250186 -0.1253332 0.9921147 0.456143
When I use QGIS Affine Transform plugin with such parameters the resulting map is .
When I apply the same parameters to projection.stream
in d3.js, the result is very different (and incorrect): https://bl.ocks.org/memoryfull/946a8172d074a865c4ff
I am handling the projection stream correctly in my code, because an (1, 0, 0, 0, 1, 0) Affine transformation yields an expected result of no transformation.
Thank you in advance for your help.