% make clean && time make
rm -f tile-join
go build -o tile-join main.go tile_writer.go chan_group.go model.go scanner.go util.go io_closer_cache.go neighborhood.go
./tile-join --pbf_path /Volumes/OSM\ Projects/planet-highways-200413.osm.pbf \
--out_dir ~/Desktop/planet-highways-200413-tiles \
--way_tags access --way_tags area --way_tags foot --way_tags highway --way_tags service \
--zoom 10 \
--overwrite \
--progress
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package quickselect | |
func Quickselect(data []int, k, left, right int) { | |
var t, i, j int | |
for right > left { | |
t = data[k] | |
i = left | |
j = right | |
swap(data, left, k) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"io" | |
"log" | |
"os" | |
"github.com/cheggaaa/pb/v3" | |
"github.com/paulmach/osm/osmpbf" // cgo branch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"testing" | |
"testing/quick" | |
flatbuffers "github.com/google/flatbuffers/go" | |
) | |
// TestCreateSharedStringReset ... |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commands: | |
# replaces `aws-cli/install` | |
aws_cli_install: | |
description: Install AWS CLI (from cache if possible) | |
steps: | |
- restore_cache: | |
key: awscliv2 | |
paths: | |
- /tmp/aws | |
- run: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Port of https://github.com/mapbox/concaveman/blob/6d149db46e9876b3afe2c14b4cee7d9e3997f1e1/index.js#L285-L352 | |
// | |
// function sqSegSegDist(x0, y0, x1, y1, x2, y2, x3, y3) { | |
func sqSegSegDist(x0, y0, x1, y1, x2, y2, x3, y3 float64) float64 { | |
// var ux = x1 - x0; | |
ux := x1 - x0 | |
// var uy = y1 - y0; | |
uy := y1 - y0 | |
// var vx = x3 - x2; |
NewerOlder