AI Assistant
Notifications
Clear all

Python coding transformation problem

2 Posts
2 Users
0 Reactions
778 Views
Mohamed666
(@mohamed666)
Posts: 9
Member
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

I am trying to convert from Helmert1906 to WGS84 and i added the 7 parameters but doesn't work , Can you help me to fix it

?ÿ

import pyproj

?ÿ

print(pyproj.version)

?ÿ

print(pyproj.proj_version_str)

?ÿ

p = pyproj.Proj("+proj=tmerc +lat_0=30 +lon_0=31 +k=1 +x_0=615000 +y_0=810000 +ellps=helmert+towgs84=-121.8,98.1,-10.7,0,0,0.554,00.2263 +units=m +no_defs")

?ÿ

inProj = pyproj.Proj(init='epsg:22992')

?ÿ

outProj = pyproj.Proj(init='epsg:4326')

?ÿ

x1, y1 = (810000, 615000)

?ÿ

lon, lat = p(x1, y1, inverse=True)

?ÿ

print(lon,lat)


 
Posted : July 29, 2021 5:01 am
Crashbox
(@crashbox)
Posts: 545
Member
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

Should there be a space between 'helmert' and the '+' sign?


The only superior evidence is that which you haven't yet found.

 
Posted : July 29, 2021 5:45 am