[R-sig-Geo] Interior of Polygons
Kemp, Michael
M.U.Kemp at uva.nl
Fri Apr 20 09:26:13 CEST 2012
Hey Jesús,
See getKMLcoordinates() in the maptools package to extract the coordinates of the polygons and the points from the kml file. Then, point.in.polygon() in the sp package should be able to do what you want.
Regards,
Michael
From: r-sig-geo-bounces at r-project.org [mailto:r-sig-geo-bounces at r-project.org] On Behalf Of Alonso Nanclares, Jesús Alberto
Sent: Friday, April 20, 2012 8:50 AM
To: r-sig-geo at r-project.org
Subject: [R-sig-Geo] Interior of Polygons
Hi dear members of the list,
I have a KML file with the coordinates of some polygons and a set of bi-dimensional points, and I'm facing the problem of classifying the points in the respective polygons. Does anyone know how to define the interior of polygons, or of a different way to solve the problem? Any idea is well received.
Thank you so much,
Jesús Alberto Alonso Nanclares
Consultor Junior
Business Intelligence
C/ Anabel Segura 7
28108 Alcobendas (Madrid)
España
T +34 914 807 877
jaalonson at indra.es<mailto:jaalonson at indra.es>
www.indracompany.com<http://www.indracompany.com>
[indra]
________________________________
Este correo electrónico y, en su caso, cualquier fichero anexo al mismo, contiene información de carácter confidencial exclusivamente dirigida a su destinatario o destinatarios. Si no es vd. el destinatario indicado, queda notificado que la lectura, utilización, divulgación y/o copia sin autorización está prohibida en virtud de la legislación vigente. En el caso de haber recibido este correo electrónico por error, se ruega notificar inmediatamente esta circunstancia mediante reenvío a la dirección electrónica del remitente.
Evite imprimir este mensaje si no es estrictamente necesario.
This email and any file attached to it (when applicable) contain(s) confidential information that is exclusively addressed to its recipient(s). If you are not the indicated recipient, you are informed that reading, using, disseminating and/or copying it without authorisation is forbidden in accordance with the legislation in effect. If you have received this email by mistake, please immediately notify the sender of the situation by resending it to their email address.
Avoid printing this message if it is not absolutely necessary.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20120420/5b321b8f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 1907 bytes
Desc: image001.jpg
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20120420/5b321b8f/attachment.jpg>
More information about the R-sig-Geo
mailing list