-
-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
h3_polyfill crashes PostgreSQL on random geometry #56
Comments
I get this error when indexing large geometries, where "large" is a function of absoliute size as well as the target H3 cell size. I get around this by dividing large geometries into smaller ones before doing polyfill. There are probably also resource constraints on the postgres cluster than can be increased if appropriate. However in this case I think it's more a matter of your polygon being invalid? It appears to have no area. |
Hi @FelisPimeja! Yes there is a limit to the size of the geometry that can be polyfilled, in which case you need to divide it beforehand. We should probably provide a helper Regarding the invalid polygon, can you tell me what is the H3Index of the polygon? |
@zachasme , I'm not pretty sure that's the point. I presubdivide all of the geometries before processing polyfill. So that the initial test example is a sub part of the oiginal much bigger feature. And It managed to return h3 indexes for much larger geometries. More strange is that when I further experimented with "bad features" (causing error) - I've noticed that they are all concentrated around that area in Canada for some reason. No other clues for now, though. |
Getting this same error when I increase the number of shapes to be |
@zachasme Yes, the issue is solved, thank you, 3.7.2 works with mostly the same workflow and data that FelisPimeja was using. |
Hello!
When executing query like
select h3_polyfill(st_geomfromtext('POLYGON ((-110.0018386 72.1254917, -110.0018638 72.5810473, -110.0018377 72.108825, -110.0018386 72.1254917))'), 8) h3
I get this error:
env:
PostgreSQL 13.2 (Ubuntu 13.2-1.pgdg20.04+1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, 64-bit
POSTGIS="3.2.0dev 0a9809b" [EXTENSION] PGSQL="130" GEOS="3.9.0-CAPI-1.16.2" PROJ="8.0.0" LIBXML="2.9.10"
H3 extension version:
3.7.1
I will be pleased to provide any additional information.
The text was updated successfully, but these errors were encountered: