Giter Site home page Giter Site logo

Comments (3)

Rimasko avatar Rimasko commented on August 20, 2024

Please can you help. For which object to use the fix function?
when i use it for gdf, i get an error
AttributeError: 'GeoSeries' object has no attribute 'coords'

from h3-pandas.

DahnJ avatar DahnJ commented on August 20, 2024

Please can you help. For which object to use the fix function? when i use it for gdf, i get an error AttributeError: 'GeoSeries' object has no attribute 'coords'

The fix must be applied to the geometries themselves. I have added the relevant line to my post above.

from h3-pandas.

andresfchamorro avatar andresfchamorro commented on August 20, 2024

Hi @DahnJ

Long time on this issue but..

I've modified polyfill with the idea suggested above (not sure if you were planning on making changes).

This solution below does two things:

  1. If a given polygon is too small (returns no h3 cells), check iteratively with higher resolutions and return the parent cells at the res requested.
  2. Add option for overfill returning also the outer edge cases using h3.k_ring.

I can submit a PR if you think this could be a useful change!

andresfchamorro@c4a7852

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.