You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got the following error when running go run scripts/preprocess-matches.go mot17 /home/ubuntu/data/
/home/ubuntu/golang/src/github.com/mitroadmaps/gomapinfer/common/graph_rtree.go:16:2: cannot use rect (type rtreego.Rect) as type *rtreego.Rect in return argument /home/ubuntu/golang/src/github.com/mitroadmaps/gomapinfer/common/graph_rtree.go:38:52: cannot use RtreegoRect(rect) (type *rtreego.Rect) as type rtreego.Rect in argument to rtree.tree.SearchIntersect /home/ubuntu/golang/src/github.com/mitroadmaps/gomapinfer/common/graph_rtree.go:41:25: impossible type assertion: *edgeSpatial does not implement rtreego.Spatial (wrong type for Bounds method) have Bounds() *rtreego.Rect want Bounds() rtreego.Rect /home/ubuntu/golang/src/github.com/mitroadmaps/gomapinfer/common/graph_rtree.go:49:33: cannot use edgeSpatial literal (type *edgeSpatial) as type rtreego.Spatial in argument to rtree.Insert: *edgeSpatial does not implement rtreego.Spatial (wrong type for Bounds method) have Bounds() *rtreego.Rect want Bounds() rtreego.Rect
Thanks
The text was updated successfully, but these errors were encountered:
It may be due to new version of github.com/dhconnelly/rtreego with different API. If you go to your GOPATH and then src/github.com/dhconnelly/rtreego/ then you can run git checkout v1.1.0 and it should work. Alternatively you can use a go.mod file to specify the version.
Dear authors,
I got the following error when running
go run scripts/preprocess-matches.go mot17 /home/ubuntu/data/
/home/ubuntu/golang/src/github.com/mitroadmaps/gomapinfer/common/graph_rtree.go:16:2: cannot use rect (type rtreego.Rect) as type *rtreego.Rect in return argument /home/ubuntu/golang/src/github.com/mitroadmaps/gomapinfer/common/graph_rtree.go:38:52: cannot use RtreegoRect(rect) (type *rtreego.Rect) as type rtreego.Rect in argument to rtree.tree.SearchIntersect /home/ubuntu/golang/src/github.com/mitroadmaps/gomapinfer/common/graph_rtree.go:41:25: impossible type assertion: *edgeSpatial does not implement rtreego.Spatial (wrong type for Bounds method) have Bounds() *rtreego.Rect want Bounds() rtreego.Rect /home/ubuntu/golang/src/github.com/mitroadmaps/gomapinfer/common/graph_rtree.go:49:33: cannot use edgeSpatial literal (type *edgeSpatial) as type rtreego.Spatial in argument to rtree.Insert: *edgeSpatial does not implement rtreego.Spatial (wrong type for Bounds method) have Bounds() *rtreego.Rect want Bounds() rtreego.Rect
Thanks
The text was updated successfully, but these errors were encountered: