Giter VIP home page Giter VIP logo

Comments (3)

nrabinowitz avatar nrabinowitz commented on June 4, 2024

Yes, that's essentially what that function is doing. How you manage aggregation (count, sum of some property, etc) is entirely up to you, and depends on what your input data looks like. For example, if your input data is an array of [lng, lat] points, you might construct a map of {[h3Index]: count} and then use that map to construct the GeoJSON - that's essentially what the function above is doing. This is one approach to a standard GROUP BY operation - see e.g. _.groupBy from lodash.

from h3-js.

sharmapn avatar sharmapn commented on June 4, 2024

Hello,
In addition to the h3Resolution, I was hoping to integrate Buffer Radius in this calculation.
I am fully using this example. Thus, the user can choose values for both: h3Resolution and Buffer Radius.
https://observablehq.com/@nrabinowitz/h3-tutorial-using-point-layers?collection=@nrabinowitz/h3-tutorial

I would appreciate any guidance on this small question.

from h3-js.

sharmapn avatar sharmapn commented on June 4, 2024

I mean at the end we need a geojson which has the features, together with the h3 cells, buffer radius and the number of points contained within.

from h3-js.

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.