Notifications
Clear all

Python coding transformation problem

2 Posts
2 Users
0 Reactions
160 Views
Mohamed666
(@mohamed666)
Posts: 9
Member
Topic starter
 

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: 542
Member
 

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

 
Posted : July 29, 2021 5:45 am