Comments (8)
Can you publish the compiler/operating system/CPU architecture you are running on?
from h3.
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.
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.
Wow good catch.
from h3.
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.
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.
Just saw the issue #141 ! Will move to the python bindings repo! :)
from h3.
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)
- PloygonAlgos - Throws error when used wrapper library in swift HOT 2
- About RFC: Polyfill modes release plan HOT 1
- replace `sprintf` with `snprintf` HOT 1
- Add additional modes for polygonToCells HOT 12
- Hex (cell) ID validation HOT 3
- Fuzzer timeout on fuzzerIj: gridPathCells
- Broken Link to website docs in contributing.md
- Broken link to website in contributing docs
- Uber CLA Contact HOT 1
- Has cell_to_vertex been implemented? HOT 2
- Replace empty function parameters with `void` HOT 1
- cell_to_child_pos() version 4 of the Python API client HOT 3
- polygonToCells: validity of polygons HOT 3
- Missing library stubs MYPY HOT 2
- polygonToCells not returning all H3Cells for the bounding box containing both USA and Russia HOT 1
- Confirmation of grid algorithm HOT 3
- cellToChildren error HOT 2
- Add function for returning the H3 indices of each endpoint of a directed edge HOT 5
- Expose cellToChildrenSize in bindings HOT 1
- Getting unexpected results when converting coordinates in either direction HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from h3.