Giter Club home page Giter Club logo

gomapinfer's People

Contributors

uakfdotb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

gomapinfer's Issues

Wrong type for return and parameters

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.