Skip to content

Conversation

@MeganDawson42
Copy link
Collaborator

@MeganDawson42 MeganDawson42 commented Apr 17, 2025

Handle no wkt but supplied units

Description

allow units to be supplied and used even if there is no ogc_wkt and fixed the plumbing through of the verbose kwarg

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)

Review

List of tasks the reviewer must do to review the PR

  • Tests
  • Documentation
  • CHANGELOG

i-kieu
i-kieu previously approved these changes Apr 17, 2025
src/read.jl Outdated
else
@assert count(these_are_wkts) == 1 "Expected to find 1 OGC WKT VLR, instead found $(count(these_are_wkts))"
ogc_wkt = get_data(vlrs[findfirst(these_are_wkts)])
ogc_wkt = if count(these_are_wkts) != 1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably should make this count(these_are_wkts) == 0 and cover the case where we have 2 or more specifications (since that's a valid error I think?)

BenCurran98
BenCurran98 previously approved these changes Apr 17, 2025
@MeganDawson42 MeganDawson42 dismissed stale reviews from BenCurran98 and i-kieu via c2a9be1 April 17, 2025 03:23
@MeganDawson42 MeganDawson42 force-pushed the handle_no_wkt_but_supplied_units branch from c2a9be1 to 493bd52 Compare April 17, 2025 03:24
@MeganDawson42 MeganDawson42 merged commit 1ad21a8 into main Apr 23, 2025
10 checks passed
@MeganDawson42 MeganDawson42 deleted the handle_no_wkt_but_supplied_units branch April 23, 2025 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants