mapshaper 0.7.1 → 0.7.3

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 (82) hide show
  1. package/LICENSE +1 -1
  2. package/mapshaper.js +1 -1
  3. package/package.json +5 -2
  4. package/www/.nojekyll +0 -0
  5. package/www/index.html +22 -6
  6. package/www/mapshaper-gui.js +292 -4
  7. package/www/mapshaper.js +1 -1
  8. package/www/page.css +188 -10
  9. package/www/docs/_assets/cmd-search.js +0 -213
  10. package/www/docs/_assets/docs.css +0 -712
  11. package/www/docs/_assets/docs.js +0 -75
  12. package/www/docs/_assets/highlight.css +0 -10
  13. package/www/docs/essentials/command-line.html +0 -127
  14. package/www/docs/essentials/command-line.html.md +0 -112
  15. package/www/docs/essentials/web-app.html +0 -138
  16. package/www/docs/essentials/web-app.html.md +0 -106
  17. package/www/docs/examples/basics.html +0 -276
  18. package/www/docs/examples/basics.html.md +0 -371
  19. package/www/docs/examples/data/Makefile +0 -31
  20. package/www/docs/examples/data/globe.msx +0 -0
  21. package/www/docs/examples/data/globe.svg +0 -616
  22. package/www/docs/examples/data/globe.txt +0 -21
  23. package/www/docs/examples/data/globe.zip +0 -0
  24. package/www/docs/examples/data/ne_50m_admin_0_countries.geojson +0 -1
  25. package/www/docs/examples/data/ne_50m_admin_1_states_provinces_lakes.geojson +0 -1
  26. package/www/docs/examples/data/us-states.msx +0 -0
  27. package/www/docs/examples/data/us-states.svg +0 -56
  28. package/www/docs/examples/data/us-states.txt +0 -6
  29. package/www/docs/examples/data/us-states.zip +0 -0
  30. package/www/docs/examples/globe.html +0 -108
  31. package/www/docs/examples/globe.html.md +0 -64
  32. package/www/docs/examples/us-states.html +0 -88
  33. package/www/docs/examples/us-states.html.md +0 -44
  34. package/www/docs/formats/csv.html +0 -127
  35. package/www/docs/formats/csv.html.md +0 -97
  36. package/www/docs/formats/dbf.html +0 -87
  37. package/www/docs/formats/dbf.html.md +0 -39
  38. package/www/docs/formats/flatgeobuf.html +0 -86
  39. package/www/docs/formats/flatgeobuf.html.md +0 -42
  40. package/www/docs/formats/geojson.html +0 -107
  41. package/www/docs/formats/geojson.html.md +0 -65
  42. package/www/docs/formats/geopackage.html +0 -87
  43. package/www/docs/formats/geopackage.html.md +0 -42
  44. package/www/docs/formats/json.html +0 -83
  45. package/www/docs/formats/json.html.md +0 -35
  46. package/www/docs/formats/kml.html +0 -82
  47. package/www/docs/formats/kml.html.md +0 -39
  48. package/www/docs/formats/overview.html +0 -192
  49. package/www/docs/formats/overview.html.md +0 -35
  50. package/www/docs/formats/shapefile.html +0 -123
  51. package/www/docs/formats/shapefile.html.md +0 -84
  52. package/www/docs/formats/snapshot.html +0 -87
  53. package/www/docs/formats/snapshot.html.md +0 -39
  54. package/www/docs/formats/svg.html +0 -99
  55. package/www/docs/formats/svg.html.md +0 -51
  56. package/www/docs/formats/topojson.html +0 -102
  57. package/www/docs/formats/topojson.html.md +0 -54
  58. package/www/docs/gallery/index.html +0 -80
  59. package/www/docs/gallery/index.html.md +0 -29
  60. package/www/docs/guides/combining-layers.html +0 -105
  61. package/www/docs/guides/combining-layers.html.md +0 -81
  62. package/www/docs/guides/expressions.html +0 -600
  63. package/www/docs/guides/expressions.html.md +0 -376
  64. package/www/docs/guides/programmatic.html +0 -117
  65. package/www/docs/guides/programmatic.html.md +0 -91
  66. package/www/docs/guides/projections.html +0 -158
  67. package/www/docs/guides/projections.html.md +0 -118
  68. package/www/docs/guides/simplification.html +0 -110
  69. package/www/docs/guides/simplification.html.md +0 -94
  70. package/www/docs/guides/topology.html +0 -90
  71. package/www/docs/guides/topology.html.md +0 -63
  72. package/www/docs/images/simplification-detail.png +0 -0
  73. package/www/docs/images/simplification-dp.png +0 -0
  74. package/www/docs/images/simplification-mod2.png +0 -0
  75. package/www/docs/index.html +0 -101
  76. package/www/docs/index.html.md +0 -59
  77. package/www/docs/reference.html +0 -1302
  78. package/www/docs/reference.html.md +0 -1817
  79. package/www/docs/whats-new.html +0 -76
  80. package/www/docs/whats-new.html.md +0 -53
  81. package/www/llms-full.txt +0 -4040
  82. package/www/llms.txt +0 -55
@@ -1,76 +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>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>
39
- <pre><code class="hljs language-bash">mapshaper build.txt
40
- </code></pre>
41
- <p>→ See <a href="/docs/reference.html#command-files">Command files</a> in the reference.</p>
42
- </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>
43
- <pre><code class="hljs language-bash">mapshaper -vars YEAR=2030 PCT=5 -run build.txt
44
- </code></pre>
45
- <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>
46
- </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>
47
- <p>→ See <a href="/docs/reference.html#-dissolve"><code>-dissolve</code></a>.</p>
48
- </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>
49
- <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>
50
- </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>
51
- <p>→ See <a href="/docs/formats/svg.html">SVG</a>.</p>
52
- </div>
53
-
54
- <div class="edit-link">
55
- <a href="https://github.com/mbloch/mapshaper/edit/master/docs/whats-new.md">Edit this page on GitHub</a>
56
- </div>
57
- </article>
58
- </main>
59
-
60
- <aside class="docs-toc">
61
- <div class="docs-toc-title">On this page</div><ul><li class="lvl-2"><a href="#april-2026">April 2026</a></li></ul>
62
- </aside>
63
-
64
- </div>
65
-
66
- <script src="/docs/_assets/docs.js" defer></script>
67
-
68
- <footer class="docs-footer">
69
- <div class="docs-footer-inner">
70
- <span>mapshaper is free software, licensed under <a href="https://www.mozilla.org/MPL/2.0/">MPL 2.0</a>.</span>
71
- <span><a href="/privacy.html">Privacy</a> &middot; <a href="/terms.html">Terms</a> &middot; <a href="/sponsor.html">Support mapshaper</a></span>
72
- </div>
73
- </footer>
74
-
75
- </body>
76
- </html>
@@ -1,53 +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
- **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.
15
-
16
- ```bash
17
- mapshaper build.txt
18
- ```
19
-
20
- → See [Command files](/docs/reference.html.md#command-files) in the reference.
21
- </div>
22
-
23
- <div class="whats-new-entry">
24
-
25
- **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.
26
-
27
- ```bash
28
- mapshaper -vars YEAR=2030 PCT=5 -run build.txt
29
- ```
30
-
31
- → See [Variable interpolation](/docs/reference.html.md#variable-interpolation), [`-vars`](/docs/reference.html.md#-vars) and [`-defaults`](/docs/reference.html.md#-defaults).
32
- </div>
33
-
34
- <div class="whats-new-entry">
35
-
36
- **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`.)
37
-
38
- → See [`-dissolve`](/docs/reference.html.md#-dissolve).
39
- </div>
40
-
41
- <div class="whats-new-entry">
42
-
43
- **FlatGeobuf and GeoPackage support.** Mapshaper reads and writes FlatGeobuf (`.fgb`) and GeoPackage (`.gpkg`) files.
44
-
45
- → See [FlatGeobuf](/docs/formats/flatgeobuf.html.md), [GeoPackage](/docs/formats/geopackage.html.md) and [`-i layers=`](/docs/reference.html.md#-i-input).
46
- </div>
47
-
48
- <div class="whats-new-entry">
49
-
50
- **SVG import.** SVG files exported by Mapshaper can be re-imported &mdash; useful for making stylistic edits.
51
-
52
- → See [SVG](/docs/formats/svg.html.md).
53
- </div>