<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div style="" class=""><span style="" class="">Sobre KML em R: <br class="" style=""></span></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span style="" class=""> http://cran.r-project.org/web/packages/plotKML/index.html</span></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span style="" class="">o rgdal le' objetos espaciais em diversos formatos <br style="" class=""></span></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica
 Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><span style="" class=""> http://www.gdal.org/ogr_formats.html<br style="" class=""></span></div><div style="" class=""> </div><div style="" class="">Elias T. Krainski</div> <div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div class="" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div class="" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div style="" class="" dir="ltr"> <font style="" class="" face="Arial" size="2"> Em Sábado, 23 de Agosto de 2014 21:20, Elias T. Krainski <eliaskrainski@yahoo.com.br> escreveu:<br style="" class=""> </font> </div> <blockquote class="" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px;
 padding-left: 5px;">  <br style="" class=""><br style="" class=""> <div style="" class=""><div style="" class="" id="yiv1395857691"><div style="" class=""><table style="" class="" border="0" cellpadding="0" cellspacing="0"><tbody style="" class=""><tr style="" class=""><td style="" class="" colspan="1" rowspan="1" valign="top"><div style="" class="" dir="ltr"><font style="" class="" size="2"><font style="" class="" size="2">A algum tempo usei os mapas do IBGE por setores para fazer algo assim. Esses mapas estão disponíveis no formato padrão de 'shapefile'. A vantagem de usar esses polígonos é que variáveis do censo, ao nivel de setores, podem ser usadas para modelar. Para operações espaciais sugiro ver over() do pacote 'sp'. No seu caso, points in polygons.</font></font></div>
</td></tr></tbody></table>            <div style="" class="" id="yiv1395857691yqt83805"><div style="" class="" id="yiv1395857691_origMsg_">
                <div style="" class="">
                    <br style="" class="" clear="none">
                    <div style="" class="">
                        <div class="" style="font-size:0.9em;">
                            <hr style="" class="" size="1">
                            <b style="" class="">
                                <span class="" style="font-weight:bold;">From:</span>
                            </b>
                            Leonard de Assis <assis.leonard@gmail.com>;                            <br style="" class="" clear="none">
                            <b style="" class="">
                                <span class="" style="font-weight:bold;">To:</span>
                            </b>
                             <r-br@listas.c3sl.ufpr.br>;                                                                             <br style="" class="" clear="none">
                            <b style="" class="">
                                <span class="" style="font-weight:bold;">Subject:</span>
                            </b>
                            [R-br] RES:         kml - importação para análise de dados                            <br style="" class="" clear="none">
                            <b style="" class="">
                                <span class="" style="font-weight:bold;">Sent:</span>
                            </b>
                            Sat, Aug 23, 2014 4:17:57 AM                            <br style="" class="" clear="none">
                        </div>
                            <br style="" class="" clear="none">
                            <table style="" class="" border="0" cellpadding="0" cellspacing="0"><tbody style="" class=""><tr style="" class=""><td style="" class="" colspan="1" rowspan="1" valign="top"><div style="" class=""><div style="" class=""><span class="" style="font-size:11.0pt;">Eu gerei uns polígonos no Google Earth e inseri alguns dados e gerei kml destes</span></div><div style="" class=""><span class="" style="font-size:11.0pt;">Basicamente são áreas em um município e eu identifiquei alguns dados.</span></div><div style="" class=""><span class="" style="font-size:11.0pt;">Aí eu tenho alguns dados de endereços com outras variáveis. A ideia é ver em qual polígono os dados estão para completar a linha do bd. Sei fazer isso na mão lendo direto o kml em c++ ou java e gravando em algo como MySQL, mas não é muito trivial.</span></div><div style="" class=""><span class="" style="font-size:11.0pt;">Fica ainda o problema do
 algoritmo de achar em qual polígono está o ponto</span></div><div style="" class=""><span class="" style="font-size:11.0pt;">  </span></div><div style="" class=""><span class="" style="font-size:11.0pt;"><img style="" class="" id="yiv1395857691Imagem_x0020_1" height="85" width="351"></span></div><div style="" class=""><span class="" style="font-size:11.0pt;">  </span></div><div style="" class=""><b style="" class=""><span class="" style="font-size:11.0pt;">De:</span></b><span class="" style="font-size:11.0pt;"> R-br [mailto:r-br-bounces@listas.c3sl.ufpr.br] <b style="" class="">Em nome de </b>Vinicius Brito Rocha<br style="" class="" clear="none"><b style="" class="">Enviada em:</b> sexta-feira, 22 de agosto de 2014 20:45<br style="" class="" clear="none"><b style="" class="">Para:</b> r-br@listas.c3sl.ufpr.br<br style="" class="" clear="none"><b style="" class="">Assunto:</b> Re: [R-br] kml - importação para análise de
 dados</span></div><div style="" class="">  </div><div style="" class=""><div style="" class="">Leonard,</div><div style="" class=""><div style="" class="">  </div></div><div style="" class=""><div style="" class="">são os dados de georeferenciamento do google?</div></div><div style="" class=""><div style="" class="">  </div></div><div style="" class=""><div style="" class="">tbm to querendo saber melhores práticas para uso.</div></div></div><div style="" class=""><div class="" style="margin-bottom:12.0pt;">  </div><div style="" class=""><div style="" class="">Em 22 de agosto de 2014 15:44, Leonard de Assis <<a href="" style="" class="" rel="nofollow" shape="rect">assis.leonard@gmail.com</a>> escreveu:</div><blockquote class="" style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm;"><div style="" class=""><div style="" class=""><div style="" class="">1.<span class=""
 style="font-size:7.0pt;">       </span>Qual o melhor jeito de ler um arquivo kml contendo polígonos no R?</div><div style="" class="">2.<span class="" style="font-size:7.0pt;">       </span>Como identificar em quais destes polígonos está contida uma determinada coordenada?</div><div class="" style=""> </div><div class="" style="">É que eu tenho dados geoespaciais para vários polígonos parte armazenados em arquivos kml e parte eu tenho a referência (x,y) com os dados da ocorrência, preciso de uma maneira saudável para unir essas informações</div><div class="" style=""> </div><div class="" style=""><img style="" class="" id="yiv1395857691_x0000_i1025" height="85" border="0" width="351"></div><div class="" style=""> </div></div></div><div style="" class=""><br style="" class="" clear="none">_______________________________________________<br style="" class=""
 clear="none">R-br mailing list<br style="" class="" clear="none"><a href="" style="" class="" rel="nofollow" shape="rect">R-br@listas.c3sl.ufpr.br</a><br style="" class="" clear="none"><a style="" class="" rel="nofollow" shape="rect" target="_blank" href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a><br style="" class="" clear="none">Leia o guia de postagem (<a style="" class="" rel="nofollow" shape="rect" target="_blank" href="http://www.leg.ufpr.br/r-br-guia">http://www.leg.ufpr.br/r-br-guia</a>) e forneça código mínimo reproduzível.</div></blockquote></div><div style="" class=""><br style="" class="" clear="none"><br style="" class="" clear="all"></div><div style="" class=""><div style="" class="">  </div></div><div style="" class="">-- </div><div style="" class=""><div class="" style="margin-bottom:12.0pt;"><i style="" class="">Vinicius Brito Rocha.</i><br style=""
 class="" clear="none"><b style="" class=""><i style="" class="">Estatístico e Atuário <br style="" class="" clear="none">M.Sc. Engenharia de Produção/PO</i></b><br style="" class="" clear="none"><br style="" class="" clear="none"></div></div></div></div></td></tr></tbody></table>
                    </div>
                </div>
            </div></div>
</div></div><br style="" class=""><br style="" class=""></div> </blockquote>  </div> </div>   </div> </div></body></html>