Coder Social home page Coder Social logo

Comments (7)

xoolive avatar xoolive commented on May 30, 2024 1

Thank you for your interest in trying the library and for reporting the issue.

Usually, a geometry is None when the code failed to construct a geometry from the info it had (which is not unusual with OpenStreetMap: many geometries there are invalid and I guess there is a lot of code behind to fix many kinds of issues).

I don't know if you saw any warning before seeing the GeoDataFrame? Otherwise, I will try on my side and go step by step to see what happened with those geometries (maybe not right away, bear with me, but I keep the tab open)

from cartes.

xoolive avatar xoolive commented on May 30, 2024 1

Indeed, I never tried with the regex, but we should make it work. I will try to have a look and see if it's possible.

from cartes.

xoolive avatar xoolive commented on May 30, 2024 1

I will make a release tomorrow morning so that it's easier to upgrade 💪

from cartes.

MTRNord avatar MTRNord commented on May 30, 2024

A little more context: I want to fetch the areas where I have no admin_level=7 areas to fill those gaps. They only exist as admin_level=6. However admin_level=6 has some geometry issues for me

from cartes.

MTRNord avatar MTRNord commented on May 30, 2024

Thanks for making the library I had great fun using it yesterday 🤗

I didn't get any warnings on that query.

However while working on this further I discovered that changing the regex to be not a range but just one admin level made it work for each of them alone. Just both at the same time seem to cause this.

from cartes.

xoolive avatar xoolive commented on May 30, 2024

It took a while before I took the time, but I think I got it!
Thank you for the feedback

from cartes.

MTRNord avatar MTRNord commented on May 30, 2024

Awesome thanks! Now I should get back to doing more with this 😄

from cartes.

Related Issues (3)

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.