mapshaper 0.7.2 → 0.7.4

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.
Files changed (86) hide show
  1. package/LICENSE +1 -1
  2. package/bin/mapshaper-gui +31 -7
  3. package/mapshaper.js +45 -42
  4. package/package.json +8 -7
  5. package/www/geopackage.js +10 -10
  6. package/www/index.html +32 -4
  7. package/www/mapshaper-gui.js +529 -83
  8. package/www/mapshaper.js +45 -42
  9. package/www/modules.js +5 -5
  10. package/www/page.css +157 -0
  11. package/www/docs/_assets/cmd-search.js +0 -213
  12. package/www/docs/_assets/docs.css +0 -722
  13. package/www/docs/_assets/docs.js +0 -75
  14. package/www/docs/_assets/highlight.css +0 -10
  15. package/www/docs/essentials/command-line.html +0 -127
  16. package/www/docs/essentials/command-line.html.md +0 -112
  17. package/www/docs/essentials/web-app.html +0 -138
  18. package/www/docs/essentials/web-app.html.md +0 -106
  19. package/www/docs/examples/basics.html +0 -275
  20. package/www/docs/examples/basics.html.md +0 -370
  21. package/www/docs/examples/data/Makefile +0 -31
  22. package/www/docs/examples/data/globe.msx +0 -0
  23. package/www/docs/examples/data/globe.svg +0 -616
  24. package/www/docs/examples/data/globe.txt +0 -21
  25. package/www/docs/examples/data/globe.zip +0 -0
  26. package/www/docs/examples/data/ne_50m_admin_0_countries.geojson +0 -1
  27. package/www/docs/examples/data/ne_50m_admin_1_states_provinces_lakes.geojson +0 -1
  28. package/www/docs/examples/data/us-states.msx +0 -0
  29. package/www/docs/examples/data/us-states.svg +0 -56
  30. package/www/docs/examples/data/us-states.txt +0 -6
  31. package/www/docs/examples/data/us-states.zip +0 -0
  32. package/www/docs/examples/globe.html +0 -108
  33. package/www/docs/examples/globe.html.md +0 -64
  34. package/www/docs/examples/us-states.html +0 -88
  35. package/www/docs/examples/us-states.html.md +0 -44
  36. package/www/docs/formats/csv.html +0 -127
  37. package/www/docs/formats/csv.html.md +0 -97
  38. package/www/docs/formats/dbf.html +0 -87
  39. package/www/docs/formats/dbf.html.md +0 -39
  40. package/www/docs/formats/flatgeobuf.html +0 -85
  41. package/www/docs/formats/flatgeobuf.html.md +0 -41
  42. package/www/docs/formats/geojson.html +0 -107
  43. package/www/docs/formats/geojson.html.md +0 -65
  44. package/www/docs/formats/geopackage.html +0 -87
  45. package/www/docs/formats/geopackage.html.md +0 -42
  46. package/www/docs/formats/json.html +0 -83
  47. package/www/docs/formats/json.html.md +0 -35
  48. package/www/docs/formats/kml.html +0 -82
  49. package/www/docs/formats/kml.html.md +0 -39
  50. package/www/docs/formats/overview.html +0 -191
  51. package/www/docs/formats/overview.html.md +0 -34
  52. package/www/docs/formats/shapefile.html +0 -123
  53. package/www/docs/formats/shapefile.html.md +0 -84
  54. package/www/docs/formats/snapshot.html +0 -87
  55. package/www/docs/formats/snapshot.html.md +0 -39
  56. package/www/docs/formats/svg.html +0 -99
  57. package/www/docs/formats/svg.html.md +0 -51
  58. package/www/docs/formats/topojson.html +0 -102
  59. package/www/docs/formats/topojson.html.md +0 -54
  60. package/www/docs/gallery/index.html +0 -80
  61. package/www/docs/gallery/index.html.md +0 -29
  62. package/www/docs/guides/combining-layers.html +0 -109
  63. package/www/docs/guides/combining-layers.html.md +0 -89
  64. package/www/docs/guides/expressions.html +0 -600
  65. package/www/docs/guides/expressions.html.md +0 -376
  66. package/www/docs/guides/programmatic.html +0 -117
  67. package/www/docs/guides/programmatic.html.md +0 -91
  68. package/www/docs/guides/projections.html +0 -158
  69. package/www/docs/guides/projections.html.md +0 -118
  70. package/www/docs/guides/simplification.html +0 -110
  71. package/www/docs/guides/simplification.html.md +0 -96
  72. package/www/docs/guides/topology.html +0 -90
  73. package/www/docs/guides/topology.html.md +0 -63
  74. package/www/docs/images/cal-counties.png +0 -0
  75. package/www/docs/images/simplification-detail.png +0 -0
  76. package/www/docs/images/simplification-dp.png +0 -0
  77. package/www/docs/images/simplification-mod2.png +0 -0
  78. package/www/docs/images/tiger-counties.png +0 -0
  79. package/www/docs/index.html +0 -101
  80. package/www/docs/index.html.md +0 -59
  81. package/www/docs/reference.html +0 -1302
  82. package/www/docs/reference.html.md +0 -1817
  83. package/www/docs/whats-new.html +0 -77
  84. package/www/docs/whats-new.html.md +0 -59
  85. package/www/llms-full.txt +0 -4053
  86. package/www/llms.txt +0 -55
@@ -1,77 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1">
6
- <title>What&#39;s new &middot; mapshaper docs</title>
7
- <meta name="description" content="A curated log of recently added user-visible features in Mapshaper, with links into the rest of the docs.">
8
- <link rel="icon" type="image/png" href="/images/icon.png">
9
- <link rel="stylesheet" href="/docs/_assets/highlight.css">
10
- <link rel="stylesheet" href="/docs/_assets/docs.css">
11
- </head>
12
- <body class="">
13
-
14
- <header class="page-header">
15
- <a href="/" class="mapshaper-logo">map<span class="logo-highlight">shaper</span></a>
16
- <span class="header-section-label">Docs</span>
17
- <nav class="header-nav">
18
- <a href="/">Web app</a>
19
- <a href="https://github.com/mbloch/mapshaper">GitHub</a>
20
- <a href="/sponsor.html" class="sponsor-link"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg> Become a sponsor</a>
21
- </nav>
22
- </header>
23
-
24
- <div class="docs-layout">
25
-
26
- <aside class="docs-sidebar">
27
- <div class="sidebar-inner">
28
- <nav class="docs-nav"><ul class="top-links"><li><a href="/docs/">Home</a></li><li><a href="/docs/whats-new.html" class="is-active">What&#39;s new</a></li><li><a href="/docs/reference.html">Command reference</a></li><li><a href="/docs/gallery/">Gallery</a></li></ul><h2>Getting started</h2><ul><li><a href="/docs/essentials/command-line.html">The command-line tool</a></li><li><a href="/docs/essentials/web-app.html">The web app</a></li></ul><h2>Guides</h2><ul><li><a href="/docs/guides/simplification.html">Simplification</a></li><li><a href="/docs/guides/expressions.html">JavaScript expressions</a></li><li><a href="/docs/guides/projections.html">Projections</a></li><li><a href="/docs/guides/topology.html">Topology and cleaning</a></li><li><a href="/docs/guides/combining-layers.html">Combining two layers</a></li><li><a href="/docs/guides/programmatic.html">Using Mapshaper from Node.js</a></li></ul><h2>Formats</h2><ul><li><a href="/docs/formats/overview.html">Overview</a></li><li><a href="/docs/formats/shapefile.html">Shapefile</a></li><li><a href="/docs/formats/geojson.html">GeoJSON</a></li><li><a href="/docs/formats/topojson.html">TopoJSON</a></li><li><a href="/docs/formats/geopackage.html">GeoPackage</a></li><li><a href="/docs/formats/flatgeobuf.html">FlatGeobuf</a></li><li><a href="/docs/formats/kml.html">KML / KMZ</a></li><li><a href="/docs/formats/csv.html">CSV / TSV</a></li><li><a href="/docs/formats/dbf.html">DBF</a></li><li><a href="/docs/formats/json.html">JSON records</a></li><li><a href="/docs/formats/svg.html">SVG</a></li><li><a href="/docs/formats/snapshot.html">Mapshaper snapshot</a></li></ul><h2>Examples</h2><ul><li><a href="/docs/examples/basics.html">Basics</a></li><li><a href="/docs/examples/globe.html">Globe</a></li><li><a href="/docs/examples/us-states.html">U.S. state map</a></li></ul></nav>
29
- </div>
30
- </aside>
31
-
32
- <main class="docs-main">
33
- <article class="docs-article">
34
-
35
- <h1 id="whats-new">What&#39;s new</h1>
36
- <p>This is a curated list of recently added features. For the full list of changes, including bug fixes and internal work, see the <a href="https://github.com/mbloch/mapshaper/blob/master/CHANGELOG.md">changelog</a> on GitHub.</p>
37
- <h2 id="april-2026">April 2026</h2>
38
- <div class="whats-new-entry"><p><strong>Undo/redo buttons.</strong> The web UI now has an undo/redo toolbar. Undo and redo were already supported in the geometry and attribute editing modes; the toolbar makes them more discoverable for users who didn&#39;t know the keyboard shortcuts (<strong>⌘Z</strong> / <strong>⌘⇧Z</strong>) existed.</p>
39
- </div><div class="whats-new-entry"><p><strong>Command files.</strong> A sequence of Mapshaper commands can be written to a <code>.txt</code> file with <code>#</code> comments and no shell quoting, and run with <code>-run &lt;file&gt;</code> (or just <code>mapshaper commands.txt</code>). Command files can also be written in a shell-compatible way, if you want to be able to paste the commands into the terminal or add them to a shell script. In a future release, these files will also be runnable in the browser.</p>
40
- <pre><code class="hljs language-bash">mapshaper build.txt
41
- </code></pre>
42
- <p>→ See <a href="/docs/reference.html#command-files">Command files</a> in the reference.</p>
43
- </div><div class="whats-new-entry"><p><strong>Variable interpolation in commands.</strong> Command files and command lines support <code>{{VAR}}</code> placeholders, resolved at run time against environment variables (<code>{{env.HOME}}</code>), values set with the new <code>-vars</code> and <code>-defaults</code> commands, and variables defined dynamically by <code>-calc</code>, <code>-define</code> and <code>-each</code> expressions.</p>
44
- <pre><code class="hljs language-bash">mapshaper -vars YEAR=2030 PCT=5 -run build.txt
45
- </code></pre>
46
- <p>→ See <a href="/docs/reference.html#variable-interpolation">Variable interpolation</a>, <a href="/docs/reference.html#-vars"><code>-vars</code></a> and <a href="/docs/reference.html#-defaults"><code>-defaults</code></a>.</p>
47
- </div><div class="whats-new-entry"><p><strong>Farewell to dissolve2.</strong> The <code>-dissolve</code> command now uses Mapshaper&#39;s most robust dissolve function, which can handle overlaps, gaps and other topology errors. The legacy faster algorithm is still available as <code>-dissolve no-repair</code>. (The old <code>-dissolve2</code> is just an alias for <code>-dissolve</code>.)</p>
48
- <p>→ See <a href="/docs/reference.html#-dissolve"><code>-dissolve</code></a>.</p>
49
- </div><div class="whats-new-entry"><p><strong>FlatGeobuf and GeoPackage support.</strong> Mapshaper reads and writes FlatGeobuf (<code>.fgb</code>) and GeoPackage (<code>.gpkg</code>) files.</p>
50
- <p>→ See <a href="/docs/formats/flatgeobuf.html">FlatGeobuf</a>, <a href="/docs/formats/geopackage.html">GeoPackage</a> and <a href="/docs/reference.html#-i-input"><code>-i layers=</code></a>.</p>
51
- </div><div class="whats-new-entry"><p><strong>SVG import.</strong> SVG files exported by Mapshaper can be re-imported &mdash; useful for making stylistic edits.</p>
52
- <p>→ See <a href="/docs/formats/svg.html">SVG</a>.</p>
53
- </div>
54
-
55
- <div class="edit-link">
56
- <a href="https://github.com/mbloch/mapshaper/edit/master/docs/whats-new.md">Edit this page on GitHub</a>
57
- </div>
58
- </article>
59
- </main>
60
-
61
- <aside class="docs-toc">
62
- <div class="docs-toc-title">On this page</div><ul><li class="lvl-2"><a href="#april-2026">April 2026</a></li></ul>
63
- </aside>
64
-
65
- </div>
66
-
67
- <script src="/docs/_assets/docs.js" defer></script>
68
-
69
- <footer class="docs-footer">
70
- <div class="docs-footer-inner">
71
- <span>mapshaper is free software, licensed under <a href="https://www.mozilla.org/MPL/2.0/">MPL 2.0</a>.</span>
72
- <span><a href="/privacy.html">Privacy</a> &middot; <a href="/terms.html">Terms</a> &middot; <a href="/sponsor.html">Support mapshaper</a></span>
73
- </div>
74
- </footer>
75
-
76
- </body>
77
- </html>
@@ -1,59 +0,0 @@
1
- ---
2
- title: What's new
3
- description: A curated log of recently added user-visible features in Mapshaper, with links into the rest of the docs.
4
- ---
5
-
6
- # What's new
7
-
8
- This is a curated list of recently added features. For the full list of changes, including bug fixes and internal work, see the [changelog](https://github.com/mbloch/mapshaper/blob/master/CHANGELOG.md) on GitHub.
9
-
10
- ## April 2026
11
-
12
- <div class="whats-new-entry">
13
-
14
- **Undo/redo buttons.** The web UI now has an undo/redo toolbar. Undo and redo were already supported in the geometry and attribute editing modes; the toolbar makes them more discoverable for users who didn't know the keyboard shortcuts (**⌘Z** / **⌘⇧Z**) existed.
15
-
16
- </div>
17
-
18
- <div class="whats-new-entry">
19
-
20
- **Command files.** A sequence of Mapshaper commands can be written to a `.txt` file with `#` comments and no shell quoting, and run with `-run <file>` (or just `mapshaper commands.txt`). Command files can also be written in a shell-compatible way, if you want to be able to paste the commands into the terminal or add them to a shell script. In a future release, these files will also be runnable in the browser.
21
-
22
- ```bash
23
- mapshaper build.txt
24
- ```
25
-
26
- → See [Command files](/docs/reference.html.md#command-files) in the reference.
27
- </div>
28
-
29
- <div class="whats-new-entry">
30
-
31
- **Variable interpolation in commands.** Command files and command lines support `{{VAR}}` placeholders, resolved at run time against environment variables (`{{env.HOME}}`), values set with the new `-vars` and `-defaults` commands, and variables defined dynamically by `-calc`, `-define` and `-each` expressions.
32
-
33
- ```bash
34
- mapshaper -vars YEAR=2030 PCT=5 -run build.txt
35
- ```
36
-
37
- → See [Variable interpolation](/docs/reference.html.md#variable-interpolation), [`-vars`](/docs/reference.html.md#-vars) and [`-defaults`](/docs/reference.html.md#-defaults).
38
- </div>
39
-
40
- <div class="whats-new-entry">
41
-
42
- **Farewell to dissolve2.** The `-dissolve` command now uses Mapshaper's most robust dissolve function, which can handle overlaps, gaps and other topology errors. The legacy faster algorithm is still available as `-dissolve no-repair`. (The old `-dissolve2` is just an alias for `-dissolve`.)
43
-
44
- → See [`-dissolve`](/docs/reference.html.md#-dissolve).
45
- </div>
46
-
47
- <div class="whats-new-entry">
48
-
49
- **FlatGeobuf and GeoPackage support.** Mapshaper reads and writes FlatGeobuf (`.fgb`) and GeoPackage (`.gpkg`) files.
50
-
51
- → See [FlatGeobuf](/docs/formats/flatgeobuf.html.md), [GeoPackage](/docs/formats/geopackage.html.md) and [`-i layers=`](/docs/reference.html.md#-i-input).
52
- </div>
53
-
54
- <div class="whats-new-entry">
55
-
56
- **SVG import.** SVG files exported by Mapshaper can be re-imported &mdash; useful for making stylistic edits.
57
-
58
- → See [SVG](/docs/formats/svg.html.md).
59
- </div>