forked from hwbllmnn/shp-write
-
Notifications
You must be signed in to change notification settings - Fork 1
/
indexTest.js
102 lines (102 loc) · 1.89 KB
/
indexTest.js
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
require('./src/download')({
'type': 'FeatureCollection',
'features': [{
'type': 'Feature',
'properties': {},
'geometry': {
'type': 'Polygon',
'coordinates': [
[
[
24.936046600341797,
60.175245406790246
],
[
24.920597076416016,
60.15577400466598
],
[
24.953556060791016,
60.1570553725571
],
[
24.936046600341797,
60.175245406790246
]
],
[
[
24.93523120880127,
60.169247224327165
],
[
24.945573806762695,
60.15874243076889
],
[
24.928064346313477,
60.15825127085746
],
[
24.93523120880127,
60.169247224327165
]
]
]
}
},
{
'type': 'Feature',
'properties': {},
'geometry': {
'type': 'LineString',
'coordinates': [
[
24.920940399169922,
60.17977000114811
],
[
24.953556060791016,
60.17486121440947
]
]
}
},
{
'type': 'Feature',
'properties': {},
'geometry': {
'type': 'Point',
'coordinates': [
24.925403594970703,
60.171830205844614
]
}
},
{
type: "Feature",
properties: {},
geometry: {
type: "MultiLineString",
coordinates: [
[
[24.921940399169922, 60.17877000114811],
[24.954556060791016, 60.17686121440947]
],
[
[24.929840399169922, 60.18867000114811],
[24.995956060791016, 60.17696121440947]
]
]
}
}
]
}, {
file: 'shapefiles',
folder: 'shapefiles',
types: {
point: 'points',
polygon: 'polygons',
polyline: 'lines'
}
});