[R-sig-Geo] readOGR not reading in prj file?

Denis mutiibwa mutiibwa2000 at yahoo.com
Wed Apr 6 17:41:28 CEST 2016


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]]



More information about the R-sig-Geo mailing list