Skip to content

rgdal on MAC

5 messages · Roger Bivand, steven mosher, Daniel

#
On Wed, 19 May 2010, steven mosher wrote:

            
It is always possible to use the instructions on the CRAN page under 
SystemRequirements: - that is install the external dependencies, for 
example using Kyngchaos' frameworks, and install from source, or from an 
OSX binary rgdal package at the same site. This probably gives a larger 
set of drivers.

For those who prefer a Leopard-style binary with the same minimal set of 
drivers that we have on CRAN for Win32 and Win64: I can with pleasure 
thank Brian Ripley for making both 32-bit and 64-bit Intel versions 
available on CRAN extras - on OSX use:
Please report back on whether this advice was helpful.

Roger

  
    
#
Yeah, Roger. That was amazing, works like a charm.
I almost believe that I couldn't open my counties shape on R. Thanks
for prompt help.

brasil <- readOGR("/Users/daniel/bases/maps/Brasil/55mu2500gsr.shp",
"55mu2500gsr", input_field_name_encoding="iso-8859-1")
OGR data source with driver: ESRI Shapefile
Source: "/Users/daniel/bases/maps/Brasil/55mu2500gsr.shp", layer: "55mu2500gsr"
with 5566 features and 9 fields
Feature type: wkbPolygon with 2 dimensions
+   if (class(brasil[[i]]) == "factor") {
+     brasil[[i]] <- factor(iconv(brasil[[i]], from="latin1", to="utf-8"))
+   }
+ }
Daniel
On Wed, May 19, 2010 at 5:16 AM, Roger Bivand <Roger.Bivand at nhh.no> wrote: