GithubHelp home page GithubHelp logo

GdalType as Pulic about gdal HOT 9 CLOSED

georust avatar georust commented on May 26, 2024
GdalType as Pulic

from gdal.

Comments (9)

jdroenner avatar jdroenner commented on May 26, 2024 1

Since the GdalDatatatype in gdal-sys is pub, GdalType can probably also be pub. Do you want to create a pull request?

from gdal.

jdroenner avatar jdroenner commented on May 26, 2024

I'm not really sure if we want GdalType to be public. Let me think about the implications :)

from gdal.

jdroenner avatar jdroenner commented on May 26, 2024

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.

austinstig avatar austinstig commented on May 26, 2024

yes... that would be really great!

from gdal.

jdroenner avatar jdroenner commented on May 26, 2024

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.

austinstig avatar austinstig commented on May 26, 2024

No problem. I'll work on it.

from gdal.

austinstig avatar austinstig commented on May 26, 2024

Not sure how great it is but I have submitted PR. Thanks!

from gdal.

jdroenner avatar jdroenner commented on May 26, 2024

Great! thank you :) I will look at it as soon as possible (when i have some free time).

from gdal.

njwilson23 avatar njwilson23 commented on May 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.