[R-sig-Geo] Lambert projection to lat/long question....
Blair Christian
blair.christian at gmail.com
Thu Nov 19 18:56:35 CET 2009
Those are perfect. I wish I had the time to contribute as much
software as you do, Robert. Very impressive contributions on the
r-forge pages.
Thanks,
Blair
On Thu, Nov 19, 2009 at 12:46 PM, Robert J. Hijmans <r.hijmans at gmail.com> wrote:
> 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
> <blair.christian at gmail.com> 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
>> R-sig-Geo at stat.math.ethz.ch
>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>>
>
More information about the R-sig-Geo
mailing list