Guest User

Untitled

a guest
Apr 25th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. # Before spTransform
  2.  
  3. summary(new)
  4.  
  5. Object of class SpatialPointsDataFrame
  6. Coordinates:
  7. min max
  8. coords.x1 40.68967 40.73516
  9. coords.x2 -73.96243 -73.90697
  10. Is projected: TRUE
  11. proj4string :
  12. [+proj=lcc +lat_1=40.66666666666666 +lat_2=41.03333333333333
  13. +lat_0=40.16666666666666 +lon_0=-74 +x_0=300000.0000000001 +y_0=0
  14. +datum=NAD83 +units=us-ft +no_defs +ellps=GRS80 +towgs84=0,0,0]
  15. Number of points: 25
  16.  
  17. new<-spTransform(new,CRS(proj4string(bb)))
  18.  
  19. > summary(new)
  20.  
  21. Object of class SpatialPointsDataFrame
  22. Coordinates:
  23. min max
  24. coords.x1 40.68967 40.73516
  25. coords.x2 -73.96243 -73.90697
  26. Is projected: TRUE
  27. proj4string :
  28. [+proj=lcc +lat_1=40.66666666666666 +lat_2=41.03333333333333
  29. +lat_0=40.16666666666666 +lon_0=-74 +x_0=300000 +y_0=0 +datum=NAD83
  30. +units=us-ft +no_defs +ellps=GRS80 +towgs84=0,0,0]
  31. Number of points: 25
  32.  
  33. summary(bb)
  34.  
  35. Object of class SpatialPolygonsDataFrame
  36. Coordinates:
  37. min max
  38. x 972619.7 1030453.5
  39. y 146772.0 208564.1
  40. Is projected: TRUE
  41. proj4string :
  42. [+proj=lcc +lat_1=40.66666666666666 +lat_2=41.03333333333333
  43. +lat_0=40.16666666666666 +lon_0=-74 +x_0=300000 +y_0=0 +datum=NAD83
  44. +units=us-ft +no_defs +ellps=GRS80 +towgs84=0,0,0]
Add Comment
Please, Sign In to add comment