Skip to content

Added stac search notebook example#354

Merged
giswqs merged 2 commits into
masterfrom
stac-search
Jan 31, 2023
Merged

Added stac search notebook example#354
giswqs merged 2 commits into
masterfrom
stac-search

Conversation

@giswqs
Copy link
Copy Markdown
Member

@giswqs giswqs commented Jan 31, 2023

This PR adds a stac search notebook example. Search results can be returned in different formats.

import leafmap
url = 'https://earth-search.aws.element84.com/v1/'
collection = 'sentinel-2-l2a'
time_range = "2020-12-01/2020-12-31"
bbox = [-122.2751, 47.5469, -121.9613, 47.7458]
search = leafmap.stac_search(
    url=url,
    bbox=bbox,
    datetime=time_range,
    max_items=10,
    get_collection=True,
)
search

@giswqs giswqs merged commit 0c64dc5 into master Jan 31, 2023
@giswqs giswqs deleted the stac-search branch January 31, 2023 20:44
Comment thread leafmap/common.py
video_id = re.match("^[^v]+v=(.{11}).*", url).group(1)
except:

if "youtube.com" in url or "youtu.be" in url:

Check failure

Code scanning / CodeQL

Incomplete URL substring sanitization

The string [youtube.com](1) may be at an arbitrary position in the sanitized URL.
Comment thread leafmap/common.py
except:

if "youtube.com" in url or "youtu.be" in url:
if "youtube.com" in url:

Check failure

Code scanning / CodeQL

Incomplete URL substring sanitization

The string [youtube.com](1) may be at an arbitrary position in the sanitized URL.
sthagen pushed a commit to sthagen/giswqs-leafmap that referenced this pull request Feb 18, 2023
* Added stac search notebook example

* Removed LGTM

Former-commit-id: 0c64dc5
sthagen pushed a commit to sthagen/giswqs-leafmap that referenced this pull request Jul 10, 2024
* Added stac search notebook example

* Removed LGTM

Former-commit-id: 3eafe48
kuzja111 pushed a commit to kuzja111/leafmap that referenced this pull request Jul 25, 2024
* Added stac search notebook example

* Removed LGTM

Former-commit-id: fc3e216
giswqs added a commit that referenced this pull request Dec 6, 2025
* Added stac search notebook example

* Removed LGTM

Former-commit-id: f46a5b85b612ea36e10bd077b9a5011af0a57c2e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants