Open lovelj opened 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)) =>
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