Skip to content

Fix broken GeoArray constructor (#184)#188

Open
evetion wants to merge 1 commit intomasterfrom
fix/constructor-issue-184
Open

Fix broken GeoArray constructor (#184)#188
evetion wants to merge 1 commit intomasterfrom
fix/constructor-issue-184

Conversation

@evetion
Copy link
Copy Markdown
Owner

@evetion evetion commented Feb 28, 2026

Fixes #184

The constructor on line 42 of src/geoarray.jl was defined as GeoArray(A), referencing undefined variables f and crs. Based on the docstring above it, this should be a 3-argument constructor: GeoArray(A, f, crs::String).

Changes:

  • src/geoarray.jl: Fixed GeoArray(A)GeoArray(A, f, crs::String)
  • test/test_geoarray.jl: Added tests for all constructor variants (array-only, AffineMap+String CRS, AffineMap-only, AffineMap+WKT CRS, AffineMap+String CRS+metadata)

The constructor on line 42 was defined as GeoArray(A) referencing
undefined variables f and crs. Fixed to GeoArray(A, f, crs::String)
matching the docstring above it.

Added tests for all constructor variants.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

Constructor error

1 participant