Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,10 @@ def tide_graph_path(data, ds):
origin=xy_(-4416000, -6912000),
)

# Get point from GetFeatureInfo data
lat, lon = data.odc.map_bounds()[0]
point_albers = point(y=lat, x=lon, crs="EPSG:4326").to_crs("EPSG:3577").geom
# Get point from GetFeatureInfo data. On DEA Maps, we
# can assume that `data` coordinates are always in "EPSG:3857"
y, x = data.y.item(), data.x.item()
point_albers = point(y=y, x=x, crs="EPSG:3857").to_crs("EPSG:3577").geom
# point_albers = data.odc.geobox.extent.centroid.to_crs("EPSG:3577").geom

# Return region code
Expand Down
Loading