Displaying 2 results from an estimated 2 matches for "nad27".
Did you mean:
na27
2011 Aug 02
0
Wrong values when projecting LatLong in UTM
...99
2 -120.9799 -1.068632
Now, the UTM values are supposed to be around:
X Y
1 414040 6301764.2
2 414493 6301888.39
# I don't know what is wrong, So, I then tried with rgdal
library(rgdal)
UTM<-project(LatLong, "+proj=utm +zone=11+ellps=NAD27")
# and that's what i get:
projected point not finite
projected point not finite
# Errors might come from the fact that I do have DD format in the LatLong
file. Maybe I should be able to specify that it is zone 11 north. What do
you think?
Colin
[[alternative HTML version deleted]]
2012 Oct 10
0
Resumen de R-help-es, Vol 44, Envío 9
...brary (sp)
library (RColorBrewer)
library (maptools)
# carga de mapa politico y datos
datos_manies<-read.csv("D:/mapas/corrientes/tabla.csv", sep=",")
cartografia<-readShapeSpatial("D:/mapas/corrientes/corrientes.shp",proj4string=CRS("+proj=longlat
+datum=NAD27"))
# comprobamos si el mapa cargo, si aparece el grafico esta bien
# si no es asi hay que revisar las librerias y dependencias
plot(cartografia)
# para ver la paleta de brewer
# display.brewer.all()
# asignamos variables de mani al mapa
datos_manies$MANI
cartografia en data=data.frame(datos_m...