GithubHelp home page GithubHelp logo

Support for LineStrings about exactextract HOT 4 CLOSED

isciences avatar isciences commented on August 24, 2024
Support for LineStrings

from exactextract.

Comments (4)

dbaston avatar dbaston commented on August 24, 2024 1

If you'd like, you could do some testing on this branch: https://gitlab.com/isciences/exactextract/-/tree/linestring-overlap-length-2 which has LineString support rebased onto the current master branch.

from exactextract.

dbaston avatar dbaston commented on August 24, 2024

Are you looking for standard stats (min, max, mean, etc) of raster values, weighted by the line length associated with each cell?

It looks like I worked on this about 2 years ago: https://gitlab.com/isciences/exactextract/-/commit/d0193235c79b1719861311478add5b0c794fbd3d

Would need to revisit and see what, if anything, is needed to put it over the finish line.

Related: isciences/exactextractr#84

from exactextract.

jdalrym2 avatar jdalrym2 commented on August 24, 2024

Yes, that's correct. In my use case I'm mainly interested in mean atm ($C_i$ -> value of cell $i$, $L_i$ -> line length in cell $i$):
$$\frac{1}{L_{tot}} \left( C_1L_1 + C_2L_2 + \cdots + C_nL_n \right)$$
or a weighted sum (same thing as the mean but don't divide by line length, i.e. a line integral).

Looking at the table in the README a lot of stats could be useful (min, max, minority, majority, variety, stddev), but those are little more down the road for me.

Also happy to help out, but would likely need some guidance on implementation.

from exactextract.

dbaston avatar dbaston commented on August 24, 2024

Completed in d3974b0

from exactextract.

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.