go-spatial / proj

Go's version of the PROJ.4 projection library
Other
88 stars 21 forks source link

Cmd returns +Inf #40

Open tartavull opened 3 years ago

tartavull commented 3 years ago

Thank you for this great project!

I'm trying to use the command line to replicate the results from: https://epsg.io/transform#s_srs=32617&t_srs=4326&x=632519.9000000&y=4834621.3000000

But nothing seems to work:

(base) ➜  proj git:(master) ✗ go run proj.go +proj=utm +zone=17 +datum=WGS84 +units=m +no_defs

79.38 43.65
+Inf +Inf

unexpected newline
exit status 1
(base) ➜  proj git:(master) ✗ go run proj.go +proj=utm +zone=17 +datum=WGS84 +units=m +no_defs

43.65 79.38
+Inf +Inf

unexpected newline
exit status 1
(base) ➜  proj git:(master) ✗ go run proj.go +proj=utm +zone=17 +datum=WGS84 +units=m +no_defs -inverse

79.38 43.65
+Inf +Inf

unexpected newline
exit status 1
(base) ➜  proj git:(master) ✗ go run proj.go +proj=utm +zone=17 +datum=WGS84 +units=m +no_defs -inverse

43.65 79.38
+Inf +Inf

unexpected newline
exit status 1
(base) ➜  proj git:(master) ✗ go run proj.go +proj=utm +zone=17 +datum=WGS84 +units=m +no_defs -inverse

-79.38 43.65
+Inf +Inf
^Csignal: interrupt
(base) ➜  proj git:(master) ✗ go run proj.go +proj=utm +zone=17 +datum=WGS84 +units=m +no_defs

-79.38 43.65
+Inf +Inf

unexpected newline
exit status 1
(base) ➜  proj git:(master) ✗ go run proj.go +proj=utm +zone=17 +datum=WGS84 +units=m +no_defs

43.65 -79.38
+Inf -Inf

unexpected newline
exit status 1
(base) ➜  proj git:(master) ✗ go run proj.go +proj=utm +zone=17 +datum=WGS84 +units=m +no_defs -inverse

43.65 -79.38
+Inf -Inf

unexpected newline
exit status 1
(base) ➜  proj git:(master) ✗ go run proj.go +proj=utm +zone=17 +datum=WGS84 +units=m +no_defs -inverse

632519.9 4834621.3
lat or lon limit exceeded
exit status 1
(base) ➜  proj git:(master) ✗ go run proj.go +proj=utm +zone=17 +datum=WGS84 +units=m +no_defs

632519.9 4834621.3
lat or lon limit exceeded
exit status 1