mitroadmaps / gomapinfer Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hi, I recently loaded your package in another project and I get some errors when I run it.
I'm new to golang. I suspect that rtreego has related updates that modified the type of return and parameters, and this project is not adapted.
I'm wondering if there is an easy fix? Or maybe I can rolling back to a certain version of rtreego? (which version?)
Thank you so much.
Environment:
Ubuntu 20.04
go1.19.1
# github.com/mitroadmaps/gomapinfer/common
../go/src/github.com/mitroadmaps/gomapinfer/common/graph_rtree.go:16:9: cannot use rect (variable of type rtreego.Rect) as type *rtreego.Rect in return statement
../go/src/github.com/mitroadmaps/gomapinfer/common/graph_rtree.go:38:41: cannot use RtreegoRect(rect) (value of type *rtreego.Rect) as type rtreego.Rect in argument to rtree.tree.SearchIntersect
../go/src/github.com/mitroadmaps/gomapinfer/common/graph_rtree.go:41:14: impossible type assertion: spatials[i].(*edgeSpatial)
*edgeSpatial does not implement rtreego.Spatial (wrong type for Bounds method)
have Bounds() *rtreego.Rect
want Bounds() rtreego.Rect
../go/src/github.com/mitroadmaps/gomapinfer/common/graph_rtree.go:49:16: cannot use &edgeSpatial{…} (value of 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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.