Last active
October 6, 2016 16:25
-
-
Save ibaaj/2d200fea16ae6378f2b5bda2120b9fbd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
An object of class "SpatialPolygonsDataFrame" | |
Slot "data": | |
id xref yref zref | |
1 1 939247.5 6484247 1136 | |
2 2 939007.7 6483825 1103 | |
3 3 936801.6 6480678 1140 | |
4 4 939823.0 6485043 1093 | |
5 5 937895.0 6481820 1215 | |
Slot "polygons": | |
[[1]] | |
An object of class "Polygons" | |
Slot "Polygons": | |
[[1]] | |
An object of class "Polygon" | |
Slot "labpt": | |
[1] 939247.5 6484246.5 | |
Slot "area": | |
[1] 772542.5 | |
Slot "hole": | |
[1] FALSE | |
Slot "ringDir": | |
[1] 1 | |
Slot "coords": | |
x y | |
[1,] 939747.5 6484247 | |
[2,] 939723.0 6484092 | |
[3,] 939652.0 6483953 | |
[4,] 939541.4 6483842 | |
[5,] 939402.0 6483771 | |
[6,] 939247.5 6483747 | |
[7,] 939093.0 6483771 | |
[8,] 938953.6 6483842 | |
[9,] 938843.0 6483953 | |
[10,] 938772.0 6484092 | |
[11,] 938747.5 6484247 | |
[12,] 938772.0 6484401 | |
[13,] 938843.0 6484540 | |
[14,] 938953.6 6484651 | |
[15,] 939093.0 6484722 | |
[16,] 939247.5 6484747 | |
[17,] 939402.0 6484722 | |
[18,] 939541.4 6484651 | |
[19,] 939652.0 6484540 | |
[20,] 939723.0 6484401 | |
[21,] 939747.5 6484247 | |
Slot "plotOrder": | |
[1] 1 | |
Slot "labpt": | |
[1] 939247.5 6484246.5 | |
Slot "ID": | |
[1] "1" | |
Slot "area": | |
[1] 772542.5 | |
[[2]] | |
An object of class "Polygons" | |
Slot "Polygons": | |
[[1]] | |
An object of class "Polygon" | |
Slot "labpt": | |
[1] 939007.7 6483824.5 | |
Slot "area": | |
[1] 772542.5 | |
Slot "hole": | |
[1] FALSE | |
Slot "ringDir": | |
[1] 1 | |
Slot "coords": | |
x y | |
[1,] 939507.7 6483825 | |
[2,] 939483.2 6483670 | |
[3,] 939412.2 6483531 | |
[4,] 939301.6 6483420 | |
[5,] 939162.2 6483349 | |
[6,] 939007.7 6483325 | |
[7,] 938853.2 6483349 | |
[8,] 938713.8 6483420 | |
[9,] 938603.2 6483531 | |
[10,] 938532.2 6483670 | |
[11,] 938507.7 6483825 | |
[12,] 938532.2 6483979 | |
[13,] 938603.2 6484118 | |
[14,] 938713.8 6484229 | |
[15,] 938853.2 6484300 | |
[16,] 939007.7 6484325 | |
[17,] 939162.2 6484300 | |
[18,] 939301.6 6484229 | |
[19,] 939412.2 6484118 | |
[20,] 939483.2 6483979 | |
[21,] 939507.7 6483825 | |
Slot "plotOrder": | |
[1] 1 | |
Slot "labpt": | |
[1] 939007.7 6483824.5 | |
Slot "ID": | |
[1] "2" | |
Slot "area": | |
[1] 772542.5 | |
[[3]] | |
An object of class "Polygons" | |
Slot "Polygons": | |
[[1]] | |
An object of class "Polygon" | |
Slot "labpt": | |
[1] 936801.6 6480678.4 | |
Slot "area": | |
[1] 772542.5 | |
Slot "hole": | |
[1] FALSE | |
Slot "ringDir": | |
[1] 1 | |
Slot "coords": | |
x y | |
[1,] 937301.6 6480678 | |
[2,] 937277.1 6480524 | |
[3,] 937206.1 6480384 | |
[4,] 937095.5 6480274 | |
[5,] 936956.1 6480203 | |
[6,] 936801.6 6480178 | |
[7,] 936647.1 6480203 | |
[8,] 936507.7 6480274 | |
[9,] 936397.1 6480384 | |
[10,] 936326.1 6480524 | |
[11,] 936301.6 6480678 | |
[12,] 936326.1 6480833 | |
[13,] 936397.1 6480972 | |
[14,] 936507.7 6481083 | |
[15,] 936647.1 6481154 | |
[16,] 936801.6 6481178 | |
[17,] 936956.1 6481154 | |
[18,] 937095.5 6481083 | |
[19,] 937206.1 6480972 | |
[20,] 937277.1 6480833 | |
[21,] 937301.6 6480678 | |
Slot "plotOrder": | |
[1] 1 | |
Slot "labpt": | |
[1] 936801.6 6480678.4 | |
Slot "ID": | |
[1] "3" | |
Slot "area": | |
[1] 772542.5 | |
[[4]] | |
An object of class "Polygons" | |
Slot "Polygons": | |
[[1]] | |
An object of class "Polygon" | |
Slot "labpt": | |
[1] 939823 6485043 | |
Slot "area": | |
[1] 772542.5 | |
Slot "hole": | |
[1] FALSE | |
Slot "ringDir": | |
[1] 1 | |
Slot "coords": | |
x y | |
[1,] 940323.0 6485043 | |
[2,] 940298.5 6484888 | |
[3,] 940227.5 6484749 | |
[4,] 940116.9 6484638 | |
[5,] 939977.5 6484567 | |
[6,] 939823.0 6484543 | |
[7,] 939668.5 6484567 | |
[8,] 939529.1 6484638 | |
[9,] 939418.5 6484749 | |
[10,] 939347.5 6484888 | |
[11,] 939323.0 6485043 | |
[12,] 939347.5 6485197 | |
[13,] 939418.5 6485337 | |
[14,] 939529.1 6485447 | |
[15,] 939668.5 6485518 | |
[16,] 939823.0 6485543 | |
[17,] 939977.5 6485518 | |
[18,] 940116.9 6485447 | |
[19,] 940227.5 6485337 | |
[20,] 940298.5 6485197 | |
[21,] 940323.0 6485043 | |
Slot "plotOrder": | |
[1] 1 | |
Slot "labpt": | |
[1] 939823 6485043 | |
Slot "ID": | |
[1] "4" | |
Slot "area": | |
[1] 772542.5 | |
[[5]] | |
An object of class "Polygons" | |
Slot "Polygons": | |
[[1]] | |
An object of class "Polygon" | |
Slot "labpt": | |
[1] 937895 6481820 | |
Slot "area": | |
[1] 772542.5 | |
Slot "hole": | |
[1] FALSE | |
Slot "ringDir": | |
[1] 1 | |
Slot "coords": | |
x y | |
[1,] 938395.0 6481820 | |
[2,] 938370.6 6481665 | |
[3,] 938299.6 6481526 | |
[4,] 938188.9 6481415 | |
[5,] 938049.6 6481344 | |
[6,] 937895.0 6481320 | |
[7,] 937740.5 6481344 | |
[8,] 937601.2 6481415 | |
[9,] 937490.5 6481526 | |
[10,] 937419.5 6481665 | |
[11,] 937395.0 6481820 | |
[12,] 937419.5 6481974 | |
[13,] 937490.5 6482114 | |
[14,] 937601.2 6482224 | |
[15,] 937740.5 6482295 | |
[16,] 937895.0 6482320 | |
[17,] 938049.6 6482295 | |
[18,] 938188.9 6482224 | |
[19,] 938299.6 6482114 | |
[20,] 938370.6 6481974 | |
[21,] 938395.0 6481820 | |
Slot "plotOrder": | |
[1] 1 | |
Slot "labpt": | |
[1] 937895 6481820 | |
Slot "ID": | |
[1] "5" | |
Slot "area": | |
[1] 772542.5 | |
Slot "plotOrder": | |
[1] 2 3 4 5 1 | |
Slot "bbox": | |
min max | |
x 936301.6 940323 | |
y 6480178.4 6485543 | |
Slot "proj4string": | |
CRS arguments: NA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(sp) | |
library(rgeos) | |
df <- read.csv("test1.csv", sep=",") | |
spdf <- SpatialPointsDataFrame(df[,c("xref", "yref")],df) | |
limite <- gBuffer(spdf, width = 500) | |
print(limite) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment