Skip to content

Commit

Permalink
update to use paulmach/orb instead of skelterjohn/geom
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisaaronland committed Oct 7, 2021
1 parent 210dc71 commit 77cde4d
Show file tree
Hide file tree
Showing 16 changed files with 7 additions and 835 deletions.
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ require (
github.com/aaronland/go-roster v0.0.2
github.com/paulmach/orb v0.2.2
github.com/sfomuseum/go-flags v0.8.2
github.com/skelterjohn/geom v0.0.0-20180103142417-96f3e8a219c5
github.com/tidwall/gjson v1.9.2
github.com/tidwall/sjson v1.2.2
github.com/whosonfirst/go-reader v0.9.0
Expand Down
14 changes: 7 additions & 7 deletions spatial.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ package spatial

import (
"context"
"github.com/skelterjohn/geom"
"github.com/paulmach/orb"
"github.com/whosonfirst/go-whosonfirst-flags"
"github.com/whosonfirst/go-whosonfirst-spr/v2"
)

type SpatialIndex interface {
IndexFeature(context.Context, []byte) error
RemoveFeature(context.Context, int64) error
PointInPolygon(context.Context, *geom.Coord, ...Filter) (spr.StandardPlacesResults, error)
PointInPolygonCandidates(context.Context, *geom.Coord, ...Filter) ([]*PointInPolygonCandidate, error)
PointInPolygonWithChannels(context.Context, chan spr.StandardPlacesResult, chan error, chan bool, *geom.Coord, ...Filter)
PointInPolygonCandidatesWithChannels(context.Context, chan *PointInPolygonCandidate, chan error, chan bool, *geom.Coord, ...Filter)
RemoveFeature(context.Context, string) error
PointInPolygon(context.Context, orb.Point, ...Filter) (spr.StandardPlacesResults, error)
PointInPolygonCandidates(context.Context, orb.Point, ...Filter) ([]*PointInPolygonCandidate, error)
PointInPolygonWithChannels(context.Context, chan spr.StandardPlacesResult, chan error, chan bool, orb.Point, ...Filter)
PointInPolygonCandidatesWithChannels(context.Context, chan *PointInPolygonCandidate, chan error, chan bool, orb.Point, ...Filter)
Disconnect(context.Context) error
}

Expand All @@ -22,7 +22,7 @@ type PointInPolygonCandidate struct {
FeatureId string
IsAlt bool
AltLabel string
Bounds *geom.Rect
Bounds orb.Bound
}

type PropertiesResponse map[string]interface{}
Expand Down
3 changes: 0 additions & 3 deletions vendor/github.com/skelterjohn/geom/.gitignore

This file was deleted.

26 changes: 0 additions & 26 deletions vendor/github.com/skelterjohn/geom/LICENSE

This file was deleted.

Empty file.
160 changes: 0 additions & 160 deletions vendor/github.com/skelterjohn/geom/coord.go

This file was deleted.

15 changes: 0 additions & 15 deletions vendor/github.com/skelterjohn/geom/debug.go

This file was deleted.

15 changes: 0 additions & 15 deletions vendor/github.com/skelterjohn/geom/geom.go

This file was deleted.

23 changes: 0 additions & 23 deletions vendor/github.com/skelterjohn/geom/line.go

This file was deleted.

Loading

0 comments on commit 77cde4d

Please sign in to comment.