Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Topojson command to convert geojson to topojson is no longer "topojson", it is "geo2topo".
  • Loading branch information
mrchocoborider authored Jun 26, 2018
1 parent a1e0ab1 commit e37e9c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data/world/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ wget https://d2ad6b4ur7yvpq.cloudfront.net/naturalearth-3.3.0/ne_50m_admin_0_cou
```
convert the geojson to topojson (with simplification) and preserve a couple key properties
```shell
topojson -s 1e-6 ne_50m_admin_0_countries.geojson -p name -p pop_est -p continent -o ne_50m_admin_0_countries.topojson
geo2topo -s 1e-6 ne_50m_admin_0_countries.geojson -p name -p pop_est -p continent -o ne_50m_admin_0_countries.topojson
```

## Populated Places Simple (Cities)
Expand All @@ -25,7 +25,7 @@ wget https://d2ad6b4ur7yvpq.cloudfront.net/naturalearth-3.3.0/ne_50m_populated_p
```
convert the geojson to topojson and preserve only a couple key properties
```shell
topojson ne_50m_populated_places_simple.geojson -p name -p adm0name -o ne_50m_populated_places_simple.topojson
geo2topo ne_50m_populated_places_simple.geojson -p name -p adm0name -o ne_50m_populated_places_simple.topojson
```

## Rivers & Lake centerlines
Expand All @@ -39,7 +39,7 @@ wget https://d2ad6b4ur7yvpq.cloudfront.net/naturalearth-3.3.0/ne_50m_rivers_lake
```
convert the geojson to topojson and preserve only a couple key properties
```shell
topojson -s 1e-6 ne_50m_rivers_lake_centerlines.geojson -p name -p dissolve -p featureclass -o ne_50m_rivers_lake_centerlines.topojson
geo2topo -s 1e-6 ne_50m_rivers_lake_centerlines.geojson -p name -p dissolve -p featureclass -o ne_50m_rivers_lake_centerlines.topojson
```

## File sizes
Expand Down

0 comments on commit e37e9c4

Please sign in to comment.