-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge AtomicMaps branch into common_core, reorg code
- Loading branch information
Showing
17 changed files
with
451 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
## Cluster Settings | ||
cluster.name: stac-cluster | ||
node.name: os01 | ||
network.host: 0.0.0.0 | ||
transport.host: 0.0.0.0 | ||
discovery.type: single-node | ||
http.port: 9202 | ||
http.cors.enabled: true | ||
http.cors.allow-headers: X-Requested-With,Content-Type,Content-Length,Accept,Authorization | ||
|
||
path: | ||
repo: | ||
- /usr/share/opensearch/snapshots | ||
|
||
# Security | ||
plugins.security.disabled: true | ||
plugins.security.ssl.http.enabled: true | ||
|
||
node.max_local_storage_nodes: 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
"""Module for geospatial processing functions. | ||
This module contains functions for transforming geospatial coordinates, | ||
such as converting bounding boxes to polygon representations. | ||
""" | ||
from typing import List | ||
|
||
|
||
def bbox2polygon(b0: float, b1: float, b2: float, b3: float) -> List[List[List[float]]]: | ||
"""Transform a bounding box represented by its four coordinates `b0`, `b1`, `b2`, and `b3` into a polygon. | ||
Args: | ||
b0 (float): The x-coordinate of the lower-left corner of the bounding box. | ||
b1 (float): The y-coordinate of the lower-left corner of the bounding box. | ||
b2 (float): The x-coordinate of the upper-right corner of the bounding box. | ||
b3 (float): The y-coordinate of the upper-right corner of the bounding box. | ||
Returns: | ||
List[List[List[float]]]: A polygon represented as a list of lists of coordinates. | ||
""" | ||
return [[[b0, b1], [b2, b1], [b2, b3], [b0, b3], [b0, b1]]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 0 additions & 25 deletions
25
stac_fastapi/elasticsearch/stac_fastapi/elasticsearch/session.py
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.