Message-ID: <CA+2Dmwja1gg7USuchgVfV4FGvFjesDh6mBKA5ET2J3E00TCaGg@mail.gmail.com>
Date: 2016-04-06T16:11:03Z
From: Vinh Nguyen
Subject: readOGR not reading in prj file?
In-Reply-To: <1738369436.203731.1459958320211.JavaMail.yahoo@mail.yahoo.com>
On Wed, Apr 6, 2016 at 8:58 AM, Denis mutiibwa <mutiibwa2000 at yahoo.com> wrote:
> readOGR(dir.path, "argv2")
> it seems "argv2" has to be the shapefile name not a variable name
My 'floodshapedir' and 'shapebase' are both variables with path stored
in. Here's the function call with the strings explicitly passed. I
don't think it's an issue with these paths.
> dFloodRisk <- readOGR('FloodShapes', '2013Spring_Flood_Drawn', verbose=TRUE)
OGR data source with driver: ESRI Shapefile
Source: "FloodShapes", layer: "2013Spring_Flood_Drawn"
with 8 features
It has 2 fields
> proj4string(dFloodRisk)
[1] NA
-- Vinh