Commit 6e6255c0 authored by BenZr's avatar BenZr
Browse files

test projection lat,lon (deg) to x,y (m)

parent 5a6be4bb
# requires : sudo apt install python3-pyproj
# test project lat,lon (deg) to meters
from pyproj import Proj, transform
inProj = Proj("+init=EPSG:2263",preserve_units=True)
outProj = Proj("+init=EPSG:4326") # WGS84 in degrees and not EPSG:3857 in meters)
x2,y2 = -74.2700000001129, 40.46999999990434
print (x2,y2)
x1,y1 = transform(outProj,inProj,x2,y2)
print (x1,y1)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment