Skip to content
Prev 8099 / 29559 Next

converting lat/long to North American lambert x/y

You should use the proj4 functionality implemented in the rgdal package.
This is what I get:
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 1.7.0dev, released 2008/11/26
Path to GDAL shared files: C:/PROGRA~1/R/R-210~1.0/library/rgdal/gdal
Loaded PROJ.4 runtime: Rel. 4.6.1, 21 August 2008
Path to PROJ.4 shared files: C:/PROGRA~1/R/R-210~1.0/library/rgdal/proj
# pan-american projection:
+y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs"
-97.339382))
SpatialPoints:
           long     lat
[1,] -1970668.1 2126789
[2,]  -105037.3 2476717
Coordinate Reference System (CRS)
arguments: +proj=aea +lat_1=29.5
+lat_2=45.5 +lat_0=23 +lon_0=-96
+x_0=0 +y_0=0 +ellps=GRS80
+datum=NAD83 +units=m +no_defs
+towgs84=0,0,0

# your projection:
+y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs"
SpatialPoints:
            long      lat
[1,] -1864716.27 248057.1
[2,]   -98990.79 551251.4
Coordinate Reference System (CRS)
arguments: +proj=lcc +lat_1=20
+lat_2=60 +lat_0=40 +lon_0=-96
+x_0=0 +y_0=0 +ellps=GRS80
+datum=NAD83 +units=m +no_defs
+towgs84=0,0,0


Hmmm, if you set-up the datum to NAD83, then (I think) you should not
get +towgs84=0,0,0 but it looks like these two things are compatible.

HTH

T. Hengl
More examples with US data: http://spatial-analyst.net/book/NGS.R