Skip to content

Commit

Permalink
untested ❗️ - kamangir/bolt#746
Browse files Browse the repository at this point in the history
  • Loading branch information
kamangir committed Aug 5, 2024
1 parent 1e2ed73 commit b0b0d0d
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ pip install blue-geo
To use on [AWS SageMaker](https://aws.amazon.com/sagemaker/) replace `<plugin-name>` with the name of the plugin and follow [these instructions](https://github.com/kamangir/notebooks-and-scripts/blob/main/SageMaker.md).

---
built by [`abcli-9.188.1-current`](https://github.com/kamangir/awesome-bash-cli), based on [`blue_geo-4.180.1`](https://github.com/kamangir/blue-geo).
built by [`abcli-9.188.1-current`](https://github.com/kamangir/awesome-bash-cli), based on [`blue_geo-4.181.1`](https://github.com/kamangir/blue-geo).
2 changes: 1 addition & 1 deletion blue_geo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

DESCRIPTION = f"{ICON} AI for precise geospatial data analysis and visualization."

VERSION = "4.180.1"
VERSION = "4.181.1"

REPO_NAME = "blue-geo"

Expand Down
8 changes: 7 additions & 1 deletion blue_geo/catalog/classes.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
from typing import List, Type, Union
from blue_geo.catalog.firms import FirmsCatalog
from blue_geo.catalog.generic import (
GenericCatalog,
VoidCatalog,
GenericDatacube,
VoidDatacube,
)
from blue_geo.catalog.firms import FirmsCatalog
from blue_geo.catalog.firms.area import FirmsAreaDatacube
from blue_geo.catalog.ukraine_timemap import (
UkraineTimemapCatalog,
UkraineTimemapDatacube,
)

list_of_catalog_classes: List[Type[GenericCatalog]] = [
GenericCatalog,
FirmsCatalog,
UkraineTimemapCatalog,
]

list_of_catalogs: List[str] = sorted(
Expand All @@ -20,6 +25,7 @@
list_of_datacube_classes: List[Type[GenericDatacube]] = [
GenericDatacube,
FirmsAreaDatacube,
UkraineTimemapDatacube,
]


Expand Down
2 changes: 2 additions & 0 deletions blue_geo/catalog/ukraine_timemap/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from blue_geo.catalog.ukraine_timemap.catalog import UkraineTimemapCatalog
from blue_geo.catalog.ukraine_timemap.datacube import UkraineTimemapDatacube
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import argparse
from blueness import module
from blue_geo import NAME, VERSION
from blue_geo.ukraine_timemap.functions import ingest
from blue_geo.catalog.ukraine_timemap.functions import ingest
from blue_geo.logger import logger
from blueness.argparse.generic import sys_exit

Expand Down
11 changes: 11 additions & 0 deletions blue_geo/catalog/ukraine_timemap/catalog.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from blueness import module
from blue_geo import NAME
from blue_geo.catalog.generic import GenericCatalog
from blue_geo.logger import logger

NAME = module.name(__file__, NAME)


class UkraineTimemapCatalog(GenericCatalog):
name = "ukraime_timemap"
collections = ["ukraime_timemap"]
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
from geojson import Point
from blueness import module
from blue_geo import NAME, VERSION
from blue_geo import env
from blue_geo.catalog.generic import GenericDatacube
from blue_geo.catalog.ukraine_timemap.catalog import UkraineTimemapCatalog
from blue_geo.logger import logger
import matplotlib.pyplot as plt
from typing import Dict
Expand All @@ -20,6 +23,18 @@
NAME = module.name(__file__, NAME)


class UkraineTimemapDatacube(GenericDatacube):
name = "area"
catalog = UkraineTimemapCatalog()
QGIS_template = env.BLUE_GEO_UKRAINE_TIMEMAP_QGIS_TEMPLATE

def __init__(
self,
datacube_id: str = "",
):
super().__init__(datacube_id)


def ingest(
object_name: str,
do_save: bool = True,
Expand Down
Empty file.

0 comments on commit b0b0d0d

Please sign in to comment.