-
Notifications
You must be signed in to change notification settings - Fork 8
towgs84 parameter #5
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
Comments
These tools are designed only for 3d similarity transformation. |
No I am looking for tool to calculate position vector transformation parameters(towgs84) for setting coordinate system in QGIS as without these parameters there is a 100m shift on map transformation which is wrong. |
can you give me a full example with all points, transformation parameters and your needed towgs84 values that I can understand what you want? |
Input: result: PROJ.4 uses the Rz = -r12 * 3600 *180 / PI
Ry = r13 * 3600 * 180 / PI
Rx = -r23 * 3600 * 180 / PI The scale factor must be converted to scale difference in ppm: DS = (s-1) * 1000000 No need to change translation vector components. The seven parameter case uses x[io] = x[io] + defn->datum_params[0];
y[io] = y[io] + defn->datum_params[1];
z[io] = z[io] + defn->datum_params[2]; Seven parameter transformation (translation, rotation and scaling): #define Dx_BF (defn->datum_params[0])
#define Dy_BF (defn->datum_params[1])
#define Dz_BF (defn->datum_params[2])
#define Rx_BF (defn->datum_params[3])
#define Ry_BF (defn->datum_params[4])
#define Rz_BF (defn->datum_params[5])
#define M_BF (defn->datum_params[6])
x_out = M_BF*( x[io] - Rz_BF*y[io] + Ry_BF*z[io]) + Dx_BF;
y_out = M_BF*( Rz_BF*x[io] + y[io] - Rx_BF*z[io]) + Dy_BF;
z_out = M_BF*(-Ry_BF*x[io] + Rx_BF*y[io] + z[io]) + Dz_BF; Note that EPSG method 9607 (coordinate frame rotation) coefficients can be converted to EPSG method 9606 (position vector 7-parameter) supported by PROJ.4 by reversing the sign of the rotation vectors. The methods are otherwise the same. |
Why are you using a 3d transformation for a 2d usecase in your example? |
Yes need to find transformation parameters from Bessel(Cassini-soldner.txt) to WGS84(LKS2.txt)
gdaltransform.exe -s_srs EPSG:4661 -t_srs "+proj=cass +lat_0=56.94831083 +lon_0=24.10886056 +k=1 +x_0=0 +y_0=0 +ellps=bessel +units=m"
Enter X Y [Z [T]] values separated by space, and press Return.
24.10877524 56.94747212
result: **-5.19174698205156 -93.3869234910952 0**
expected: **0.0 0.0 0**
gdaltransform -s_srs EPSG:3059 -t_srs "+proj=cass +lat_0=56.94831083 +lon_0=24.10886056 +k=1 +x_0=0 +y_0=0 +ellps=bessel +units=m"
Enter X Y [Z [T]] values separated by space, and press Return.
311544.05 506617.17
result: **-5.19203592124977 -93.388642267098 0**
expected: **0.0 0.0 0**
gdaltransform -s_srs EPSG:3059 -t_srs "+proj=cass +lat_0=56.94831083 +lon_0=24.10886056 +k=1 +x_0=0 +y_0=0 +towgs84=419.640956,183.735831,549.377809,1.89693297,3.30507103,4.55745697,-2.6694418 +ellps=bessel +units=m"
Enter X Y [Z [T]] values separated by space, and press Return.
311544.05 506617.17
result almost as expected:**0.99 -0.84 0.06**
expected: **0.0 0.0 0** |
Its no X Y Z! Its B and L! |
I attached XYZ also but seems need to find different way as Helmert3d requires Z. |
See #5 (comment) |
@zvezdochiot wow super fast nice :-) GRS80.txt:
helmblhtoxyz GRS80.txt XYH.txt
|
Hi @dr-ni . Do not rush. I am already redoing to the format (1.0.3): helmblhtoxyz commands blh|xyz_src_infilename ellipsoid_src_infilename [blh|xyz_dest_infilename]
commands:
xyz - convert B-L-H to X-Y-Z
blh - convert X-Y-Z to B-L-H It will be ready soon. |
and some spaces wrong
|
@dr-ni say:
I know. Rush. Therefore, I want to quickly convert to |
Starting calculate... => Starting calculation... |
I think we should leave this issue open since it may be interesting for others, too |
So with helmblhtoxyz it will be possible to calculate geocentric coodinates and then find helmert parameters between them? |
@otofoto say:
It's already possible. It will be possible to return soon. See https://github.com/dr-ni/helmert3d/releases/tag/1.0.2 |
Strange results: helmblhtoxyz
19.710868 7.877001 0.000000
19.548217 8.272404 0.000000
19.458599 8.481061 0.000000
19.343550 8.740282 0.000000
19.213787 9.021964 0.000000
19.152327 9.151712 0.000000
19.041679 9.379761 0.000000
18.976880 9.510178 0.000000
19.374972 8.670405 0.000000
19.374970 8.670409 0.000000 |
@otofoto say:
See #5 (comment) "Watch yourself, be careful." (c) Viktor Tsoi. |
понял не дурак, дурак бы не понял :) |
@otofoto say:
See https://github.com/dr-ni/helmert3d/releases/tag/1.0.3 "И не будет после нас тьмы..." (c) @zvezdochiot . |
@zvezdochiot |
can you give some details about LGS21? |
@dr-ni say:
Try to apply GRS80. If the point in Helmert comply, it means LGS21 is a shifted GRS80. (Although there was some mention about Bessel!) |
and the bin helmblhtoxyz shold also be blh2xyz |
@dr-ni say:
Not! I will not do it exactly! You do, but I will be against. |
but then
is wrong |
@dr-ni say:
No. One thing is the inner name that is closest to the appointment. Another thing is to solve problems with the imposition of other packages, after which you remember what is her name. All utils specially have prefix |
It is Cassini-Soldner projection on Bessel ellipsoid(Bessel-1841 either 6377397.155 6356078.963 or 6377397.155 6356078.96325 with azimuth to Jelgava 215°24'04.38[215.40121667]) I have known affine parameters but only for BL-BL, there are no direct LGS21 transformation to WGS84/EPSG:3059. For some reason and my limited knowledge just providing LGS21 as proj string ""+proj=cass +lat_0=56.94831083 +lon_0=24.10886056 +k=1 +x_0=0 +y_0=0 +ellps=bessel +units=m" resulting coordinate are shifted in any GIS/CAD or GDAL. I really appreciate your help. |
input format is ok as ellipsoid sizes can be easily found. |
we should then either use helmblh2xyz or helmblhtoxyz |
@otofoto say:
Yes. And many programs contain exactly ( @dr-ni say:
Ok. |
ok better name for it is |
@dr-ni say:
|
helmeltrans |
@dr-ni say:
Or |
I like helmeltrans |
IMHO "helm el" sounds like helmel trans and not related to helmert. Doesn't it translate to geocentric coordinates and is Helmert actually used there? |
zvezdochiot wants that all tools are beginnin with "helm" |
helmreprojection or helmtrf or helmtransform |
@dr-ni say:
Die is cast. Discussion is closed! *******************************
* helmeltrans v1.0.4 *
* (c) U. Niethammer 2020 *
******************************* Should I put 2021 in copyright? |
yes |
@otofoto |
@dr-ni say:
Why wait? You can do it yourself. The data is on hand: 0.9999999996 -0.0000220952 0.0000160236
0.0000220953 0.9999999997 -0.0000091965
-0.0000160234 0.0000091969 0.9999999998
419.6398186970 183.7356435974 549.3785472015
0.9999973306 @otofoto say:
|
ah ok I was missing the ellipsoid BESSEL for LGS21 |
seems to be looking good (I was only checking rz=4,559773758 and DS=−2,6694) Well done! |
@dr-ni say:
So the first three direct-flow: 419.6398186970 183.7356435974 549.3785472015 |
Don't compare to my previous parameters it may differ slightly as it was calculated by less points. +towgs84=419.6398111864,183.7356423902,549.3785528344,1.89700504716617,3.30502843140266,4.55748689876759,-2.66940000004379 Looks good now it is around 1 meter shift. |
Option to calculate valid 7 parameter +towgs84 value that could be used with proj.4/WKT
The text was updated successfully, but these errors were encountered: