Coder Social home page Coder Social logo

cartoee issue about geemap HOT 3 CLOSED

caomy7 avatar caomy7 commented on May 28, 2024
cartoee issue

from geemap.

Comments (3)

caomy7 avatar caomy7 commented on May 28, 2024

It worked before, but now it doesn't seem to work.

from geemap.

caomy7 avatar caomy7 commented on May 28, 2024

how to change the projection from 'crs': 'SR-ORG:6974' to 'crs': 'EPSG:4326'.

from geemap.

giswqs avatar giswqs commented on May 28, 2024

Please a complete script that can reproduce the issue. Incomplete script with undefined variables is not helpful.

Try the following script. If it works, then it is likely your own script problem.

import ee
import geemap
from geemap import cartoee 
import matplotlib.pyplot as plt

geemap.ee_initialize()

# get an image
srtm = ee.Image("CGIAR/SRTM90_V4")

# geospatial region in format [E,S,W,N]
region = [180, -60, -180, 85]  # define bounding box to request data
vis = {"min": 0, "max": 3000}  # define visualization parameters for image

fig = plt.figure(figsize=(15, 10))

# use cartoee to get a map
ax = cartoee.get_map(srtm, region=region, vis_params=vis)

# add a colorbar to the map using the visualization params we passed to the map
cartoee.add_colorbar(ax, vis, loc="bottom", label="Elevation", orientation="horizontal")

# add gridlines to the map at a specified interval
cartoee.add_gridlines(ax, interval=[60, 30], linestyle=":")

# add coastlines using the cartopy api
ax.coastlines(color="red")

plt.show()

from geemap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.