-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCalculo_Superficies
105 lines (99 loc) · 4.91 KB
/
Calculo_Superficies
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
/**** Start of imports. If edited, may not auto-convert in the playground. ****/
var geometry = /* color: #0b4a8b */ee.Geometry.Polygon(
[[[-109.9835785102171, 27.493138623084388],
[-109.99387819283429, 27.49405226924595],
[-109.99988634102765, 27.494356816281538],
[-110.00658113472882, 27.492224969340764],
[-110.0107010077757, 27.489179402104963],
[-110.01413423531476, 27.48522003876526],
[-110.01447755806866, 27.481412824391256],
[-110.00022966378155, 27.481412824391256],
[-109.98478013985577, 27.481565115492938],
[-109.97018892281476, 27.479585314748437],
[-109.96864397042218, 27.474559506906736],
[-109.96864397042218, 27.472122669065214],
[-109.97070390694562, 27.469533469812234],
[-109.97276384346905, 27.468315002055633],
[-109.97139055245343, 27.46420257392544],
[-109.95709671266415, 27.463136363808875],
[-109.9569250512872, 27.45750051045789],
[-109.96087326295712, 27.45750051045789],
[-109.9620748925958, 27.45262602659623],
[-109.95709671266415, 27.452778357478277],
[-109.95623840577939, 27.44592325949676],
[-109.95847000367978, 27.44318110102086],
[-109.9572683740411, 27.43845833499483],
[-109.95383514650204, 27.436020699250506],
[-109.94748367555478, 27.436020699250506],
[-109.94130386598447, 27.436020699250506],
[-109.93598236329892, 27.43571599099667],
[-109.93186249025204, 27.435411281901562],
[-109.92568268068173, 27.435563636554264],
[-109.91984619386533, 27.436173053061935],
[-109.91692795045712, 27.438305984338253],
[-109.91469635255673, 27.44150530395591],
[-109.9133230615411, 27.44439984653571],
[-109.91023315675595, 27.446989636052564],
[-109.91023315675595, 27.451255039189547],
[-109.90422500856259, 27.45232136420088],
[-109.89993347413876, 27.45049337215524],
[-109.89787353761533, 27.45140737196522],
[-109.90268005617001, 27.45597725739709],
[-109.9016500879083, 27.457805158544918],
[-109.8994184900079, 27.45856677507998],
[-109.89838852174618, 27.461765507077516],
[-109.90473999269345, 27.465268773729274],
[-109.90319504030087, 27.468010383011595],
[-109.90388168580868, 27.469228854135995],
[-109.90388168580868, 27.481108241556285],
[-109.89993347413876, 27.481108241556285],
[-109.90010513551572, 27.495727267515967],
[-109.90817322023251, 27.49603180991787],
[-109.9078298974786, 27.49816358314056],
[-109.91074814088681, 27.497859046636346],
[-109.91109146364072, 27.51201910266679],
[-109.90422500856259, 27.51308483959519],
[-109.90405334718564, 27.518565609270457],
[-109.89547027833798, 27.518108888895483],
[-109.89770187623837, 27.522067069131438],
[-109.89220871217587, 27.523132708698736],
[-109.89152206666806, 27.528765203412444],
[-109.89804519899228, 27.52830852540193],
[-109.89856018312314, 27.526786251665417],
[-109.90353836305478, 27.525872877305762],
[-109.90336670167783, 27.533179659701638],
[-109.9433638025079, 27.53419132628865],
[-109.95229019410947, 27.533734670821676],
[-109.95074524171689, 27.519881886738396],
[-109.96396316774228, 27.515466896505828],
[-109.96121658571103, 27.510138224005278],
[-109.96705307252743, 27.50694089661114],
[-109.96705307252743, 27.5042002563231],
[-109.97254623658993, 27.50313443333281],
[-109.97580780275204, 27.507397663356084],
[-109.98130096681454, 27.507093152403478],
[-109.98284591920712, 27.510594977476536],
[-109.98336090333798, 27.51485791842739],
[-109.98765243776181, 27.51698932695094],
[-109.99331726320126, 27.51607587121265],
[-109.99675049074033, 27.512117475351676],
[-109.98816742189267, 27.507093152403478],
[-109.99331726320126, 27.505722842687987],
[-109.99383224733212, 27.50282991058246],
[-109.98885406740048, 27.499023305106434],
[-109.98524917848447, 27.499632370829918],
[-109.98370422609189, 27.49795743198065]]]),
geometry2 = /* color: #ffc82d */ee.Geometry.MultiPoint();
/***** End of imports. If edited, may not auto-convert in the playground. *****/
// calculo de superficies
// calculo de areas
print('Superficie',geometry.area());
// calculo de perimetro
print('Perimetro', geometry.perimeter());
//calculo de longitud
print('Longitud', geometry.length());
// calculo de centroide
print('Centroide', geometry.centroid());
var centroide = geometry.centroid();
Map.addLayer(centroide);
print('Coordenada', geometry.coordinates());