Git Product home page Git Product logo

Comments (8)

isaachier avatar isaachier commented on May 9, 2024

Can you publish the compiler/operating system/CPU architecture you are running on?

from h3.

usuallycwdillon avatar usuallycwdillon commented on May 9, 2024

Sure.
I'm using Suse Tumbleweed, Linux 4.17.12-1-default #1 SMP PREEMPT Fri Aug 3 06:36:01 UTC 2018 (ef4920c) x86_64 x86_64 x86_64 GNU/Linux
make is GNU Make 4.2.1 Built for x86_64-suse-linux-gnu
gcc is gcc (SUSE Linux) 8.1.1 20180719 [gcc-8-branch revision 262874]

from h3.

isaacbrodsky avatar isaacbrodsky commented on May 9, 2024

I was able to reproduce this issue using your Java code. I got 349 hexagon IDs, and I see they match some of the addresses you got.

I believe the problem here is that H3 expects coordinates in the latitude,longitude order, but GeoJSON uses longitude,latitude order. When I swap the coordinates, I get 282 hexagon IDs and they match @nrabinowitz' set.

from h3.

isaachier avatar isaachier commented on May 9, 2024

Wow good catch.

from h3.

usuallycwdillon avatar usuallycwdillon commented on May 9, 2024

Ah. I'm so glad you recognized that. I had them the correct way in an earlier attempt, but the output was transposed. Everything works perfectly when I deal with it on the output, too.

Thank you. I'll close this.

from h3.

guillemfrancisco avatar guillemfrancisco commented on May 9, 2024

Have this issue been fixed? In a GeoJSON the coordinates are in the order [lon,lat]. However, the polyfill function expects the coordinates to be [lat,lon]. So we aren't truly following the GeoJSON standards.

from h3.

guillemfrancisco avatar guillemfrancisco commented on May 9, 2024

Just saw the issue #141 ! Will move to the python bindings repo! :)

from h3.

nrabinowitz avatar nrabinowitz commented on May 9, 2024

Have this issue been fixed? In a GeoJSON the coordinates are in the order [lon,lat]. However, the polyfill function expects the coordinates to be [lat,lon]. So we aren't truly following the GeoJSON standards.

The core library doesn't attempt to follow GeoJSON - this is left as a job for the bindings, and in some cases additional libraries, to handle.

from h3.

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.