[R] transform shapefiles in UTM to lat/long
    Dylan Beaudette 
    dylan.beaudette at gmail.com
       
    Tue Mar 21 19:50:58 CET 2006
    
    
  
On Tuesday 21 March 2006 08:13 am, Fredy O. Mejia wrote:
> Dear all:
>
> I have a shapefile in UTM coordinate system and I would like to transform
> it to Lat/Log coordinates (WSG84).  The package PBSmapping contains
> function convUL to transform between the two coordinate systems when data
> is in the form of a data frame with attributes specifying the coordinate
> system. However, when shapefiles are imported using function read.shape
> (package maptools), a list instead of a data frame is generated.  I could
> extract all the polygons in the list and transform them, individually, but
> I hope there is an easier way of doing that.  Besides, the shapefile i'm
> trying to convert has two different UTM zones (is from Guatemala, and it
> covers zones 15 and 16).  Any sugestions would be greatly appreciated.
>
> Thanks,
>
> Fredy
>
> 	[[alternative HTML version deleted]]
>
Fredy,
I would recommend performing the inverse projection with the GDAL/OGR library 
first. 
-- 
Dylan Beaudette
Soils and Biogeochemistry Graduate Group
University of California at Davis
530.754.7341
    
    
More information about the R-help
mailing list