I have this coordinate which I believe it's in WGS84 format
x=1005740.867110, y=243957.356623
I want to plot that in Google Maps which I need to convert that to Lon, Lat.
I've found this script but it looks like it's not working correctly.
> library(proj4)
> proj4string <- "+proj=utm +zone=19 +south +ellps=WGS84 +datum=WGS84 +units=m +no_defs "
>
> # Source data
> xy <- data.frame(x=1005740.867110, y=243957.356623)
>
> # Transformed data
> pj <- project(xy, proj4string, inverse=TRUE)
> latlon <- data.frame(lat=pj$y, lon=pj$x)
> print(latlon)
And I get this
lat lon
1 -107.8364 -14.35746
I use that lat, long and try them n http://www.darrinward.com/lat-long/ which I don't think it points to the correct point.
+proj=lcc +lat_1=40.66666666666666 +lat_2=41.03333333333333 +lat_0=40.16666666666666 +lon_0=-74 +x_0=300000 +y_0=0 +ellps=GRS80 +datum=NAD83 +to_meter=0.3048006096012192 +no_defs
This is the New York Long Island State Plane in feet