How to convert NAD 83 coordinates to latitude and longitude with rgdal package?

五迷三道 提交于 2019-12-04 04:59:34

Look up espg:4269:

http://spatialreference.org/ref/epsg/4269/

and its a lat-long system. So your big numbers (which are metres) are way too big.

If you've got a shapefile anywhere with data in these coordinates then you might have a .prj file with it that will have the projection spec, otherwise you'll have to chase it on spatialreference.org:

http://spatialreference.org/ref/?search=nad83+maryland&srtext=Search

There's assorted variations on NAD83, and there's also 'State plane' here and there. I'm not too sure precisely which is which. The epsg: codes are more standard, then there's a bunch of esri: codes. The sr-org: ones are user-supplied on the site.

The esri code looks closest enough to the text you gave. Lets try:

> proj4string(nad83_coords)=CRS("+init=esri:102285")
> spTransform(nad83_coords,CRS("+init=epsg:4326"))
SpatialPoints:
             x        y
[1,] -77.03642 38.93586
[2,] -77.02437 38.92650
[3,] -77.01942 38.91656
[4,] -77.02128 38.92368
[5,] -77.02294 38.91614

Anywhere near DC? Actually, epsg:2804 and epsg:3559 give the same answers, and are probably more 'standard'...

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!