mapshaper 0.6.15 → 0.6.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/mapshaper.js +2929 -106
- package/package.json +94 -85
- package/www/elements.css +0 -8
- package/www/index.html +4 -7
- package/www/mapshaper-gui.js +402 -317
- package/www/mapshaper.js +2929 -106
- package/www/modules.js +7542 -1
- package/www/page.css +27 -5
- package/www/codecs.js +0 -64
- package/www/deflate.js +0 -2060
- package/www/pako.deflate.js +0 -2
- package/www/pako.inflate.js +0 -2
- package/www/z-worker.js +0 -153
- package/www/zip.js +0 -969
package/package.json
CHANGED
|
@@ -1,87 +1,96 @@
|
|
|
1
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
|
-
|
|
2
|
+
"name": "mapshaper",
|
|
3
|
+
"version": "0.6.17",
|
|
4
|
+
"description": "A tool for editing vector datasets for mapping and GIS.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"shapefile",
|
|
7
|
+
"topojson",
|
|
8
|
+
"geojson",
|
|
9
|
+
"cartography",
|
|
10
|
+
"simplification",
|
|
11
|
+
"topology",
|
|
12
|
+
"csv",
|
|
13
|
+
"gis"
|
|
14
|
+
],
|
|
15
|
+
"author": "Matthew Bloch <masiyou@gmail.com>",
|
|
16
|
+
"contributors": [],
|
|
17
|
+
"license": "MPL-2.0",
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/mbloch/mapshaper.git"
|
|
21
|
+
},
|
|
22
|
+
"engines": {
|
|
23
|
+
"node": ">=12.0.0"
|
|
24
|
+
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"test": "mocha test",
|
|
27
|
+
"build": "rollup --config",
|
|
28
|
+
"lint": "eslint --ext mjs src/",
|
|
29
|
+
"prepublishOnly": "npm lint; npm test; ./pre-publish",
|
|
30
|
+
"postpublish": "./release_web_ui; ./release_github_version",
|
|
31
|
+
"browserify": "browserify -r sync-request -r mproj -r buffer -r iconv-lite -r fs -r flatbush -r rw -r path -r kdbush -r @tmcw/togeojson -r @placemarkio/tokml -r bson -o www/modules.js",
|
|
32
|
+
"dev": "rollup --config --watch"
|
|
33
|
+
},
|
|
34
|
+
"main": "./mapshaper.js",
|
|
35
|
+
"files": [
|
|
36
|
+
"/bin/**",
|
|
37
|
+
"/www/**",
|
|
38
|
+
"!/www/nacis/**",
|
|
39
|
+
"/mapshaper.js",
|
|
40
|
+
"!.DS_Store"
|
|
41
|
+
],
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@placemarkio/tokml": "^0.3.3",
|
|
44
|
+
"@tmcw/togeojson": "^5.6.0",
|
|
45
|
+
"@xmldom/xmldom": "^0.8.6",
|
|
46
|
+
"adm-zip": "^0.5.9",
|
|
47
|
+
"bson": "^4.7.0",
|
|
48
|
+
"commander": "7.0.0",
|
|
49
|
+
"cookies": "^0.8.0",
|
|
50
|
+
"d3-color": "3.1.0",
|
|
51
|
+
"d3-interpolate": "^3.0.1",
|
|
52
|
+
"d3-scale-chromatic": "3.0.0",
|
|
53
|
+
"delaunator": "^5.0.0",
|
|
54
|
+
"fflate": "^0.7.4",
|
|
55
|
+
"flatbush": "^3.2.1",
|
|
56
|
+
"geokdbush": "^1.1.0",
|
|
57
|
+
"iconv-lite": "^0.6.3",
|
|
58
|
+
"kdbush": "^3.0.0",
|
|
59
|
+
"mproj": "0.0.35",
|
|
60
|
+
"opn": "^5.3.0",
|
|
61
|
+
"rw": "~1.3.3",
|
|
62
|
+
"sync-request": "5.0.0",
|
|
63
|
+
"tinyqueue": "^2.0.3"
|
|
64
|
+
},
|
|
65
|
+
"devDependencies": {
|
|
66
|
+
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
67
|
+
"browserify": "^17.0.0",
|
|
68
|
+
"csv-spectrum": "^1.0.0",
|
|
69
|
+
"eslint": "^8.16.0",
|
|
70
|
+
"mocha": "^10.0.0",
|
|
71
|
+
"rollup": "^2.73.0",
|
|
72
|
+
"shell-quote": "^1.7.4",
|
|
73
|
+
"underscore": "^1.13.1"
|
|
74
|
+
},
|
|
75
|
+
"mocha": {
|
|
76
|
+
"reporter": "dot",
|
|
77
|
+
"node-option": [
|
|
78
|
+
"experimental-specifier-resolution=node"
|
|
79
|
+
],
|
|
80
|
+
"check-leaks": true,
|
|
81
|
+
"parallel": true,
|
|
82
|
+
"jobs": 4
|
|
83
|
+
},
|
|
84
|
+
"bin": {
|
|
85
|
+
"mapshaper": "bin/mapshaper",
|
|
86
|
+
"mapshaper-gui": "bin/mapshaper-gui",
|
|
87
|
+
"mapshaper-xl": "bin/mapshaper-xl"
|
|
88
|
+
},
|
|
89
|
+
"bugs": {
|
|
90
|
+
"url": "https://github.com/mbloch/mapshaper/issues"
|
|
91
|
+
},
|
|
92
|
+
"homepage": "https://github.com/mbloch/mapshaper#readme",
|
|
93
|
+
"directories": {
|
|
94
|
+
"test": "test"
|
|
95
|
+
}
|
|
87
96
|
}
|
package/www/elements.css
CHANGED
package/www/index.html
CHANGED
|
@@ -139,6 +139,9 @@
|
|
|
139
139
|
<div class=export-layers>
|
|
140
140
|
<h4 class="menu-title">Layers</h4>
|
|
141
141
|
<div class="export-layer-list option-menu"></div>
|
|
142
|
+
</div>
|
|
143
|
+
<div class="export-zip-option option-menu">
|
|
144
|
+
|
|
142
145
|
</div>
|
|
143
146
|
<h4>File format</h4>
|
|
144
147
|
<div class="export-formats option-menu">
|
|
@@ -310,16 +313,10 @@ interface. Examples: "no-topology"
|
|
|
310
313
|
</div>
|
|
311
314
|
|
|
312
315
|
<script src="basemap.js" type="text/javascript"></script>
|
|
313
|
-
<script src="zip.js" type="text/javascript"></script>
|
|
314
316
|
<script src="modules.js" type="text/javascript"></script>
|
|
315
317
|
<script src="mapshaper.js" type="text/javascript"></script>
|
|
316
318
|
<script src="manifest.js" type="text/javascript"></script>
|
|
317
319
|
<script src="mapshaper-gui.js" type="text/javascript"></script>
|
|
318
|
-
|
|
319
|
-
zip.workerScripts = {
|
|
320
|
-
deflater: ['z-worker.js', 'pako.deflate.js', 'codecs.js'],
|
|
321
|
-
inflater: ['z-worker.js', 'pako.inflate.js', 'codecs.js']
|
|
322
|
-
};
|
|
323
|
-
</script>
|
|
320
|
+
|
|
324
321
|
</body>
|
|
325
322
|
</html>
|