Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/gee-community/geemap
/ functions
Functions
2,016 in github.com/gee-community/geemap
⨍
Functions
2,016
◇
Types & classes
171
↳
Endpoints
78
↓ 5 callers
Method
_handle_message_event
( self, widget: ipywidgets.Widget, content: dict[str, Any], buffers: list[Any] )
geemap/map_widgets.py:960
↓ 5 callers
Method
add_html
Add HTML to the map. Args: html: The HTML to add. position: The position of the widget.
geemap/foliumap.py:2906
↓ 5 callers
Method
add_tile_layer
Adds a TileLayer to the map. Args: url: The URL of the tile layer. name: Name of the layer. attribution:
geemap/plotlymap.py:390
↓ 5 callers
Method
add_tile_layer
Add a XYZ tile layer to the map. Args: tiles: The URL of the XYZ tile service. name: The layer name to use on the lay
geemap/foliumap.py:534
↓ 5 callers
Method
center_object
Centers the map view on a given object. Args: ee_object: The Earth Engine object to center on. zoom: Zoom level to se
geemap/core.py:756
↓ 5 callers
Method
count
Returns the number of geometries.
geemap/core.py:90
↓ 5 callers
Function
create_timelapse
Create a timelapse from any ee.ImageCollection. Args: collection: The collection of images to create a timeseries from. It ca
geemap/timelapse.py:833
↓ 5 callers
Function
download_ee_image
Download an Earth Engine Image as a GeoTIFF. Images larger than the `Earth Engine size limit are split and downloaded as separate tiles, then
geemap/common.py:12241
↓ 5 callers
Function
ee_export_vector
Exports Earth Engine FeatureCollection to other formats. Includes shp, csv, json, kml, and kmz. Args: ee_object: ee.FeatureCollectio
geemap/common.py:903
↓ 5 callers
Function
ee_to_df
Converts an ee.FeatureCollection to pandas dataframe. Args: ee_object (ee.FeatureCollection): ee.FeatureCollection. columns (list
geemap/common.py:8844
↓ 5 callers
Function
ee_user_id
Gets Earth Engine account user id. Returns: A string containing the user id.
geemap/common.py:4535
↓ 5 callers
Function
find_matching_bracket
Finds the position of the matching closing bracket from a list of lines. Args: lines: The input list of lines. start_line_index:
geemap/conversion.py:34
↓ 5 callers
Function
fmask
(img)
geemap/timelapse.py:1854
↓ 5 callers
Method
get
(key: K)
tests/fake_anywidget.ts:11
↓ 5 callers
Method
getMapId
(self, *_, **__)
tests/fake_ee.py:17
↓ 5 callers
Function
get_image_collection_thumbnails
Download thumbnails for all images in an ImageCollection. Args: ee_object (object): The ee.ImageCollection instance. out_dir ([st
geemap/common.py:2670
↓ 5 callers
Function
landsat_timeseries
Generates an annual Landsat ImageCollection. Adapted from https://gist.github.com/jdbcode/76b9ac49faf51627ebd3ff988e10adbc by Justin Braaten.
geemap/timelapse.py:1983
↓ 5 callers
Function
make_gif
Creates a gif from a list of images. Args: images: The list of images or input directory to create the gif from. out_gif: File pa
geemap/timelapse.py:130
↓ 5 callers
Function
new_tree_node
Returns node JSON for an interactive representation of an EE ComputedObject.
geemap/coreutils.py:121
↓ 5 callers
Method
on_submit
(widget)
geemap/ai.py:666
↓ 5 callers
Function
py_to_ipynb_dir
Converts EE Python scripts in a folder recursively to Jupyter notebooks. Args: in_dir: Input folder containing Earth Engine Python script
geemap/conversion.py:1088
↓ 5 callers
Method
render
()
js/legend.ts:101
↓ 5 callers
Method
setUp
(self)
tests/test_map_widgets.py:33
↓ 5 callers
Function
shp_to_geojson
Converts a shapefile to GeoJSON. Args: in_shp (str): File path of the input shapefile. filename (str, optional): File path of the
geemap/common.py:2436
↓ 4 callers
Method
__init__
(self, **kwargs)
geemap/foliumap.py:55
↓ 4 callers
Function
_get_colormaps
Gets the list of available colormaps.
tests/test_map_widgets.py:20
↓ 4 callers
Method
_on_draw
Mimics the ipyleaflet DrawControl handler.
tests/test_core.py:401
↓ 4 callers
Method
_redraw_layer
Redraws the layer on the map.
geemap/core.py:225
↓ 4 callers
Method
_validate_row
( self, index: int, name: str, visible: bool, opacity: float )
tests/test_map_widgets.py:705
↓ 4 callers
Method
add_basemap
Adds a basemap to the map. Args: basemap: Can be one of string from pydeck_basemaps.
geemap/deck.py:217
↓ 4 callers
Method
add_geojson
Adds a GeoJSON file to the map. Args: in_geojson: The file path or http URL to the input GeoJSON or a dictionary
geemap/kepler.py:96
↓ 4 callers
Method
add_layer
Add a layer to the map. Args: layer (pydeck.Layer): A pydeck Layer object. layer_name: Sets the layer 'id' for the py
geemap/deck.py:108
↓ 4 callers
Method
add_source
Adds a source to the map. Args: id: The ID of the source. source: The source data. .
geemap/maplibregl.py:374
↓ 4 callers
Method
add_vector
Adds a vector file to the map. Args: filename: The input file path to the vector dataset. layer_name: The layer name
geemap/deck.py:325
↓ 4 callers
Method
centroid
(self, *_, **__)
tests/fake_ee.py:107
↓ 4 callers
Method
clear_layers
Clears all layers from the map. Args: clear_basemap: If True, clears the basemap.
geemap/plotlymap.py:286
↓ 4 callers
Method
datetime_interval
Returns datetime objects representing temporal extents. Returns: An iterable of tuples representing temporal extents. Ra
geemap/ai.py:941
↓ 4 callers
Function
execute_notebook_dir
Executes all notebooks in the given directory recursively and saves output cells. Args: in_dir: Input folder containing notebooks.
geemap/conversion.py:1143
↓ 4 callers
Method
filter_by_ids
Returns a sublist with only the collections matching the given ids.
geemap/ai.py:1110
↓ 4 callers
Method
find_layer_index
Finds the index of a layer. Args: name: Name of the layer to find. Returns: Index of the layer.
geemap/plotlymap.py:333
↓ 4 callers
Function
gdf_to_geojson
Converts a GeoDataFame to GeoJSON. Args: gdf (GeoDataFrame): A GeoPandas GeoDataFrame. out_geojson (str, optional): File path to
geemap/common.py:10272
↓ 4 callers
Function
get_basemap
Returns a basemap tile layer by name. Args: name: The name of the basemap.
geemap/geemap.py:5206
↓ 4 callers
Function
get_js_examples
Gets Earth Engine JavaScript examples from the geemap package. Args: out_dir: The folder to copy the JavaScript examples to. Returns
geemap/conversion.py:899
↓ 4 callers
Function
is_tool
Check whether `name` is on PATH and marked as executable.
geemap/common.py:1813
↓ 4 callers
Function
js_to_python_dir
Converts EE JavaScript files in a folder recursively to Python scripts. Args: in_dir: The input folder containing Earth Engine JavaScript
geemap/conversion.py:826
↓ 4 callers
Function
osm_gdf_from_bbox
Create a GeoDataFrame of OSM entities within a N, S, E, W bounding box. Args: north: Northern latitude of bounding box. south: So
geemap/osm.py:354
↓ 4 callers
Function
read_postgis
Reads data from a PostGIS database and returns a GeoDataFrame. Args: sql: SQL query to execute in selecting entries from database, or nam
geemap/common.py:10762
↓ 4 callers
Method
refresh_layers
Refresh the layers in the layer manager. Uses the map interface to pull active layers. This function must be called whenever a layer
geemap/map_widgets.py:804
↓ 4 callers
Method
remove_geometry
Removes a geometry from the draw control. Args: geometry: The geometry to remove.
geemap/core.py:109
↓ 4 callers
Function
search_qms
Search qms files for keywords. Reference: https://github.com/geopandas/xyzservices/issues/65 Args: keywords: Keywords to search for.
geemap/basemaps.py:581
↓ 4 callers
Function
sentinel2_timeseries
Generates an annual Sentinel 2 ImageCollection. This algorithm is adapted from https://gist.github.com/jdbcode/76b9ac49faf51627ebd3ff988e10ad
geemap/timelapse.py:1569
↓ 4 callers
Function
set_doys
(collection)
geemap/chart.py:1210
↓ 4 callers
Method
set_paint_property
Set the opacity of a layer. This method sets the opacity of the specified layer to the specified value. Args: name: The
geemap/maplibregl.py:1224
↓ 4 callers
Function
stac_bounds
Get the bounding box of a single SpatialTemporal Asset Catalog (STAC) item. Args: url: HTTP URL to a STAC item, e.g., https:/
geemap/common.py:5761
↓ 4 callers
Function
stac_tile
Get a tile layer from a single SpatialTemporal Asset Catalog (STAC) item. Args: url: HTTP URL to a STAC item, e.g., https://c
geemap/common.py:5623
↓ 3 callers
Method
_can_set_up_jslink
(self, obj: Any, trait: str)
geemap/map_widgets.py:716
↓ 3 callers
Method
_get_preferred_basemap_name
Returns the aliased basemap name. Args: basemap_name: The name of the basemap. Returns: The aliased basemap
geemap/core.py:1374
↓ 3 callers
Function
_get_tile_url_format
Returns the tile URL format for an EE object. Args: ee_object: The EE object. vis_params: The visualization parameters.
geemap/ee_tile_layers.py:19
↓ 3 callers
Method
_hex_with_opacity
Adds opacity to a hex string (e.g. #000000 to #000000FF).
geemap/map_widgets.py:1086
↓ 3 callers
Function
_read_json_file
(path: str)
tests/test_coreutils.py:28
↓ 3 callers
Method
_set_plt_options
Set the title and labels for the chart.
geemap/chart.py:253
↓ 3 callers
Method
add_controls
Adds a list of controls to the map. Args: controls (Union[List[Any], Any]): A list of controls or a single contro
geemap/geemap.py:317
↓ 3 callers
Method
add_geojson
Adds a GeoJSON layer to the map. This method adds a GeoJSON layer to the map. The GeoJSON data can be a URL to a GeoJSON file or a Ge
geemap/maplibregl.py:520
↓ 3 callers
Method
add_html
Add HTML content to the map. This method allows for the addition of arbitrary HTML content to the map, which can be used to display c
geemap/maplibregl.py:2222
↓ 3 callers
Method
add_layer_control
Adds layer control to the map.
geemap/foliumap.py:438
↓ 3 callers
Method
add_raster
Add a local raster dataset to the map. If you are using this function in JupyterHub on a remote server (e.g., Binder, Microsoft Planetary Com
geemap/geemap.py:2439
↓ 3 callers
Function
add_sample_markers_to_gif
Add sample point markers to a GIF. Args: in_gif (str): Path to input GIF file out_gif (str): Path to output GIF file samp
geemap/timelapse.py:5808
↓ 3 callers
Function
adjust_longitude
Adjusts longitude if it is less than -180 or greater than 180. Args: in_fc (dict): The input dictionary containing coordinates. Retu
geemap/common.py:6553
↓ 3 callers
Function
applyScaleAndOffset
(img)
geemap/timelapse.py:3814
↓ 3 callers
Function
array_to_image
Save a NumPy array as a GeoTIFF using the projection information from an existing GeoTIFF file. Args: array: The NumPy array to be saved
geemap/common.py:15074
↓ 3 callers
Method
clear_controls
Removes all controls from the map.
geemap/plotlymap.py:157
↓ 3 callers
Function
combine_gif_with_chart
Combine GIF with chart frames.
geemap/timelapse.py:6139
↓ 3 callers
Function
csv_to_geojson
Creates points for a CSV file and exports data as a GeoJSON. Args: in_csv (str): The file path to the input CSV file. out_geojson
geemap/common.py:2245
↓ 3 callers
Function
days_between
(d1, d2)
geemap/timelapse.py:1804
↓ 3 callers
Method
delete
(self, i)
tests/test_core.py:418
↓ 3 callers
Function
ee_to_geojson
Converts Earth Engine object to geojson. Args: ee_object (object): An Earth Engine object. filename: The file path to save the ge
geemap/common.py:2385
↓ 3 callers
Method
first
(self, *_, **__)
tests/fake_ee.py:166
↓ 3 callers
Function
gaussian
(x: float, a: float, b: float, c: float, d: float = 0)
geemap/common.py:3433
↓ 3 callers
Function
get_bounds
Bounding box of a GeoJSON geometry, GeometryCollection, or FeatureCollection. left, bottom, right, top *not* xmin, ymin, xmax, ymax If
geemap/common.py:6362
↓ 3 callers
Method
get_bounds
Returns the bounds of the current map view. Args: as_geojson: If true, returns map bounds as GeoJSON. Returns:
geemap/core.py:689
↓ 3 callers
Method
get_center
Returns the current center of the map (lat, lon).
geemap/core.py:685
↓ 3 callers
Function
get_env_var
Returns an environment variable or Colab secret for the given key. Colab secrets have precedence over environment variables. Args: k
geemap/coreutils.py:24
↓ 3 callers
Function
get_layer_name_and_ee_object
()
geemap/toolbar.py:584
↓ 3 callers
Function
get_palette
Returns a palette of hex colors from a matplotlib colormap. WARNING: This function is inconsistent with how it handles hashes in the color na
geemap/colormaps.py:72
↓ 3 callers
Method
get_scale
Returns the approximate pixel scale of the current map view in meters.
geemap/core.py:713
↓ 3 callers
Method
get_style_layers
Get the names of the basemap layers. Returns: The names of the basemap layers.
geemap/maplibregl.py:2115
↓ 3 callers
Method
get_ylim
Gets the y-axis limits for the bar chart. Returns: The minimum and maximum y-axis limits.
geemap/chart.py:580
↓ 3 callers
Method
get_zoom
Returns the current zoom level of the map.
geemap/core.py:677
↓ 3 callers
Method
hasChildren
()
js/tree_node.ts:88
↓ 3 callers
Function
image_dates
Get image dates of all images in an ImageCollection. Args: img_col (object): ee.ImageCollection date_format (str, optional): A pa
geemap/common.py:7114
↓ 3 callers
Function
image_max_value
Retrieves the maximum value of an image. Args: img (object): The image to calculate the maximum value. region (object, optional):
geemap/common.py:7220
↓ 3 callers
Function
image_min_value
Retrieves the minimum value of an image. Args: img (object): The image to calculate the minimum value. region (object, optional):
geemap/common.py:7250
↓ 3 callers
Function
image_value_list
Get the unique values of an image. Args: img (ee.Image): The image to calculate the unique values. region (ee.Geometry | ee.Featu
geemap/common.py:7362
↓ 3 callers
Function
in_colab_shell
Returns True if the code is running in a Google Colab environment.
geemap/coreutils.py:352
↓ 3 callers
Function
list_colormaps
Returns a list of all the available colormap names. See a complete lost of colormaps: https://matplotlib.org/stable/tutorials/colors/col
geemap/colormaps.py:150
↓ 3 callers
Function
list_to_ee
(a_list)
geemap/common.py:2868
↓ 3 callers
Function
osm_gdf_from_address
Create GeoDataFrame of OSM entities within some distance N, S, E, W of address. Args: address: The address to geocode and use as the cent
geemap/osm.py:24
↓ 3 callers
Function
osm_gdf_from_geocode
Retrieves place(s) by name or ID from the Nominatim API as a GeoDataFrame. Args: query (str | dict | list): Query string(s) or structured
geemap/osm.py:473
↓ 3 callers
Function
osm_gdf_from_place
Create GeoDataFrame of OSM entities within boundaries of geocodable place(s). Args: query (str | dict | list): Query string(s) or structu
geemap/osm.py:104
↓ 3 callers
Function
osm_gdf_from_point
Create GeoDataFrame of OSM entities within some distance N, S, E, W of a point. Args: center_point: The (lat, lng) center point around wh
geemap/osm.py:193
← previous
next →
101–200 of 2,016, ranked by callers