GeoTrellis is a geographic data processing engine for high performance applications.
pomadchin on npm_and_yarn
pomadchin on master
Bump eventsource from 1.0.7 to … (compare)
dependabot[bot] on npm_and_yarn
Bump eventsource from 1.0.7 to … (compare)
ava.util.NoSuchElementException: Either.right.get on Left
at scala.util.Either$RightProjection.get(Either.scala:640)
at geotrellis.server.example.ndvi.NdviService.$anonfun$redQueryParamDecoder$1(NdviService.scala:55)
at cats.data.Validated.map(Validated.scala:559)
at org.http4s.QueryParamDecoder$$anon$7.decode(QueryParam.scala:205)
at org.http4s.dsl.impl.QueryParamDecoderMatcher.$anonfun$unapply$3(Path.scala:327)
at scala.Option.flatMap(Option.scala:271)
at org.http4s.dsl.impl.QueryParamDecoderMatcher.unapply(Path.scala:327)
at geotrellis.server.example.ndvi.NdviService$$anonfun$routes$1.applyOrElse(NdviService.scala:75)
at geotrellis.server.example.ndvi.NdviService$$anonfun$routes$1.applyOrElse(NdviService.scala:73)
at scala.PartialFunction$Lifted.apply(PartialFunction.scala:228)
at scala.PartialFunction$Lifted.apply(PartialFunction.scala:224)
at org.http4s.HttpRoutes$.$anonfun$of$2(HttpRoutes.scala:79)
at $anonfun$combineK$1 @ org.http4s.syntax.KleisliResponseOps.$anonfun$orNotFound$1(KleisliSyntax.scala:49)
at getOrElse @ org.http4s.syntax.KleisliResponseOps.$anonfun$orNotFound$1(KleisliSyntax.scala:49)
at main$ @ geotrellis.server.example.ndvi.NdviServer$.main(NdviServer.scala:33)
KaTeX parse error: Can't use function '$' in math mode at position 5
$ sbt
$ project ogc-example
$ run http://localhost:port/
raster and vector packages only; and without SPI usage
Sounds interesting, maybe I can cut down the geotrellis deps a bit more and do a minimal install
makes sense +
Thanks again for the gudience, I'll let you know how i go
:+1: :rocket:
Hi I want to read the RDD by time. This is my code
val attributeStore = FileAttributeStore("/Users/xugaofeng/tif/LC08TIME/123")
val layerReader = FileLayerReader(attributeStore)
val queryResult: TileLayerRDD[SpaceTimeKey] = layerReader.query[SpaceTimeKey, Tile, TileLayerMetadata[SpaceTimeKey]](LayerId("TESTTIME", 2))
.where(Between(ZonedDateTime.of(2018, 12, 27, 7, 0, 0, 0, ZoneOffset.UTC), ZonedDateTime.of(2018, 12, 28, 9, 0, 0, 0, ZoneOffset.UTC)))
.result
val maximumTemperature: RDD[(SpatialKey, Tile)] = queryResult.map { case (key, tile) => (key.getComponent[SpatialKey], tile) }.reduceByKey(_.localMax(_))
val tile = maximumTemperature.stitch()
val png = tile.renderPng(colorMapPm25)
png.write("/Users/xugaofeng/tif/LC08TIME/123/time.png")
Error message
Exception in thread "dispatcher-event-loop-1" java.lang.StackOverflowError
at com.esotericsoftware.kryo.util.ObjectMap.get(ObjectMap.java:351)
at com.esotericsoftware.kryo.util.DefaultClassResolver.getRegistration(DefaultClassResolver.java:79)
at com.esotericsoftware.kryo.Kryo.getRegistration(Kryo.java:488)
at com.esotericsoftware.kryo.util.DefaultClassResolver.writeClass(DefaultClassResolver.java:97)
at com.esotericsoftware.kryo.Kryo.writeClass(Kryo.java:540)
at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:75)
at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:508)
at com.esotericsoftware.kryo.Kryo.writeClassAndObject(Kryo.java:651)
at com.twitter.chill.Tuple2Serializer.write(TupleSerializers.scala:36)
at com.twitter.chill.Tuple2Serializer.write(TupleSerializers.scala:33)
at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:575)