Message-ID: <CA+2DmwgWq6B_gt14tvcZsTNi+6qG-11b5Vu1D4WHv1_L+7vo4Q@mail.gmail.com>
Date: 2016-04-06T15:53:55Z
From: Vinh Nguyen
Subject: readOGR not reading in prj file?
In-Reply-To: <1452897716.185160.1459957288192.JavaMail.yahoo@mail.yahoo.com>
On Wed, Apr 6, 2016 at 8:41 AM, Denis mutiibwa <mutiibwa2000 at yahoo.com> wrote:
> Where is "shapebase" coming from?
> If those are the files in the directory, your scripts should as below:
> dir.path <- directory path
> dFloodRisk <- readOGR(dir.path, "2014Spring_Flood_Drawn")
> proj4string(dFloodRisk)
I'm reading the files in exactly as you are suggesting (floodshapedir
and shapebase are variables) as seen in the output below:
> dFloodRisk <- readOGR(floodshapedir, shapebase)
OGR data source with driver: ESRI Shapefile
Source: "FloodShapes", layer: "2013Spring_Flood_Drawn"
Just not sure why the prj file is not being read in. Thanks.
-- Vinh