Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ambiguous method error when calling localMin #2467

Closed
lossyrob opened this issue Nov 2, 2017 · 1 comment
Closed

Ambiguous method error when calling localMin #2467

lossyrob opened this issue Nov 2, 2017 · 1 comment

Comments

@lossyrob
Copy link
Member

lossyrob commented Nov 2, 2017

scala> val tile = ShortConstantNoDataArrayTile(Array[Short](1,2,3,4), 2, 2)
tile: geotrellis.raster.ShortConstantNoDataArrayTile = ShortConstantNoDataArrayTile([S@16f6836b,2,2)

scala> tile.localMin
<console>:22: error: ambiguous reference to overloaded definition,
both method localMin in trait MinMethods of type (rs: Traversable[geotrellis.raster.Tile])geotrellis.raster.Tile
and  method localMin in trait MinMethods of type (r: geotrellis.raster.Tile)geotrellis.raster.Tile
match expected type ?
       tile.localMin
            ^

We should check to see where else this happens, I suspect other places where Tile and Travesable[Tile] implicit methods clash.

@lossyrob lossyrob added this to the 1.2 milestone Nov 2, 2017
@lossyrob
Copy link
Member Author

lossyrob commented Nov 2, 2017

Closing, this was due to a confusion about localMin, what we really wanted was findMinMax

@lossyrob lossyrob closed this as completed Nov 2, 2017
@lossyrob lossyrob removed this from the 1.2 milestone Nov 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant