Hey Jay
I had a closer look and it seems that the Python H3 module has been changed and the methods we used are no longer in the module.
I was able to find some alternative methods and I was able to make the script work again.
That's using the Python console in the SQL Window using this modified script:
I wasn't able to just replace the script for the add-in as well and make that work too.
I'll pass this onto engineering for a fix.
Thanks for raising this issue, Jay
------------------------------
Peter Horsbøll Møller
Principal Presales Consultant | Distinguished Engineer
Precisely | Trust in Data
------------------------------
Original Message:
Sent: 03-05-2025 07:58
From: Jay Russell
Subject: Uber's H3 Hexagon Library
After loading the tool from marketplace it's giving the same error as the independent PY script.
06:55:00: Creating H3 Grid on Table States With Resolution 7
Error: module 'h3' has no attribute 'polyfill'
Is there a way to verify the H3 module installed correctly? I recently installed the 2023.1 patch and have elevated permissions but didn't run as admin.
------------------------------
Jay Russell
Lead Systems Analyst
Centerpoint Energy, Inc.
Houston TX
Original Message:
Sent: 03-05-2025 02:18
From: Peter Møller
Subject: Uber's H3 Hexagon Library
Hi Jay
Have you tried using the tool in the MapInfo Marketplace, Create Uber H3 Hexagons?
I'd recommend that you run MapInfo Pro as administrator the first time as it will install the h3 module which requires elevated permissions.
------------------------------
Peter Horsbøll Møller
Principal Presales Consultant | Distinguished Engineer
Precisely | Trust in Data
Original Message:
Sent: 03-04-2025 15:44
From: Jay Russell
Subject: Uber's H3 Hexagon Library
When attempting to run the PY script with the States data or my own boundaries I get this error message.
Error: module 'h3' has no attribute 'polyfill'
------------------------------
Jay Russell
Lead Systems Analyst
Centerpoint Energy, Inc.
Houston TX
Original Message:
Sent: 09-13-2019 08:31
From: Peter Møller
Subject: Uber's H3 Hexagon Library
You might have seen my earlier post on creating hexagons using MapInfo Pro.
After building this Hexagon library using MapBasic, I came across a different Hexagon library build by Uber: H3.
Here is a #Video from a presentation where Joseph Gilley from Uber talks about why they chose to use hexagons.
Read more about the H3 by Uber in this post.
------------------------------
Peter Horsbøll Møller
Pitney Bowes
------------------------------