geotrellis / geotrellis-gdal

Scala wrapper around GDAL java bindings using GeoTrellis
Other
12 stars 12 forks source link

can't compile #63

Open lovelj opened 5 years ago

lovelj commented 5 years ago
geotrellis-gdal-master\gdal\src\main\scala\geotrellis\gdal\GDAL.scala:106: error: no type parameters for method foldLeftM: (f: (Option[org.gdal.gdal.Dataset], (geotrellis.gdal.GDALWarpOptions, Int)) => G[Option[org.gdal.gdal.Dataset]])(implicit G: cats.Monad[G])G[Option[org.gdal.gdal.Dataset]] exist so that it can be applied to arguments ((Option[org.gdal.gdal.Dataset], (geotrellis.gdal.GDALWarpOptions, Int)) => Product with Serializable with scala.util.Either[Option[org.gdal.gdal.Dataset],Option[org.gdal.gdal.Dataset]])
lovelj commented 5 years ago

Error:(106, 44) no type parameters for method foldLeftM: (f: (Option[org.gdal.gdal.Dataset], (geotrellis.gdal.GDALWarpOptions, Int)) => G[Option[org.gdal.gdal.Dataset]])(implicit G: cats.Monad[G])G[Option[org.gdal.gdal.Dataset]] exist so that it can be applied to arguments ((Option[org.gdal.gdal.Dataset], (geotrellis.gdal.GDALWarpOptions, Int)) => Product with Serializable with scala.util.Either[Option[org.gdal.gdal.Dataset],Option[org.gdal.gdal.Dataset]]) --- because --- argument expression's type is not compatible with formal parameter type; found : (Option[org.gdal.gdal.Dataset], (geotrellis.gdal.GDALWarpOptions, Int)) => Product with Serializable with scala.util.Either[Option[org.gdal.gdal.Dataset],Option[org.gdal.gdal.Dataset]] required: (Option[org.gdal.gdal.Dataset], (geotrellis.gdal.GDALWarpOptions, Int)) => ?G[Option[org.gdal.gdal.Dataset]] list.zipWithIndex.reverse.foldLeftM(Option.empty[Dataset]) { case (acc, (_, idx)) =>

pomadchin commented 5 years ago

Hey @lovelj how do you get this exception? Anyway we have tests launched in CI https://travis-ci.org/geotrellis/geotrellis-gdal/builds so you are welcome to look into the process of how we build it.

P.S. this is an unsupported project and it is not thread safe, please use https://github.com/locationtech/geotrellis/tree/master/gdal/src