Giter Site home page Giter Site logo

Implement h3.compact and uncompact about h3-pandas HOT 2 OPEN

dahnj avatar dahnj commented on August 20, 2024 1
Implement h3.compact and uncompact

from h3-pandas.

Comments (2)

DahnJ avatar DahnJ commented on August 20, 2024

Hi @KoalaGeo glad you like the library!

Currently, I have no such plans.

What behaviour would you expect these functions to have in H3-Pandas?

compact and uncompact are set operations and applying them to a dataframe with potential additional data is not straightforward. I see two general options

  1. The data would have to be removed and the returned dataframe would be index-only. This would not be difficult to implement. I can see how that's still potentially convenient, as it allows you to string further h3 operations.
  2. The compacted/uncompacted cells would have to be matched back with the rows they originated from with some (dis)aggregation operation being performed on the data. k_ring_smoothing does something similar.

It would be helpful if you could elaborate on your usecase to drive the potential API.

from h3-pandas.

KoalaGeo avatar KoalaGeo commented on August 20, 2024

I'm working with polygons, primarily categorical data (geology, rock type, formation name, descriptions etc).

I'm using polyfill / polyfill_resample, however it's resulting in massive numbers of polygons to accurately represent the input geometries - resolution 13 or 14 required.

I could do with the compact function at the end to simplify the data to fewer features using an index attribute eg rock type.

from h3-pandas.

Related Issues (18)

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.