Skip to content

Commit 246fa62

Browse files
committed
Update website
1 parent f0495ef commit 246fa62

15 files changed

Lines changed: 156 additions & 45 deletions

docs/examples/data/globe.msx

0 Bytes
Binary file not shown.

docs/examples/data/ny-state.msx

0 Bytes
Binary file not shown.

docs/examples/data/us-states.msx

33.8 KB
Binary file not shown.

docs/examples/data/us-states.svg

Lines changed: 15 additions & 15 deletions
Loading

docs/guides/geojson-for-web-maps.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ <h3 id="export-geojson-for-leaflet-maplibre-mapbox-gl-and-most-web-map-apis">Exp
5858
<p>If you&#39;re unsure what CRS your data file is using, you can look it up using mapshaper&#39;s <code>-info</code> command. It will give you the CRS in proj4 format, which is used by Mapshaper&#39;s <code>-proj</code> command.</p>
5959
<pre><code class="hljs language-bash">mapshaper input.shp -info
6060
</code></pre>
61-
<p>If your input is a (non-standard) GeoJSON of TopoJSON file with projected coordinates, you&#39;ll have to tell Mapshaper what CRS the coordinates are in before reprojecting. If you do not know the CRS, look for documentation on the source dataset&#39;s CRS. In the example below, you would replace <code>EPSG:3857</code> (Web Mercator) with the correct source CRS.</p>
61+
<p>If your input is a (non-standard) GeoJSON or TopoJSON file with projected coordinates, you&#39;ll have to tell Mapshaper what CRS the coordinates are in before reprojecting. If you do not know the CRS, look for documentation on the source dataset&#39;s CRS. In the example below, you would replace <code>EPSG:3857</code> (Web Mercator) with the correct source CRS.</p>
6262
<pre><code class="hljs language-bash">mapshaper projected.geojson \
6363
-proj init=EPSG:3857 \
6464
-proj wgs84 \

docs/guides/geojson-for-web-maps.html.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ If you're unsure what CRS your data file is using, you can look it up using maps
2323
mapshaper input.shp -info
2424
```
2525

26-
If your input is a (non-standard) GeoJSON of TopoJSON file with projected coordinates, you'll have to tell Mapshaper what CRS the coordinates are in before reprojecting. If you do not know the CRS, look for documentation on the source dataset's CRS. In the example below, you would replace `EPSG:3857` (Web Mercator) with the correct source CRS.
26+
If your input is a (non-standard) GeoJSON or TopoJSON file with projected coordinates, you'll have to tell Mapshaper what CRS the coordinates are in before reprojecting. If you do not know the CRS, look for documentation on the source dataset's CRS. In the example below, you would replace `EPSG:3857` (Web Mercator) with the correct source CRS.
2727

2828
```bash
2929
mapshaper projected.geojson \

docs/guides/projections.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,15 @@ <h2 id="auto-fitted-parameters">Auto-fitted parameters</h2>
103103
<p>For some conic and cylindrical projections, you can supply just the projection name and Mapshaper will calculate suitable parameters from the extent of the data. This is useful when you want a locally appropriate projection without looking up specific values.</p>
104104
<p>For <strong>Lambert Conformal Conic</strong> (<code>lcc</code>) and <strong>Albers Equal Area Conic</strong> (<code>aea</code>), Mapshaper calculates the central meridian (<code>lon_0</code>) and two standard parallels (<code>lat_1</code>, <code>lat_2</code>) using the one-sixth rule applied to the data&#39;s bounding box.</p>
105105
<p>For <strong>Transverse Mercator</strong> (<code>tmerc</code>, <code>etmerc</code>), it calculates the central meridian and latitude of origin (<code>lon_0</code>, <code>lat_0</code>) from the center of the bounding box.</p>
106+
<p>For <strong>Universal Transverse Mercator</strong> (<code>utm</code>), it calculates the UTM zone from the center longitude of the bounding box and adds <code>+south</code> when the center latitude is in the southern hemisphere.</p>
106107
<pre><code class="hljs language-bash"><span class="hljs-comment"># Mapshaper fills in lon_0, lat_1, lat_2 based on the data extent</span>
107108
mapshaper region.geojson -proj lcc -o region_lcc.geojson
108109

109110
<span class="hljs-comment"># Equivalent — Mapshaper fills in lon_0 and lat_0</span>
110111
mapshaper region.geojson -proj tmerc -o region_tmerc.geojson
112+
113+
<span class="hljs-comment"># Equivalent — Mapshaper fills in zone and hemisphere</span>
114+
mapshaper region.geojson -proj utm -o region_utm.geojson
111115
</code></pre>
112116
<p>When Mapshaper auto-fits parameters, it prints the expanded PROJ string so you can see exactly what was applied — for example: <code>Converted &quot;lcc&quot; to &quot;+proj=lcc +lon_0=-95.5 +lat_1=30.17 +lat_2=44.83&quot;</code>. You can copy that string and use it explicitly if you need reproducible output.</p>
113117
<h2 id="albersusa">albersusa</h2>

docs/guides/projections.html.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,17 @@ For **Lambert Conformal Conic** (`lcc`) and **Albers Equal Area Conic** (`aea`),
6262

6363
For **Transverse Mercator** (`tmerc`, `etmerc`), it calculates the central meridian and latitude of origin (`lon_0`, `lat_0`) from the center of the bounding box.
6464

65+
For **Universal Transverse Mercator** (`utm`), it calculates the UTM zone from the center longitude of the bounding box and adds `+south` when the center latitude is in the southern hemisphere.
66+
6567
```bash
6668
# Mapshaper fills in lon_0, lat_1, lat_2 based on the data extent
6769
mapshaper region.geojson -proj lcc -o region_lcc.geojson
6870

6971
# Equivalent — Mapshaper fills in lon_0 and lat_0
7072
mapshaper region.geojson -proj tmerc -o region_tmerc.geojson
73+
74+
# Equivalent — Mapshaper fills in zone and hemisphere
75+
mapshaper region.geojson -proj utm -o region_utm.geojson
7176
```
7277

7378
When Mapshaper auto-fits parameters, it prints the expanded PROJ string so you can see exactly what was applied — for example: `Converted "lcc" to "+proj=lcc +lon_0=-95.5 +lat_1=30.17 +lat_2=44.83"`. You can copy that string and use it explicitly if you need reproducible output.

docs/guides/simplification.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ <h2 id="choosing-a-method">Choosing a method</h2>
6464
<img src="/docs/images/simplification-mod2.png" alt="image"></p>
6565
<p>Same file using Douglas-Peucker, also 5% simplification.
6666
<img src="/docs/images/simplification-dp.png" alt="image"></p>
67-
<p>Zoomed-in view of Norwegian coastline at 5% simplification; left: weighted Visvalingam, right: Douglas-Peucker.
68-
<img src="/docs/images/simplification-detail.png" alt="image"></p>
67+
<p>Zoomed-in view of Norwegian coastline at 5% simplification; left: weighted Visvalingam, right: Douglas-Peucker. These figures illustrate the different ways each method removes detail. In a finished map, you would apply far less simplification than this — simplification artifacts generally should not be discernible to the naked eye.</p>
68+
<p><img src="/docs/images/simplification-detail.png" alt="image"></p>
6969
<h2 id="simplification-amount">Simplification amount</h2>
7070
<p>On the command line, there are three ways to specify the amount of simplification to apply: <code>percentage</code>, <code>interval</code>, and <code>resolution</code>.</p>
7171
<p>Percentage is the default (you don&#39;t need to type <code>percentage=</code>). It gives the percentage of removable vertices to retain, so lower numbers = more simplification.</p>

docs/guides/simplification.html.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ Natural Earth 10m coastlines, simplified with modified Visvalingam at 5% point r
2727
Same file using Douglas-Peucker, also 5% simplification.
2828
![image](/docs/images/simplification-dp.png)
2929

30-
Zoomed-in view of Norwegian coastline at 5% simplification; left: weighted Visvalingam, right: Douglas-Peucker.
30+
Zoomed-in view of Norwegian coastline at 5% simplification; left: weighted Visvalingam, right: Douglas-Peucker. These figures illustrate the different ways each method removes detail. In a finished map, you would apply far less simplification than this — simplification artifacts generally should not be discernible to the naked eye.
31+
3132
![image](/docs/images/simplification-detail.png)
3233

3334
## Simplification amount

0 commit comments

Comments
 (0)