<div dir="ltr"><div class="gmail_extra" style><span style="font-family:arial,sans-serif;font-size:13px">Daniel,</span></div><div class="gmail_extra" style><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div>
<div class="gmail_extra" style><span style="font-family:arial,sans-serif;font-size:13px">quando usamos a função readShapePoly não colocamos a extensão ".shp".</span></div><div class="gmail_extra" style><span style="font-family:arial,sans-serif;font-size:13px">Segue a minha sugestão.</span></div>
<div class="gmail_extra" style><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div class="gmail_extra" style><span style="font-family:arial,sans-serif;font-size:13px">require(maptools)</span></div>
<div class="gmail_extra"><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div class="gmail_extra"><span style="font-family:arial,sans-serif;font-size:13px">fl <- "</span><a href="http://metodologiapolitica.com/download/Brasil.zip" target="_blank" style="font-family:arial,sans-serif;font-size:13px">http://metodologiapolitica.com/download/Brasil.zip</a><span style="font-family:arial,sans-serif;font-size:13px">"</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">download.file(fl, "Brasil.zip")</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">br <- unzip("Brasil.zip")</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">shp <- readShapePoly("./</span><span style="font-family:arial,sans-serif;font-size:13px">Brasil")</span><br></div><div class="gmail_extra"><font face="arial, sans-serif"><br>
</font></div><div class="gmail_extra"><font face="arial, sans-serif"><br></font><br><div class="gmail_quote">Em 27 de dezembro de 2012 18:13, Daniel Marcelino <span dir="ltr"><<a href="mailto:dmsilva.br@gmail.com" target="_blank">dmsilva.br@gmail.com</a>></span> escreveu:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div id=":il">fl <- "<a href="http://metodologiapolitica.com/download/Brasil.zip" target="_blank">http://metodologiapolitica.com/download/Brasil.zip</a>"<br>
download.file(fl, "Brasil.zip")<br>
br <- unzip("Brasil.zip")<br>
<br>
> br<br>
[1] "./Brasil.dbf" "./__MACOSX/._Brasil.dbf" "./Brasil.shp"<br>
"./__MACOSX/._Brasil.shp"<br>
[5] "./Brasil.shx" "./__MACOSX/._Brasil.shx"<br>
<br>
shp <- readShapePoly(system.file("./Brasil.shp") )<br>
Error in getinfo.shape(filen) : Error opening SHP file</div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Luís Gustavo Silva e Silva<br>
</div></div>