title: H3 hexagons render with swapped lat, long in kepler.gl
body: <p>I want to plot H3 hexagons. Of Austria.</p>
  
  <p>Download and unzip
  <a href="https://biogeo.ucdavis.edu/data/gadm3.6/gpkg/gadm36_AUT_gpkg.zip" rel="nofollow noreferrer">https://biogeo.ucdavis.edu/data/gadm3.6/gpkg/gadm36_AUT_gpkg.zip</a></p>
  
  <p>The full code is available at <a href="https://gist.github.com/geoHeil/b5b74887e20e4b659d4bb693a700a402" rel="nofollow noreferrer">https://gist.github.com/geoHeil/b5b74887e20e4b659d4bb693a700a402</a> generates to generate hexagons like:</p>
  
  <pre><code>size = 7
  hexagons = pd.DataFrame(h3.polyfill(geoJson, size), columns=['hexagons'])
  hexagons.head()
  
  8752e5b80ffffff
  8752ee6c1ffffff
  </code></pre>
  
  <p>Note h3 expects epsg:4326 and later generates the same projection again (<a href="https://github.com/uber/h3/issues/121" rel="nofollow noreferrer">https://github.com/uber/h3/issues/121</a>)</p>
  
  <p>This gives a file similar to:
  <a href="https://i.stack.imgur.com/BJXIa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BJXIa.png" alt="enter image description here"></a></p>
  
  <p>Now when moving to <a href="https://kepler.gl/" rel="nofollow noreferrer">https://kepler.gl/</a> and uploading the data I see three strange things happening</p>
  
  <ol>
  <li>polygons from the WKT line string are distorted. This would indicate that the wrong projection is used. But trying to convert to the supported <a href="https://github.com/keplergl/kepler.gl/blob/6b380ac6db94e10fed0a76f5e78ef7e55406df21/docs/user-guides/b-kepler-gl-workflow/a-add-data-to-the-map.md" rel="nofollow noreferrer">https://github.com/keplergl/kepler.gl/blob/6b380ac6db94e10fed0a76f5e78ef7e55406df21/docs/user-guides/b-kepler-gl-workflow/a-add-data-to-the-map.md</a> Webmercator does not fix it</li>
  </ol>
  
  <p><a href="https://i.stack.imgur.com/Ksbe3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ksbe3.png" alt="enter image description here"></a></p>
  
  <ol start="2">
  <li><p>when manually adding a hexagon layer it is rendered in yemen (based on the H3 addr. This seems strange. Could this be a bug in kepler demo?
  <a href="https://i.stack.imgur.com/wCHDi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wCHDi.png" alt="enter image description here"></a>. This seems really weird as the geometries are generated out of the hexagons using: <code>h3_to_geo_boundary</code></p></li>
  <li><p>hexagon centroids are not filled. Now when converting to hexagon centroids using <code>h3_to_geo</code>, and adding the data back in as ha <code>HexBin</code>layer not all the hexagons are filled. But that is strange as originally all hexagons were available (see 1 and 2).
  <a href="https://i.stack.imgur.com/PKEKw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PKEKw.png" alt="enter image description here"></a></p></li>
  </ol>
  
  <blockquote>
    <p>notice how in (3) the hexbin hexagons are projected correctly as hexagons and not distorted.</p>
  </blockquote>