Blair, sorry, too quick:

Have a look at spTransform in rgdal and at projectRaster in the raster package.

Robert


On Thu, Nov 19, 2009 at 9:39 AM, Blair Christian
<[email protected]> wrote:
> Hi All,
>
> Before trying to reinvent the wheel, I was wondering if the mapproj or
> any other library had code to take lambert coordinates (along with the
> parameters used to generate them) and convert them to lat long.  I
> have grid data in lambert coords, and want to generate the long/lat
> grid corners from them.  I noticed mapproj goes long/lat ->
> projection, but couldn't find anything to go the other way.  I was
> going to use the reference in wolfram mathworld to do the inverse
> transform, if anybody has any issues with their version.
>
> http://mathworld.wolfram.com/LambertConformalConicProjection.html
>
> Basically, I want to keep the data stored as grids, but every now and
> then I want to create distance matrices or plot them (which I
> currently do with an irregular grid class I made up), but don't want
> to store polygons all the time when I can just store the basic grid.
> All comments welcome.
>
> Thanks,
> Blair
>
> _______________________________________________
> R-sig-Geo mailing list
> [email protected]
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

_______________________________________________
R-sig-Geo mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Reply via email to