Message-ID: <1738369436.203731.1459958320211.JavaMail.yahoo@mail.yahoo.com>
Date: 2016-04-06T15:58:40Z
From: Denis mutiibwa
Subject: readOGR not reading in prj file?
In-Reply-To: <CA+2DmwgWq6B_gt14tvcZsTNi+6qG-11b5Vu1D4WHv1_L+7vo4Q@mail.gmail.com>
readOGR(dir.path, "argv2")
it seems "argv2" has to be the shapefile name not a variable name ??Denis Mutiibwa
On Wednesday, April 6, 2016 11:54 AM, Vinh Nguyen <vinhdizzo at gmail.com> wrote:
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
[[alternative HTML version deleted]]