Comments (9)
Since the GdalDatatatype in gdal-sys is pub
, GdalType
can probably also be pub
. Do you want to create a pull request?
from gdal.
I'm not really sure if we want GdalType to be public. Let me think about the implications :)
from gdal.
Since Array2 is the obvious data-structure for raster data, i guess we should add such method directly to rust-gdal. However, we should use a feature "ndarray" to allow disabling.
Do you think this would work for your use-case?
from gdal.
yes... that would be really great!
from gdal.
Great :) If you already have a matching method feel free to create a pull request. Otherwise i will see if i have time to write something :)
from gdal.
No problem. I'll work on it.
from gdal.
Not sure how great it is but I have submitted PR. Thanks!
from gdal.
Great! thank you :) I will look at it as soon as possible (when i have some free time).
from gdal.
I have another use case that I think would benefit from GdalType
being public. I'm trying to write a function that, given a sequence of bands, combines them into a dataset.
Since the GDAL data type isn't part of the RasterBand
type, I think I need to hard-code the band type in the caller. I think the signature might look something like
fn combine<T: GdalType>(b1: &RasterBand, b2: &RasterBand, ...) -> Result<Dataset, Error>
Is there an alternative that I should consider?
from gdal.
Related Issues (20)
- Change raster and block sizes to `usize`
- Fix issues with `SpatialRef::set_axis_mapping_strategy` API.
- Mutators in `Feature` don't require mutable receiver
- `Feature` fields getters and setters should accept field indexes HOT 3
- [Feature Request] Guess the Driver Type based on the file extension HOT 18
- FeatureIterator doesn't reset if the iterator isn't completely read HOT 1
- [Feature] Add `DriverIterator` to iterate through the available drivers HOT 1
- Random test suite crash HOT 23
- Can it support macos? HOT 6
- Update OGR arrow example to use arrow-rs
- No iterator support for rasterbands
- Cannot share dataset safely between threads HOT 2
- Error reported when cross compiling on Windows HOT 2
- Discord link not working HOT 1
- is anyone here haved this problem solve? gdal-sys HOT 5
- Cross-compile for aarch64-linux-gnu
- `Polygonize` wrapper HOT 3
- Can `Geometry` be `Send`? HOT 2
- No pre-built bindings available for GDAL version 3.8 HOT 1
- Add Wrapper for OGR_L_Intersection
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gdal.