Code Monkey home page Code Monkey logo

Comments (10)

Nowosad avatar Nowosad commented on September 10, 2024

Can you elaborate on this a bit more?

from vectormetrics.

marcosci avatar marcosci commented on September 10, 2024

In the raster context we have cells as spatial units, which are lacking in the vector context.
However, a polygon is compromised of an area which has an indefinite amount of spatial locations and hence properties (e.g. distance to polygon border).

How would I refer to such a spatial unit? My thought was location ...

See here for details:
https://github.com/marcosci/vectormetrics/blob/master/R/vm_p_core.R

... and in comparison:
https://github.com/r-spatialecology/landscapemetrics/blob/master/R/lsm_p_core.R

from vectormetrics.

mhesselbarth avatar mhesselbarth commented on September 10, 2024

Wouldn't it be enough in the above example to speak about core area ?

CORE is a 'Core area metric' and equals the area within a patch that is not on the edge of it. Core area is defined as all areas within a patch that are further away from the edge than a certain threshold. It describes patch area and shape simultaneously (more core area when the patch is large and the shape is rather compact, i.e. a square).

from vectormetrics.

Nowosad avatar Nowosad commented on September 10, 2024

"Distance from the patch edge" - isn't this not enough?

from vectormetrics.

marcosci avatar marcosci commented on September 10, 2024

Since cell pops up everywhere I think we should definitely find a common ground for a term here, the above was just an example :-)

from vectormetrics.

Nowosad avatar Nowosad commented on September 10, 2024

Frankly, I do not think we can find it. Raster representation shares some properties with vector representation, but, in the same time, is very different.

For example - you can reproject a vector without changing its values, but you cannot reproject a raster without changing its values.

from vectormetrics.

mhesselbarth avatar mhesselbarth commented on September 10, 2024

I also don't fully agree we need to come up with a term. Just because we use it quite often in the raster context this does not imply that we also need one for vector data. Even though maybe used for the same purposes, the data formats are different. Why not highlight these differents, rather than trying to find an artificial common ground?

from vectormetrics.

Nowosad avatar Nowosad commented on September 10, 2024

Totally agree @mhesselbarth.
If somebody wants to calculate standard (raster) metrics, they just could rasterize some polygons and get a result. However, due to the differences between rasters and vectors, different metrics for vectors can be calculated. We should focus (mostly) on the new/other things that can be done only on vectors.

from vectormetrics.

marcosci avatar marcosci commented on September 10, 2024

Which actually wasn't the idea of the package. The idea was to have the same functionality of landscapemetrics for vectors - so, no focus on things that can only be done on vectors (which are certainly a nice bonus, but not the core idea).

And I still think there is a need for a term for the inside of a polygon (which is also a common operation on polygons, so there must be something out there) - let alone to write the documentation of the neighboring, distance or adjacency functions and explain what is happening there. The term is definitely needed to highlight the different properties of the inside of a polygon, but let's see what pops up while finishing the package.

from vectormetrics.

Nowosad avatar Nowosad commented on September 10, 2024

(the inside of a polygon is known as "polygon's interior" or "polygon's body")

from vectormetrics.

Related Issues (13)

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.