<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><font face="Helvetica, Arial, sans-serif">Hi Abdoulaye</font></p>
    <p><font face="Helvetica, Arial, sans-serif">Perhaps its helpful to
        simplify the instruction so its easy to read in ordinary text.
        The example that Jeffrey Hollister gives at
<a class="moz-txt-link-freetext" href="https://www.r-bloggers.com/things-i-forget-reading-a-shapefile-in-r-with-readogr/">https://www.r-bloggers.com/things-i-forget-reading-a-shapefile-in-r-with-readogr/</a><br>
      </font></p>
    <p><font face="Helvetica, Arial, sans-serif">is like this</font></p>
    <p><font face="Helvetica, Arial, sans-serif">myShapeInR<-readOGR("C:/data","myShapeFile")
        where the shapefile is called myShapeFile.shp, and its in
        C:/data.</font></p>
    <p><font face="Helvetica, Arial, sans-serif">If its in your current
        working directory (calling getwd() will tell you what your
        current working directory is) then you can use simply</font></p>
    <p><font face="Helvetica, Arial, sans-serif">myShapeInR<-readOGR(".","myShapeFile")
        as the full stop "." is a symbol for the current directory.</font></p>
    <p><font face="Helvetica, Arial, sans-serif">Hope that helps</font></p>
    <p><font face="Helvetica, Arial, sans-serif">David<br>
      </font></p>
    <p><font face="Helvetica, Arial, sans-serif"></font><br>
    </p>
    <div class="moz-cite-prefix">On 9/11/2019 2:47 am, Abdoulaye Sarr
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAN=6O0L77Q1BoPUcc49Y1hkY2AnBOMw9c4SoXNE2-QOaScV5Qg@mail.gmail.com">
      <pre class="moz-quote-pre" wrap="">I am trying to read a shapefile using readOGR but keep getting error
messages:
map =
readOGR(dsn=path.expand("/Volumes/DS2S/R_QGIS_codes//Data"),"indicator")
Error in ogrInfo(dsn = dsn, layer = layer, encoding = encoding, use_iconv =
use_iconv,  :
  Cannot open layer

What could be causing the problem? sp 1.3-2

Thanks
as

        [[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
<a class="moz-txt-link-abbreviated" href="mailto:R-sig-Geo@r-project.org">R-sig-Geo@r-project.org</a>
<a class="moz-txt-link-freetext" href="https://stat.ethz.ch/mailman/listinfo/r-sig-geo">https://stat.ethz.ch/mailman/listinfo/r-sig-geo</a>
</pre>
    </blockquote>
    <div class="moz-signature">-- <br>
      <table width="100%" cellspacing="0" cellpadding="2" border="0">
        <tbody>
          <tr>
            <td width="5%" valign="top"> <img
                src="https://www.landandwater.com.au/sig_images/lwmsignaturelogo.png"
                alt="Land and Water Management logo" width="97"
                height="80"> </td>
            <td width="95%" valign="top">
              <p style="font-family: Tahoma,Geneva,sans-serif; color:
                rgb(32, 32, 32); font-size: 13px;"> <strong> David Hine</strong><br>
                Land and Water Management PL<br>
                Level 7, 127 Creek St<br>
                Brisbane, Qld 4000<br>
                Australia<br>
                <br>
                m: 0429 886 146 +61 429 886 146<br>
                t: (07) 4015 3470 +61 7 4015 3470<br>
                <br>
                <!--Suzhou leaflogik Agricultural Information Management Systems Co. Ltd.
                                Suzhou, Jiangsu, 215163 PR China<br>
                                m: (+86) 136 1627 2645<br> --> <a
                  href="https://geoportal.landandwater.com.au/login"
                  style="color: rgb(93, 116, 255);">GeoPortal</a> with
                example presentations of spatial data for horticulture
                users and others.<br>
                <a href="http://www.landandwater.com.au" style="color:
                  rgb(93, 116, 255);">Land and Water Management PL</a> </p>
            </td>
            <td>
              <!-- <img src="https://www.landandwater.com.au/sig_images/greendigitaltree_sm.jpg" alt="Merry Christmas" height="208" width="168"> -->
              <br>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>