Skip to content

Commit

Permalink
Bbox cleanup (#82)
Browse files Browse the repository at this point in the history
* better help text for extract bbox arg

* remove downloader; punting on stats
  • Loading branch information
bdon authored Sep 21, 2023
1 parent c246392 commit 72a7c2a
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 241 deletions.
11 changes: 1 addition & 10 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,13 @@ var cli struct {
Output string `arg:"" help:"Output archive." type:"path"`
Bucket string `help:"Remote bucket of input archive."`
Region string `help:"local GeoJSON Polygon or MultiPolygon file for area of interest." type:"existingfile"`
Bbox string `help:"bbox area of interest" type:"string"`
Bbox string `help:"bbox area of interest: min_lon,min_lat,max_lon,max_lat" type:"string"`
Maxzoom int8 `default:-1 help:"Maximum zoom level, inclusive."`
DownloadThreads int `default:4 help:"Number of download threads."`
DryRun bool `help:"Calculate tiles to extract, but don't download them."`
Overfetch float32 `default:0.05 help:"What ratio of extra data to download to minimize # requests; 0.2 is 20%"`
} `cmd:"" help:"Create an archive from a larger archive for a subset of zoom levels or geographic region."`

Stats struct {
Input string `arg:"" type:"existingfile"`
} `cmd:"" help:"Add a vector tile statistics file (.tilestats.tsv.gz) used for further analysis with DuckDB."`

Verify struct {
Input string `arg:"" help:"Input archive." type:"existingfile"`
} `cmd:"" help:"Verifies that a local archive is valid."`
Expand Down Expand Up @@ -130,11 +126,6 @@ func main() {
if err != nil {
logger.Fatalf("Failed to extract, %v", err)
}
case "stats <input>":
err := pmtiles.Stats(logger, cli.Stats.Input)
if err != nil {
logger.Fatalf("Failed to stats archive, %v", err)
}
case "convert <input> <output>":
path := cli.Convert.Input
output := cli.Convert.Output
Expand Down
80 changes: 0 additions & 80 deletions pmtiles/downloader.go

This file was deleted.

33 changes: 0 additions & 33 deletions pmtiles/downloader_test.go

This file was deleted.

118 changes: 0 additions & 118 deletions pmtiles/stats.go

This file was deleted.

0 comments on commit 72a7c2a

Please sign in to comment.