Skip to content

Commit 64e4b62

Browse files
authored
rename pb to bin (#185)
1 parent 25a9170 commit 64e4b62

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

Diff for: .github/workflows/build-tzpb.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,5 @@ jobs:
4444
- name: Convert GeoJSON to pb
4545
run: |
4646
geojson2tzpb data/combined-with-oceans.json | xargs reducetzpb | xargs compresstzpb
47-
preindextzpb data/combined-with-oceans.reduce.pb
47+
preindextzpb data/combined-with-oceans.reduce.bin
4848
ls -alh data/

Diff for: .gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
data/*.json
2-
data/*.pb
2+
data/*.bin
33
cmd/reducePolygon/reducePolygon
44
cmd/tzjson2pb/tzjson2pb

Diff for: README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,10 @@ It is used within the `DefaultFinder`, which is built on `FuzzyFinder`, to
198198
reduce execution times of the raycasting algorithm.
199199

200200
[pb_html]: https://ringsaturn.github.io/tzf/pb.html
201-
[full-link]: https://github.com/ringsaturn/tzf-rel/blob/main/combined-with-oceans.pb
202-
[lite-link]: https://github.com/ringsaturn/tzf-rel/blob/main/combined-with-oceans.reduce.pb
203-
[preindex-link]: https://github.com/ringsaturn/tzf-rel/blob/main/combined-with-oceans.reduce.preindex.pb
204-
[compressed-link]: https://github.com/ringsaturn/tzf-rel/blob/main/combined-with-oceans.reduce.compress.pb
201+
[full-link]: https://github.com/ringsaturn/tzf-rel/blob/main/combined-with-oceans.bin
202+
[lite-link]: https://github.com/ringsaturn/tzf-rel/blob/main/combined-with-oceans.reduce.bin
203+
[preindex-link]: https://github.com/ringsaturn/tzf-rel/blob/main/combined-with-oceans.reduce.preindex.bin
204+
[compressed-link]: https://github.com/ringsaturn/tzf-rel/blob/main/combined-with-oceans.reduce.compress.bin
205205
[points_not_equal]: https://geojson.io/#id=gist:ringsaturn/2d958e7f0a279a7411c04907f255955a
206206

207207
I have written an article about the history of tzf, its Rust port, and its Rust

Diff for: cmd/compresstzpb/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func main() {
2323
}
2424
output := reduce.CompressWithPolyline(input)
2525

26-
outputPath := strings.Replace(originalProbufPath, ".pb", ".compress.pb", 1)
26+
outputPath := strings.Replace(originalProbufPath, ".bin", ".compress.bin", 1)
2727
outputBin, _ := proto.Marshal(output)
2828
f, err := os.Create(outputPath)
2929
if err != nil {

Diff for: cmd/geojson2tzpb/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func main() {
2828
if err != nil {
2929
panic(err)
3030
}
31-
outputPath := strings.Replace(jsonFilePath, ".json", ".pb", 1)
31+
outputPath := strings.Replace(jsonFilePath, ".json", ".bin", 1)
3232
outputBin, _ := proto.Marshal(output)
3333

3434
f, err := os.Create(outputPath)

Diff for: cmd/preindextzpb/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func main() {
3838
// panic(err)
3939
// }
4040

41-
outputPath := strings.Replace(originalProbufPath, ".pb", ".preindex.pb", 1)
41+
outputPath := strings.Replace(originalProbufPath, ".bin", ".preindex.bin", 1)
4242
outputBin, _ := proto.Marshal(output)
4343
f, err := os.Create(outputPath)
4444
if err != nil {

Diff for: cmd/reducetzpb/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func main() {
2929
}
3030
output := reduce.Do(input, SKIP, PRECISE, MINDISTENCE)
3131

32-
outputPath := strings.Replace(originalProbufPath, ".pb", ".reduce.pb", 1)
32+
outputPath := strings.Replace(originalProbufPath, ".bin", ".reduce.bin", 1)
3333
outputBin, _ := proto.Marshal(output)
3434
f, err := os.Create(outputPath)
3535
if err != nil {

0 commit comments

Comments
 (0)