kmarkert / earthengine.jl Goto Github PK
View Code? Open in Web Editor NEWGoogle Earth Engine in Julia
Home Page: https://kmarkert.github.io/EarthEngine.jl/dev/
License: MIT License
Google Earth Engine in Julia
Home Page: https://kmarkert.github.io/EarthEngine.jl/dev/
License: MIT License
How can I import and display a local shapefile (.shp) into Google Earth Engine using EarthEngine.jl, is there a function for that?
The last part is failing, specifically:
getThumbURL(composite, Dict(
:bands => "B7,B5,B3",
:min => 0.05,
:max => 0.55,
:gamma => 1.5,
:region => region,
:dimensions => 1024
))
The error is:
WARNING: both EarthEngine and Base export "Dict"; uses of it in module Main must be qualified
ERROR: UndefVarError: `Dict` not defined
Stacktrace:
[1] top-level scope
@ ~/DataSci/LandsatComposites/composite.jl:55
Using the following:
getThumbURL(composite, EarthEngine.Dict(
:bands => "B7,B5,B3",
:min => 0.05,
:max => 0.55,
:gamma => 1.5,
:region => region,
:dimensions => 1024
))
gives the following python error:
ERROR: PyError ($(Expr(:escape, :(ccall(#= /home/tpoisot/.julia/packages/PyCall/ilqDX/src/pyfncall.jl:43 =# @pysym(:PyObject_Call), PyPtr, (PyPtr, PyPtr, PyPtr), o, pyargsptr, kw))))) <class 'TypeError'>
TypeError('Type Dict cannot be instantiated; use dict() instead')
File "/home/tpoisot/.julia/conda/3/x86_64/lib/python3.10/typing.py", line 955, in __call__
raise TypeError(f"Type {self._name} cannot be instantiated; "
Output of versioninfo()
:
julia> versioninfo()
Julia Version 1.9.3
Commit bed2cd540a1 (2023-08-24 14:43 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: 8 ร Intel(R) Core(TM) i7-8665U CPU @ 1.90GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-14.0.6 (ORCJIT, skylake)
Threads: 6 on 8 virtual cores
Environment:
JULIA_EDITOR = code
JULIA_NUM_THREADS = 6
Output of ]st
:
(LandsatComposites) pkg> st
Status `~/DataSci/LandsatComposites/Project.toml`
[8f4d0f93] Conda v1.9.1
[e0774970] EarthEngine v0.3.2
[438e738f] PyCall v1.96.1
This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml
to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix
on this issue.
I'll open a PR within a few hours, please be patient!
It looks like https://github.com/JuliaPackaging/BinDeps.jl might be able to take care of installing the API python wrapper, which would remove the need for manual installation.
I would be happy to open a PR.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.