Skip to content

Commit 789dc10

Browse files
committed
Update website
1 parent d9abd72 commit 789dc10

7 files changed

Lines changed: 15 additions & 15 deletions

File tree

docs/examples/data/globe.msx

0 Bytes
Binary file not shown.

docs/examples/data/us-states.msx

0 Bytes
Binary file not shown.

docs/gallery/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<article class="docs-article">
4141

4242
<h1 id="gallery">Gallery</h1>
43-
<p>A collection of example maps made with Mapshaper. Each tile links to a full write-up with the recipe, the source data, and a one-click link to open the finished snapshot in the <a href="/">web app</a>.</p>
43+
<p>A collection of example maps made with Mapshaper. Each tile links to its own page with the recipe, the source data, and a link to open the finished map in the <a href="/">web app</a>.</p>
4444
<div class="gallery-grid">
4545
<a class="gallery-tile" href="/docs/examples/globe.html">
4646
<div class="gallery-tile-image">

docs/gallery/index.html.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Example maps made with Mapshaper, with full source data and reprodu
55

66
# Gallery
77

8-
A collection of example maps made with Mapshaper. Each tile links to a full write-up with the recipe, the source data, and a one-click link to open the finished snapshot in the [web app](/).
8+
A collection of example maps made with Mapshaper. Each tile links to its own page with the recipe, the source data, and a link to open the finished map in the [web app](/).
99

1010
<div class="gallery-grid">
1111
<a class="gallery-tile" href="/docs/examples/globe.html">

docs/guides/expressions.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ <h2 id="helper-functions">Helper functions</h2>
419419
</ul>
420420
<p>JavaScript&#39;s built-in <code>Math</code>, <code>JSON</code>, <code>Number</code>, <code>String</code>, <code>Array</code>, <code>Date</code>, <code>Object</code> etc. are all available. Node-specific globals like <code>process</code>, <code>require</code> and <code>setTimeout</code> are not.</p>
421421
<h2 id="calc-expressions">Calc expressions</h2>
422-
<p><code>-calc</code> and any command&#39;s <code>calc=</code> option use the same context as <code>-each</code> plus a set of <em>aggregate</em> functions that operate over the entire group of features (or the entire layer for <code>-calc</code>). Each aggregate function takes a per-feature expression and reduces it to a single value across the group.</p>
422+
<p><code>-calc</code> and any command&#39;s <code>calc=</code> option use the same context as <code>-each</code> plus a set of <em>reduction functions</em> functions that convert data from a group of features or an entire layer to a single value. Each reduction function takes a per-feature expression and reduces it across the group.</p>
423423
<table>
424424
<thead>
425425
<tr>
@@ -584,7 +584,7 @@ <h2 id="examples">Examples</h2>
584584

585585
<span class="hljs-comment"># Sort polygons largest-first</span>
586586
mapshaper countries.geojson \
587-
-<span class="hljs-built_in">sort</span> <span class="hljs-string">&#x27;-this.area&#x27;</span> \
587+
-<span class="hljs-built_in">sort</span> this.area descending \
588588
-o sorted.geojson
589589

590590
<span class="hljs-comment"># Look up one feature</span>
@@ -621,12 +621,12 @@ <h2 id="examples">Examples</h2>
621621
</code></pre>
622622
<h2 id="see-also">See also</h2>
623623
<ul>
624-
<li><a href="/docs/reference.html#-each"><code>-each</code></a> &mdash; the canonical feature-expression command</li>
624+
<li><a href="/docs/reference.html#-each"><code>-each</code></a></li>
625625
<li><a href="/docs/reference.html#-filter"><code>-filter</code></a></li>
626626
<li><a href="/docs/reference.html#-calc"><code>-calc</code></a></li>
627627
<li><a href="/docs/reference.html#-define"><code>-define</code></a>, <a href="/docs/reference.html#-include"><code>-include</code></a>, <a href="/docs/reference.html#-require"><code>-require</code></a></li>
628628
<li><a href="/docs/reference.html#-run"><code>-run</code></a></li>
629-
<li><a href="/docs/examples/basics.html">Basics</a> &mdash; recipes that put expressions to work</li>
629+
<li><a href="/docs/examples/basics.html">Basics</a> &mdash; many examples that use expressions</li>
630630
</ul>
631631

632632
<div class="edit-link">

docs/guides/expressions.html.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ JavaScript's built-in `Math`, `JSON`, `Number`, `String`, `Array`, `Date`, `Obje
259259

260260
## Calc expressions
261261

262-
`-calc` and any command's `calc=` option use the same context as `-each` plus a set of *aggregate* functions that operate over the entire group of features (or the entire layer for `-calc`). Each aggregate function takes a per-feature expression and reduces it to a single value across the group.
262+
`-calc` and any command's `calc=` option use the same context as `-each` plus a set of *reduction functions*functions that convert data from a group of features or an entire layer to a single value. Each reduction function takes a per-feature expression and reduces it across the group.
263263

264264
| Function | Description |
265265
| --- | --- |
@@ -409,7 +409,7 @@ mapshaper events.csv \
409409

410410
# Sort polygons largest-first
411411
mapshaper countries.geojson \
412-
-sort '-this.area' \
412+
-sort this.area descending \
413413
-o sorted.geojson
414414

415415
# Look up one feature
@@ -447,9 +447,9 @@ mapshaper -i country.shp -require ./projection.js \
447447

448448
## See also
449449

450-
- [`-each`](/docs/reference.html.md#-each) &mdash; the canonical feature-expression command
450+
- [`-each`](/docs/reference.html.md#-each)
451451
- [`-filter`](/docs/reference.html.md#-filter)
452452
- [`-calc`](/docs/reference.html.md#-calc)
453453
- [`-define`](/docs/reference.html.md#-define), [`-include`](/docs/reference.html.md#-include), [`-require`](/docs/reference.html.md#-require)
454454
- [`-run`](/docs/reference.html.md#-run)
455-
- [Basics](/docs/examples/basics.html.md) &mdash; recipes that put expressions to work
455+
- [Basics](/docs/examples/basics.html.md) &mdash; many examples that use expressions

llms-full.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1938,7 +1938,7 @@ Print mapshaper version.
19381938

19391939
# Gallery
19401940

1941-
A collection of example maps made with Mapshaper. Each tile links to a full write-up with the recipe, the source data, and a one-click link to open the finished snapshot in the [web app](/).
1941+
A collection of example maps made with Mapshaper. Each tile links to its own page with the recipe, the source data, and a link to open the finished map in the [web app](/).
19421942

19431943
<!-- mapshaper:gallery -->
19441944

@@ -2515,7 +2515,7 @@ JavaScript's built-in `Math`, `JSON`, `Number`, `String`, `Array`, `Date`, `Obje
25152515

25162516
## Calc expressions
25172517

2518-
`-calc` and any command's `calc=` option use the same context as `-each` plus a set of *aggregate* functions that operate over the entire group of features (or the entire layer for `-calc`). Each aggregate function takes a per-feature expression and reduces it to a single value across the group.
2518+
`-calc` and any command's `calc=` option use the same context as `-each` plus a set of *reduction functions* — functions that convert data from a group of features or an entire layer to a single value. Each reduction function takes a per-feature expression and reduces it across the group.
25192519

25202520
| Function | Description |
25212521
| --- | --- |
@@ -2665,7 +2665,7 @@ mapshaper events.csv \
26652665

26662666
# Sort polygons largest-first
26672667
mapshaper countries.geojson \
2668-
-sort '-this.area' \
2668+
-sort this.area descending \
26692669
-o sorted.geojson
26702670

26712671
# Look up one feature
@@ -2703,12 +2703,12 @@ mapshaper -i country.shp -require ./projection.js \
27032703

27042704
## See also
27052705

2706-
- [`-each`](/docs/reference.html.md#-each) &mdash; the canonical feature-expression command
2706+
- [`-each`](/docs/reference.html.md#-each)
27072707
- [`-filter`](/docs/reference.html.md#-filter)
27082708
- [`-calc`](/docs/reference.html.md#-calc)
27092709
- [`-define`](/docs/reference.html.md#-define), [`-include`](/docs/reference.html.md#-include), [`-require`](/docs/reference.html.md#-require)
27102710
- [`-run`](/docs/reference.html.md#-run)
2711-
- [Basics](/docs/examples/basics.html.md) &mdash; recipes that put expressions to work
2711+
- [Basics](/docs/examples/basics.html.md) &mdash; many examples that use expressions
27122712

27132713
---
27142714

0 commit comments

Comments
 (0)