Timeline for how to overlay a polygon over SpatialPointsDataFrame and preserving the SPDF data?
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 21, 2013 at 7:57 | comment | added | fdetsch |
@Spacedman, you're right about tmp , forgot to remove it when finishing the code. Also, you're right about parsing the dimnames . This was kind of a quick solution to provide the questioner with a fast answer, and there surely are better (and more universal) approaches, for example yours :-)
|
|
Jun 21, 2013 at 7:48 | history | edited | fdetsch | CC BY-SA 3.0 |
added 10 characters in body
|
Jun 20, 2013 at 17:25 | comment | added | Spacedman |
Should tmp be pts.intersect ? Also, parsing the returned dimnames like that is depending on undocumented behaviour.
|
|
Jun 18, 2013 at 15:53 | history | answered | fdetsch | CC BY-SA 3.0 |