<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span>Oi João Augusto, </span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal; "><span><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal; ">A função readShapePoly() possui uma limitação, segundo: </div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal; ">   https://stat.ethz.ch/pipermail/r-sig-geo/2011-July/012358.html</div><div style="font-family: 'times new roman', 'new
 york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal; "><span><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal; "><span>Com readOGR() eu consegui. Se vc baixou os mapas de RJ? Se foi do diretorio </span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal; "><span>     ftp://geoftp.ibge.gov.br/malhas_digitais/censo_2010/setores_censitarios/ </span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal; "><span>então não há '33MEE250GC_SIR', há estes quatro conjuntos: </span></div><div style="background-color: transparent;
 "><span><div style="background-color: transparent; ">  listf <- unique(substr(dir("mapas/rj"), 1, 14))</div><div style="background-color: transparent; ">  listf</div><div style="background-color: transparent; ">[1] "33DSE250GC_SIR" "33MUE250GC_SIR" "33SDE250GC_SIR"</div><div style="background-color: transparent; ">[4] "33SEE250GC_SIR"</div><div style="background-color: transparent; ">(talvez vc trocou S por M)</div><div style="background-color: transparent; "><br></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; ">veja o resultado em cada um</div><div style="background-color: transparent; "><div style="background-color: transparent; ">> rj <- readOGR("mapas/rj", listf[1])</div><div style="background-color: transparent; ">OGR data source with driver: ESRI Shapefile </div><div style="background-color: transparent;
 ">Source: "mapas/rj", layer: "33DSE250GC_SIR"</div><div style="background-color: transparent; ">with 293 features and 3 fields</div><div style="background-color: transparent; ">Feature type: wkbPolygon with 2 dimensions</div><div style="background-color: transparent; ">> rj <- readOGR("mapas/rj", listf[2])</div><div style="background-color: transparent; ">OGR data source with driver: ESRI Shapefile </div><div style="background-color: transparent; ">Source: "mapas/rj", layer: "33MUE250GC_SIR"</div><div style="background-color: transparent; ">with 92 features and 3 fields</div><div style="background-color: transparent; ">Feature type: wkbPolygon with 2 dimensions</div><div style="background-color: transparent; ">> rj <- readOGR("mapas/rj", listf[3])</div><div style="background-color: transparent; ">OGR data source with driver: ESRI Shapefile </div><div style="background-color: transparent; ">Source: "mapas/rj", layer:
 "33SDE250GC_SIR"</div><div style="background-color: transparent; ">with 381 features and 3 fields</div><div style="background-color: transparent; ">Feature type: wkbPolygon with 2 dimensions</div><div style="background-color: transparent; ">> rj <- readOGR("mapas/rj", listf[4])</div><div style="background-color: transparent; ">OGR data source with driver: ESRI Shapefile </div><div style="background-color: transparent; ">Source: "mapas/rj", layer: "33SEE250GC_SIR"</div><div style="background-color: transparent; ">with 28318 features and 13 fields</div><div style="background-color: transparent; ">Feature type: wkbPolygon with 2 dimensions</div><div style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 16px; font-style: normal; "><br></div></div></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">Att. </div><div style="font-family: 'times new
 roman', 'new york', times, serif; font-size: 12pt; ">Elias T. Krainski<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;">  <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">De:</span></b> João Augusto P Batista <joao.augustopb@gmail.com><br> <b><span style="font-weight: bold;">Para:</span></b> r-br@listas.c3sl.ufpr.br <br> <b><span style="font-weight: bold;">Enviadas:</span></b> Sexta-feira, 12 de Outubro de 2012 21:06<br> <b><span style="font-weight: bold;">Assunto:</span></b> [R-br] maptools<br> </font> </div> <br>Olá!<br><br>Esta é minha primeira mensagem, vou tentar fazê-la o mais inteligível possível.<br><br>Estou tentando utilizar os mapas do IBGE,
 através da função readShapePoly(), mas sempre dá erro. Os arquivos na pasta dos mapas tem extensão .dbf, .shp, .shx, .prj.<br>Segue a rotina e o  output:<br><br>> library(descr)<br>> library(Hmisc)<br>> library(foreign)<br>> library(maptools)<br>> mapa <- readShapePoints("Mapas IBGE/Municípios/33MEE250GC_SIR")<br>Shapefile type: PolygonM (25), # of Shapes: 6<br><br>Error in read.shape(filen = fn, verbose = verbose, repair = repair) : <br>  Shapefile type not (yet) handled by this function<br><br>Já procurei nas mensagens anteriores, mas nenhuma respondeu o meu problema, e já tentei readOGR() e readShapePoints(), sem sucesso.<br><br>O que fazer?<br><br>Muito obrigado, <br><br>João Augusto.<br>_______________________________________________<br>R-br mailing list<br><a ymailto="mailto:R-br@listas.c3sl.ufpr.br" href="mailto:R-br@listas.c3sl.ufpr.br">R-br@listas.c3sl.ufpr.br</a><br><a
 href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br" target="_blank">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a><br>Leia o guia de postagem (<a href="http://www.leg.ufpr.br/r-br-guia" target="_blank">http://www.leg.ufpr.br/r-br-guia</a>) e forneça código mínimo reproduzível.<br><br><br> </div> </div> </blockquote></div>   </div></body></html>