Message-ID: <1452897716.185160.1459957288192.JavaMail.yahoo@mail.yahoo.com>
Date: 2016-04-06T15:41:28Z
From: Denis mutiibwa
Subject: readOGR not reading in prj file?
In-Reply-To: <CA+2DmwjRwwZM339c_sAsRxeTV6GY0w-Toet5+tU+S-KpS=nbew@mail.gmail.com>
Where is "shapebase" coming from?If those are the files in the directory, your scripts should as below:dir.path <- directory pathdFloodRisk <- readOGR(dir.path, "2014Spring_Flood_Drawn")proj4string(dFloodRisk)?
Denis Mutiibwa
On Wednesday, April 6, 2016 11:32 AM, Vinh Nguyen <vinhdizzo at gmail.com> wrote:
On Wed, Apr 6, 2016 at 8:24 AM, Denis mutiibwa <mutiibwa2000 at yahoo.com> wrote:
>> Hi Vinh,
>> proj4string function is giving you NA because "shapebase" shapefile doesn't
>> have an auxiliary file "shapebase.prj"
>>
>> Denis Mutiibwa,
>
>
>Thanks for your response Denis.? The following files are all in the directory:
>2014Spring_Flood_Drawn.cpg? 2014Spring_Flood_Drawn.sbx
>2014Spring_Flood_Drawn.dbf? 2014Spring_Flood_Drawn.shp
>2014Spring_Flood_Drawn.prj? 2014Spring_Flood_Drawn.shp.xml
>2014Spring_Flood_Drawn.sbn? 2014Spring_Flood_Drawn.shx
>
>So, the prj file is there...or am I misunderstanding?? Thanks.>
>
>-- Vinh
[[alternative HTML version deleted]]