Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 13:55
    metasim synchronize #3433
  • Oct 27 20:47
    metasim synchronize #3433
  • Oct 27 20:45

    metasim on master

    GeoTools fork in tests Merge pull request #3434 from p… (compare)

  • Oct 27 20:45
    metasim closed #3434
  • Oct 27 19:23
    metasim synchronize #3433
  • Oct 26 19:34
    metasim synchronize #3433
  • Oct 26 13:17
    metasim synchronize #3433
  • Oct 26 12:46
    pomadchin opened #3434
  • Oct 25 20:50

    metasim on master

    Making package paths coherent i… Merge pull request #3431 from m… (compare)

  • Oct 25 20:50
    metasim closed #3431
  • Oct 25 20:31
    metasim synchronize #3433
  • Oct 25 19:42
    metasim edited #3433
  • Oct 25 19:39
    metasim opened #3433
  • Oct 25 17:11
    metasim review_requested #3431
  • Oct 25 17:11
    metasim ready_for_review #3431
  • Oct 22 13:58
    pomadchin edited #3427
  • Oct 21 17:07
    metasim commented #3427
  • Oct 21 17:03
    metasim opened #3432
  • Oct 21 17:03
    pomadchin commented #3427
  • Oct 21 17:01
    metasim reopened #3427
yang162132
@yang162132
@pomadchin
Grigory
@pomadchin
@yang162132 oh I see, the incorrect format of inputs
yang162132
@yang162132
Oh, the uri or json ?
Grigory
@pomadchin
I think it expects JSONS as an input
yea indeed also getting it
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)
btw aside of having an exception here; you have smth with your deps / jvm classpath:
KaTeX parse error: Can't use function '$' in math mode at position 5
that is not smth we bring into GT; that is smth on your host
It expects JSONs as inputs into arguments
not links to jsons
Grigory
@pomadchin
but be careful with percent ecndoing; passing jsons as arguments is not the best design decision :D
you can hijack the code and pass it inside manually for test purposes
Oh I see
Grigory
@pomadchin
have you resolved it?
yang162132
@yang162132
No,I'm trying
Grigory
@pomadchin
@yang162132 gotcha in the worst case hardcode it in the code - it is a demo app anyway
Jeroen Dries
@jdries
FYI, last week at Phi week in Rome, we released an early adopter release of a new ESA platform for EO data processing. One of the backends is built entirely with GeoTrellis (https://github.com/Open-EO/openeo-geotrellis-extensions/).
We're also giving away 3-month accounts to interested beta testers: https://openeo.cloud/early-adopters/
Grigory
@pomadchin
@jdries :tada:
Mr.Gordon
@GofferdoXu
Hey @pomadchin I want to run the ogc-example project, https://github.com/geotrellis/geotrellis-server/blob/main/ogc-example,How to write url?
Max
@Max-AR
@pomadchin Using graalvm in JIT mode (not a native binary) gave about a 7-10% boost in perf, but I wasn't able to figure out how to get a native compile working to really test the differences between java byte code and graalvms binary. Do you think it would be possible to do a native-image compile of geotrellis? (not using spark that is)
Grigory
@pomadchin
Hey @Max-AR I think I mentioned somehwere above, I don’t think it is possible right now to build native image: spark has complicated dependencies and java reflection calls, uses SPI etc
the same is applicable to some GeoTrellis dependencies (like geotools) and almost every GeoTrellis package: cassandra backend, raster package - uses SPI, etc
but what errors do you have?
I think i’ve seen before a docker image with Spark
Max
@Max-AR
Yeah do you did, that is all good. Basically just having problems finding libraries at runtime. I didn't dig too much into it cause it felt like a complete rabbit hole of complications haha, I'd need to be across the geotrellis codebase a lot better to resolve those problems, i think.
Grigory
@pomadchin
Yea; I think it is impossible
the whole point of the native image is to preload classes at the build time
Spark relies on the dynamic classload
Max
@Max-AR
Yeah exactly. I was hoping that since spark/geotrellis-spark isn't a dependency in the project I am working on right now i coud skirt the issue :D
But all good
Grigory
@pomadchin
well you can try the raster and vector packages only; and without SPI usage
:+1: good plan
btw if you will endup looking into it more dont heistate to drop stacktraces
I’m also interested in the native image so mb we can craft smth together :rocket:
hey @GofferdoXu
$ sbt
$ project ogc-example
$ run http://localhost:port/
@Max-AR oooooh one thing
an issue can be related to jts
Max
@Max-AR

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

Grigory
@pomadchin
:shrug: still worth trying you don’t really need any reflection hopefully

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 +

nice nested quotes
:D
Max
@Max-AR
:D
Grigory
@pomadchin
how deep we can go?
Max
@Max-AR

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 +
nice nested quotes
:D

A long way haha

Thanks again for the gudience, I'll let you know how i go
Grigory
@pomadchin
leo.jpg

Thanks again for the gudience, I'll let you know how i go

:+1: :rocket:

James Hughes
@jnh5y
@pomadchin what issues do you think JTS would cause with GraalVM?
Grigory
@pomadchin
@jnh5y not with GraalVM but with its Native Image https://www.graalvm.org/reference-manual/native-image/Limitations/
I think JTS uses some reflection; but mb it will 'just work'