mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-05 18:05:42 +02:00
Forgot to update manpage
This commit is contained in:
+5
-7
@@ -263,16 +263,14 @@ it doesn't have any of tippecanoe's recourses if the new tiles are bigger than t
|
|||||||
If a tile is too big, it is just left out of the new tileset.
|
If a tile is too big, it is just left out of the new tileset.
|
||||||
.SH Example
|
.SH Example
|
||||||
.PP
|
.PP
|
||||||
Imagine you have a tileset of census blocks, with some slightly ridiculous mangling to give each of them a single field to identify their state/county/tract/block combination:
|
Imagine you have a tileset of census blocks:
|
||||||
.PP
|
.PP
|
||||||
.RS
|
.RS
|
||||||
.nf
|
.nf
|
||||||
curl \-O http://www2.census.gov/geo/tiger/TIGER2010/TABBLOCK/2010/tl_2010_06001_tabblock10.zip
|
curl \-O http://www2.census.gov/geo/tiger/TIGER2010/TABBLOCK/2010/tl_2010_06001_tabblock10.zip
|
||||||
unzip tl_2010_06001_tabblock10.zip
|
unzip tl_2010_06001_tabblock10.zip
|
||||||
ogr2ogr \-f GeoJSON tl_2010_06001_tabblock10.json tl_2010_06001_tabblock10.shp
|
ogr2ogr \-f GeoJSON tl_2010_06001_tabblock10.json tl_2010_06001_tabblock10.shp
|
||||||
cat tl_2010_06001_tabblock10.json |
|
\&./tippecanoe \-o tl_2010_06001_tabblock10.mbtiles tl_2010_06001_tabblock10.json
|
||||||
sed 's/"STATEFP10": "\\([^"]*\\)", "COUNTYFP10": "\\([^"]*\\)", "TRACTCE10": "\\([^"]*\\)", "BLOCKCE10": "\\([^"]*\\)"/"statecountytractblock": "\\1\\2\\3\\4", &/' |
|
|
||||||
\&./tippecanoe \-o tl_2010_06001_tabblock10.mbtiles
|
|
||||||
.fi
|
.fi
|
||||||
.RE
|
.RE
|
||||||
.PP
|
.PP
|
||||||
@@ -283,7 +281,7 @@ and a CSV of their populations:
|
|||||||
curl \-O http://www2.census.gov/census_2010/01\-Redistricting_File\-\-PL_94\-171/California/ca2010.pl.zip
|
curl \-O http://www2.census.gov/census_2010/01\-Redistricting_File\-\-PL_94\-171/California/ca2010.pl.zip
|
||||||
unzip \-p ca2010.pl.zip cageo2010.pl |
|
unzip \-p ca2010.pl.zip cageo2010.pl |
|
||||||
awk 'BEGIN {
|
awk 'BEGIN {
|
||||||
print "statecountytractblock,population"
|
print "GEOID10,population"
|
||||||
}
|
}
|
||||||
(substr($0, 9, 3) == "750") {
|
(substr($0, 9, 3) == "750") {
|
||||||
print "\\"" substr($0, 28, 2) substr($0, 30, 3) substr($0, 55, 6) substr($0, 62, 4) "\\"," (0 + substr($0, 328, 9))
|
print "\\"" substr($0, 28, 2) substr($0, 30, 3) substr($0, 55, 6) substr($0, 62, 4) "\\"," (0 + substr($0, 328, 9))
|
||||||
@@ -295,7 +293,7 @@ which looks like this:
|
|||||||
.PP
|
.PP
|
||||||
.RS
|
.RS
|
||||||
.nf
|
.nf
|
||||||
statecountytractblock,population
|
GEOID10,population
|
||||||
"060014277003018",0
|
"060014277003018",0
|
||||||
"060014283014046",0
|
"060014283014046",0
|
||||||
"060014284001020",0
|
"060014284001020",0
|
||||||
@@ -312,6 +310,6 @@ Then you can join those populations to the geometries and discard the no\-longer
|
|||||||
.PP
|
.PP
|
||||||
.RS
|
.RS
|
||||||
.nf
|
.nf
|
||||||
\&./tile\-join \-o population.mbtiles \-x statecountytractblock \-c population.csv tl_2010_06001_tabblock10.mbtiles
|
\&./tile\-join \-o population.mbtiles \-x GEOID10 \-c population.csv tl_2010_06001_tabblock10.mbtiles
|
||||||
.fi
|
.fi
|
||||||
.RE
|
.RE
|
||||||
|
|||||||
Reference in New Issue
Block a user