Skip to content

Commit

Permalink
* Update to reflect backwards incompatible changes introduced in `who…
Browse files Browse the repository at this point in the history
…sonfirst/go-whosonfirst-spatial` v0.11.0 (#11)

* update vendor deps

* update cmd tools method signatures

* update vendor deps

---------

Co-authored-by: sfomuseumbot <sfomuseumbot@localhost>
  • Loading branch information
thisisaaronland and sfomuseumbot authored Nov 21, 2024
1 parent 6dc2f87 commit 8ad924d
Show file tree
Hide file tree
Showing 1,389 changed files with 318,006 additions and 348,580 deletions.
8 changes: 3 additions & 5 deletions cmd/grpc-client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,15 @@ import (
"context"
"log"

"github.com/whosonfirst/go-whosonfirst-spatial-grpc/app/client"
"github.com/whosonfirst/go-whosonfirst-spatial-grpc/app/client"
)

func main() {

ctx := context.Background()
logger := log.Default()

err := client.Run(ctx, logger)
err := client.Run(ctx)

if err != nil {
logger.Fatalf("Failed to run client, %v", err)
log.Fatalf("Failed to run client, %v", err)
}
}
13 changes: 4 additions & 9 deletions cmd/grpc-server/main.go
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
package main

import (
_ "github.com/whosonfirst/go-whosonfirst-spatial-pmtiles"
)

import (
"context"
"log"

"github.com/whosonfirst/go-whosonfirst-spatial-grpc/app/server"
"github.com/whosonfirst/go-whosonfirst-spatial-grpc/app/server"
_ "github.com/whosonfirst/go-whosonfirst-spatial-pmtiles"
)

func main() {

ctx := context.Background()
logger := log.Default()

err := server.Run(ctx, logger)
err := server.Run(ctx)

if err != nil {
logger.Fatalf("Failed to run client, %v", err)
log.Fatalf("Failed to run client, %v", err)
}
}
12 changes: 4 additions & 8 deletions cmd/http-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,18 @@ package main

import (
"context"
"log/slog"
"os"

"log"

_ "github.com/whosonfirst/go-whosonfirst-spatial-pmtiles"
"github.com/whosonfirst/go-whosonfirst-spatial-www/app/server"
)

func main() {

ctx := context.Background()
logger := slog.Default()

err := server.Run(ctx, logger)
err := server.Run(ctx)

if err != nil {
logger.Error("Failed to run server", "error", err)
os.Exit(1)
log.Fatal(err)
}
}
6 changes: 2 additions & 4 deletions cmd/pip/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@ import (
func main() {

ctx := context.Background()
logger := log.Default()

err := pip.Run(ctx, logger)
err := pip.Run(ctx)

if err != nil {
logger.Fatal(err)
log.Fatal(err)
}
}
2 changes: 1 addition & 1 deletion cmd/pmtile/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
_ "gocloud.dev/blob/fileblob"
_ "gocloud.dev/blob/s3blob"
_ "gocloud.dev/docstore/memdocstore"

"github.com/paulmach/orb/encoding/mvt"
"github.com/paulmach/orb/maptile"
"github.com/protomaps/go-pmtiles/pmtiles"
Expand Down
6 changes: 2 additions & 4 deletions cmd/update-hierarchies/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@ import (
func main() {

ctx := context.Background()
logger := log.Default()

err := update.Run(ctx, logger)
err := update.Run(ctx)

if err != nil {
logger.Fatal(err)
log.Fatal(err)
}
}
6 changes: 3 additions & 3 deletions database.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ import (
"time"

_ "github.com/aaronland/gocloud-blob/s3"
_ "github.com/whosonfirst/go-whosonfirst-spatial-sqlite"
_ "github.com/whosonfirst/go-whosonfirst-spatial-sqlite"
_ "gocloud.dev/blob/fileblob"
_ "gocloud.dev/docstore/awsdynamodb"
_ "gocloud.dev/docstore/memdocstore"

aa_docstore "github.com/aaronland/gocloud-docstore"
"github.com/jtacoma/uritemplates"
"github.com/paulmach/orb"
Expand Down Expand Up @@ -315,7 +315,7 @@ func (db *PMTilesSpatialDatabase) PointInPolygonCandidates(ctx context.Context,
}

defer db.releaseSpatialDatabase(ctx, coord)

return spatial_db.PointInPolygonCandidates(ctx, coord, filters...)
}

Expand Down
141 changes: 81 additions & 60 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,47 +1,54 @@
module github.com/whosonfirst/go-whosonfirst-spatial-pmtiles

go 1.22.3
go 1.23

require (
github.com/aaronland/gocloud-blob v0.2.0
github.com/aaronland/gocloud-docstore v0.0.5
github.com/aaronland/gocloud-blob v0.3.1
github.com/aaronland/gocloud-docstore v0.0.8
github.com/json-iterator/go v1.1.12
github.com/jtacoma/uritemplates v1.0.0
github.com/paulmach/orb v0.11.1
github.com/protomaps/go-pmtiles v1.20.1
github.com/tidwall/gjson v1.17.3
github.com/protomaps/go-pmtiles v1.22.1
github.com/tidwall/gjson v1.18.0
github.com/tidwall/sjson v1.2.5
github.com/whosonfirst/go-ioutil v1.0.2
github.com/whosonfirst/go-reader v1.0.2
github.com/whosonfirst/go-whosonfirst-feature v0.0.28
github.com/whosonfirst/go-whosonfirst-spatial v0.10.1
github.com/whosonfirst/go-whosonfirst-spatial-grpc v0.1.2
github.com/whosonfirst/go-whosonfirst-spatial-sqlite v0.9.1
github.com/whosonfirst/go-whosonfirst-spatial-www v0.2.0
github.com/whosonfirst/go-whosonfirst-spatial v0.11.0
github.com/whosonfirst/go-whosonfirst-spatial-grpc v0.2.1
github.com/whosonfirst/go-whosonfirst-spatial-sqlite v0.10.0
github.com/whosonfirst/go-whosonfirst-spatial-www v0.3.1
github.com/whosonfirst/go-whosonfirst-spr/v2 v2.3.7
github.com/whosonfirst/go-whosonfirst-uri v1.3.0
gocloud.dev v0.38.0
gocloud.dev v0.40.0
)

require (
cloud.google.com/go v0.115.0 // indirect
cloud.google.com/go/auth v0.8.1 // indirect
cloud.google.com/go/auth/oauth2adapt v0.2.4 // indirect
cloud.google.com/go/compute/metadata v0.5.0 // indirect
cloud.google.com/go/iam v1.1.13 // indirect
cloud.google.com/go/storage v1.43.0 // indirect
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.14.0 // indirect
github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0 // indirect
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.3.2 // indirect
github.com/NYTimes/gziphandler v1.1.1 // indirect
github.com/RoaringBitmap/roaring v1.5.0 // indirect
github.com/aaronland/go-artisanal-integers v0.9.1 // indirect
github.com/aaronland/go-aws-auth v1.6.3 // indirect
github.com/aaronland/go-aws-dynamodb v0.0.5 // indirect
github.com/aaronland/go-aws-dynamodb v0.3.0 // indirect
github.com/aaronland/go-aws-session v0.2.1 // indirect
github.com/aaronland/go-brooklynintegers-api v1.2.7 // indirect
github.com/aaronland/go-http-bootstrap v0.4.0 // indirect
github.com/aaronland/go-http-leaflet v0.4.0 // indirect
github.com/aaronland/go-http-maps v0.3.2 // indirect
github.com/aaronland/go-http-bootstrap v0.5.0 // indirect
github.com/aaronland/go-http-leaflet v0.5.0 // indirect
github.com/aaronland/go-http-maps v0.4.0 // indirect
github.com/aaronland/go-http-ping/v2 v2.0.0 // indirect
github.com/aaronland/go-http-rewrite v1.1.0 // indirect
github.com/aaronland/go-http-sanitize v0.0.8 // indirect
github.com/aaronland/go-http-server v1.4.1 // indirect
github.com/aaronland/go-http-server v1.5.0 // indirect
github.com/aaronland/go-http-static v0.0.3 // indirect
github.com/aaronland/go-http-tangramjs v0.3.0 // indirect
github.com/aaronland/go-json-query v0.1.4 // indirect
github.com/aaronland/go-log/v2 v2.0.0 // indirect
github.com/aaronland/go-json-query v0.1.5 // indirect
github.com/aaronland/go-pagination v0.2.0 // indirect
github.com/aaronland/go-pagination-sql v0.2.0 // indirect
github.com/aaronland/go-pool/v2 v2.0.0 // indirect
Expand All @@ -51,33 +58,35 @@ require (
github.com/aaronland/go-string v1.0.0 // indirect
github.com/aaronland/go-uid v0.4.0 // indirect
github.com/aaronland/go-uid-artisanal v0.0.4 // indirect
github.com/aaronland/go-uid-proxy v0.2.0 // indirect
github.com/aaronland/go-uid-proxy v0.3.0 // indirect
github.com/aaronland/go-uid-whosonfirst v0.0.5 // indirect
github.com/akrylysov/algnhsa v1.1.0 // indirect
github.com/aws/aws-lambda-go v1.47.0 // indirect
github.com/aws/aws-sdk-go v1.51.30 // indirect
github.com/aws/aws-sdk-go-v2 v1.30.3 // indirect
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.2 // indirect
github.com/aws/aws-sdk-go v1.55.5 // indirect
github.com/aws/aws-sdk-go-v2 v1.30.4 // indirect
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.4 // indirect
github.com/aws/aws-sdk-go-v2/config v1.27.27 // indirect
github.com/aws/aws-sdk-go-v2/credentials v1.17.27 // indirect
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.11 // indirect
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.16.15 // indirect
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.15 // indirect
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.15 // indirect
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.17.10 // indirect
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.16 // indirect
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.16 // indirect
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 // indirect
github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.5 // indirect
github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.16 // indirect
github.com/aws/aws-sdk-go-v2/service/cognitoidentity v1.25.5 // indirect
github.com/aws/aws-sdk-go-v2/service/dynamodb v1.34.5 // indirect
github.com/aws/aws-sdk-go-v2/service/iam v1.34.3 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.3 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.3.7 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.17 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.17.5 // indirect
github.com/aws/aws-sdk-go-v2/service/s3 v1.53.1 // indirect
github.com/aws/aws-sdk-go-v2/service/ssm v1.52.3 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.4 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.3.18 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.9.17 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.18 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.17.16 // indirect
github.com/aws/aws-sdk-go-v2/service/s3 v1.59.0 // indirect
github.com/aws/aws-sdk-go-v2/service/ssm v1.52.4 // indirect
github.com/aws/aws-sdk-go-v2/service/sso v1.22.4 // indirect
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.26.4 // indirect
github.com/aws/aws-sdk-go-v2/service/sts v1.30.3 // indirect
github.com/aws/smithy-go v1.20.3 // indirect
github.com/aws/smithy-go v1.20.4 // indirect
github.com/benbjohnson/clock v1.3.0 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/bits-and-blooms/bitset v1.2.0 // indirect
Expand All @@ -86,21 +95,25 @@ require (
github.com/dhconnelly/rtreego v1.2.0 // indirect
github.com/dominikbraun/graph v0.23.0 // indirect
github.com/dustin/go-humanize v1.0.1 // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/g8rswimmer/error-chain v1.0.0 // indirect
github.com/go-ini/ini v1.67.0 // indirect
github.com/go-logr/logr v1.4.2 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/google/s2a-go v0.1.8 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/google/wire v0.6.0 // indirect
github.com/googleapis/gax-go/v2 v2.12.4 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect
github.com/googleapis/gax-go/v2 v2.13.0 // indirect
github.com/hashicorp/errwrap v1.0.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-runewidth v0.0.14 // indirect
github.com/mattn/go-sqlite3 v1.14.16 // indirect
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
Expand All @@ -116,34 +129,33 @@ require (
github.com/prometheus/common v0.48.0 // indirect
github.com/prometheus/procfs v0.12.0 // indirect
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
github.com/rivo/uniseg v0.4.3 // indirect
github.com/rs/cors v1.11.0 // indirect
github.com/rivo/uniseg v0.2.0 // indirect
github.com/rs/cors v1.11.1 // indirect
github.com/schollz/progressbar/v3 v3.13.1 // indirect
github.com/sfomuseum/go-edtf v1.2.1 // indirect
github.com/sfomuseum/go-flags v0.10.0 // indirect
github.com/sfomuseum/go-http-auth v0.11.0 // indirect
github.com/sfomuseum/go-http-protomaps v0.2.0 // indirect
github.com/sfomuseum/go-http-rollup v0.0.2 // indirect
github.com/sfomuseum/go-http-protomaps v0.3.0 // indirect
github.com/sfomuseum/go-http-rollup v0.0.3 // indirect
github.com/sfomuseum/go-sfomuseum-mapshaper v0.0.3 // indirect
github.com/sfomuseum/go-sfomuseum-pmtiles v1.2.0 // indirect
github.com/sfomuseum/go-template v1.8.0 // indirect
github.com/sfomuseum/go-timings v1.3.0 // indirect
github.com/sfomuseum/go-sfomuseum-pmtiles v1.4.1 // indirect
github.com/sfomuseum/go-template v1.10.0 // indirect
github.com/sfomuseum/go-timings v1.4.0 // indirect
github.com/sfomuseum/iso8601duration v1.1.0 // indirect
github.com/sfomuseum/runtimevar v1.1.2 // indirect
github.com/sfomuseum/runtimevar v1.2.0 // indirect
github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e // indirect
github.com/tdewolff/minify/v2 v2.19.10 // indirect
github.com/tdewolff/parse/v2 v2.6.8 // indirect
github.com/tdewolff/minify/v2 v2.20.32 // indirect
github.com/tdewolff/parse/v2 v2.7.14 // indirect
github.com/tidwall/match v1.1.1 // indirect
github.com/tidwall/pretty v1.2.0 // indirect
github.com/tilezen/go-tilepacks v0.0.0-20230902185537-9a48755ab988 // indirect
github.com/whosonfirst/go-rfc-5646 v0.1.0 // indirect
github.com/whosonfirst/go-sanitize v0.1.0 // indirect
github.com/whosonfirst/go-whosonfirst-crawl v0.2.2 // indirect
github.com/whosonfirst/go-whosonfirst-export/v2 v2.8.2 // indirect
github.com/whosonfirst/go-whosonfirst-export/v2 v2.8.3 // indirect
github.com/whosonfirst/go-whosonfirst-flags v0.5.2 // indirect
github.com/whosonfirst/go-whosonfirst-format v0.4.1 // indirect
github.com/whosonfirst/go-whosonfirst-id v1.2.4 // indirect
github.com/whosonfirst/go-whosonfirst-iterate/v2 v2.4.1 // indirect
github.com/whosonfirst/go-whosonfirst-id v1.2.5 // indirect
github.com/whosonfirst/go-whosonfirst-iterate/v2 v2.5.0 // indirect
github.com/whosonfirst/go-whosonfirst-names v0.1.0 // indirect
github.com/whosonfirst/go-whosonfirst-placetypes v0.7.3 // indirect
github.com/whosonfirst/go-whosonfirst-reader v1.0.2 // indirect
Expand All @@ -156,20 +168,29 @@ require (
github.com/whosonfirst/go-writer-featurecollection/v3 v3.0.0-20220916180959-42588e308a3e // indirect
github.com/whosonfirst/go-writer/v3 v3.1.1 // indirect
github.com/whosonfirst/walk v0.0.2 // indirect
github.com/whosonfirst/warning v0.1.1 // indirect
go.mongodb.org/mongo-driver v1.11.4 // indirect
go.opencensus.io v0.24.0 // indirect
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.53.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.53.0 // indirect
go.opentelemetry.io/otel v1.28.0 // indirect
go.opentelemetry.io/otel/metric v1.28.0 // indirect
go.opentelemetry.io/otel/trace v1.28.0 // indirect
go.uber.org/ratelimit v0.3.0 // indirect
golang.org/x/net v0.26.0 // indirect
golang.org/x/sync v0.7.0 // indirect
golang.org/x/sys v0.21.0 // indirect
golang.org/x/term v0.21.0 // indirect
golang.org/x/text v0.16.0 // indirect
golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect
google.golang.org/api v0.180.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240528184218-531527333157 // indirect
google.golang.org/grpc v1.65.0 // indirect
google.golang.org/protobuf v1.34.2 // indirect
golang.org/x/crypto v0.27.0 // indirect
golang.org/x/net v0.29.0 // indirect
golang.org/x/oauth2 v0.23.0 // indirect
golang.org/x/sync v0.8.0 // indirect
golang.org/x/sys v0.25.0 // indirect
golang.org/x/term v0.24.0 // indirect
golang.org/x/text v0.18.0 // indirect
golang.org/x/time v0.6.0 // indirect
golang.org/x/xerrors v0.0.0-20240716161551-93cc26a95ae9 // indirect
google.golang.org/api v0.191.0 // indirect
google.golang.org/genproto v0.0.0-20240812133136-8ffd90a71988 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240903143218-8af14fe29dc1 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 // indirect
google.golang.org/grpc v1.68.0 // indirect
google.golang.org/protobuf v1.35.2 // indirect
modernc.org/gc/v3 v3.0.0-20240107210532-573471604cb6 // indirect
modernc.org/libc v1.41.0 // indirect
modernc.org/mathutil v1.6.0 // indirect
Expand Down
Loading

0 comments on commit 8ad924d

Please sign in to comment.