forked from mapbox/shp-write
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdl.js
More file actions
28 lines (27 loc) · 605 Bytes
/
dl.js
File metadata and controls
28 lines (27 loc) · 605 Bytes
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
var shpWrite = require('./').download;
shpWrite({
type: 'FeatureCollection',
features: [
{
type: 'Feature',
geometry: {
type: 'Point',
coordinates: [0, 0]
},
properties: {
foo: 'bar'
}
},
{
type: 'Feature',
geometry: {
type: 'Polygon',
coordinates:
[[0, 0], [2, -10], [5, 10], [0,0]]
},
properties: {
foo: 'blah'
}
},
]
});