diff --git a/georeader/__init__.py b/georeader/__init__.py index 66c3528..690bcc2 100644 --- a/georeader/__init__.py +++ b/georeader/__init__.py @@ -1,4 +1,4 @@ -__version__ = "1.0.3" +__version__ = "1.0.4" import math from typing import Tuple, Any, Union diff --git a/georeader/readers/ee_query.py b/georeader/readers/ee_query.py index cc7300a..ff4c4c6 100644 --- a/georeader/readers/ee_query.py +++ b/georeader/readers/ee_query.py @@ -255,13 +255,12 @@ def img_collection_to_feature_collection(img_col:ee.ImageCollection, properties = ee.List(properties) - def extractFeatures(img): + def extractFeatures(img:ee.Image) -> ee.Feature: values = properties.map(lambda prop: img.get(prop)) dictio = ee.Dictionary.fromLists(properties, values) dictio = dictio.set("gee_id", img.id()) if band_crs is not None: proj = img.select(band_crs).projection() - dictio = dictio.set("crs_product", proj.crs()) dictio = dictio.set("proj", proj) return ee.Feature(img.geometry(), dictio) diff --git a/setup.py b/setup.py index 884daed..e5581a1 100644 --- a/setup.py +++ b/setup.py @@ -40,6 +40,7 @@ def read(rel_path): here = os.path.abspath(os.path.dirname(__file__)) with codecs.open(os.path.join(here, rel_path), 'r') as fp: return fp.read() + def get_version(rel_path): for line in read(rel_path).splitlines(): if line.startswith('__version__'):