Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable more exotic types in reading and writing. #284

Merged
merged 6 commits into from
Apr 7, 2022
Merged

Conversation

evetion
Copy link
Collaborator

@evetion evetion commented Mar 31, 2022

As an extension of #220. I've taken some of the work of @mathieu17g from the WIP at #243 in terms of type conversions.

Adds support for reading again (which broke somewhere during the 0.8 release train)

  • OFSTBoolean
  • OFSTInt16
  • OFSTFloat32

Make sure we can write

  • Int8
  • UInt8
  • UInt16
  • UInt32
  • Float16

By widening the type (i.e. UInt32 => Int64), which requires the correct conversion in both OGRFieldType as OGRFieldSubType.

  • Add tests

@evetion evetion requested review from rafaqz and yeesian March 31, 2022 17:06
@evetion
Copy link
Collaborator Author

evetion commented Mar 31, 2022

I don't think the failing tests on nightly are related MethodError: no method matching regenerateoverviews!(::ArchGDAL.IRasterBand{UInt8}, ::Vector{Matrix{UInt8}})

@evetion evetion mentioned this pull request Mar 31, 2022
yeesian
yeesian previously approved these changes Apr 1, 2022
Copy link
Owner

@yeesian yeesian left a comment

Choose a reason for hiding this comment

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

Thank you!

src/ogr/feature.jl Outdated Show resolved Hide resolved
@yeesian yeesian merged commit 7d7bba0 into master Apr 7, 2022
@yeesian yeesian deleted the fix/exotic-types branch April 7, 2022 01:47
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.

2 participants