Skip to content

Commit

Permalink
feature.py: Add static methods.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 645137751
  • Loading branch information
schwehr authored and copybara-github committed Jun 21, 2024
1 parent 8ffb4bf commit 6cb376a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/skai/earth_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
ShapelyGeometry = shapely.geometry.base.BaseGeometry


def _shapely_to_ee_feature(shapely_geometry: ShapelyGeometry) -> ee.Feature:
def _shapely_to_ee_feature(shapely_geometry: ShapelyGeometry) -> ee.Geometry:
"""Converts shapely geometry into Earth Engine Feature."""
geojson = json.loads(gpd.GeoSeries([shapely_geometry]).to_json())
return ee.Feature(geojson['features'][0]['geometry']).geometry()
Expand Down

0 comments on commit 6cb376a

Please sign in to comment.