Invalid Geometries in Overture Division Areas #429
Replies: 2 comments
-
|
Thanks for raising this issue, @KevinThoms These geometries are showing as valid in Amazon Athena (Trino) in the latest Overture release: SELECT id,
ST_ISVALID(st_geomfrombinary(geometry))
FROM overture.release.v2025_09_24_0
WHERE id IN (
'0ca3bee0-1166-43e1-a82d-f49e41127170',
'604e4d47-073c-46f8-86a5-2a8838509986',
'7a7b4236-aa79-43a2-846d-0b8f1f4f6c28',
'd8b0d60b-8f3d-4ee4-a8b2-b58f5358d3cd',
'3368ac8b-45da-47da-ac8c-2cf11fd4cdca',
'ffeb7ee4-0d64-4014-9338-0071aa5d9434',
'b38c964e-69b8-42b3-aa56-384a09995720'
)d8b0d60b-8f3d-4ee4-a8b2-b58f5358d3cd true
0ca3bee0-1166-43e1-a82d-f49e41127170 true
b38c964e-69b8-42b3-aa56-384a09995720 true
ffeb7ee4-0d64-4014-9338-0071aa5d9434 true
7a7b4236-aa79-43a2-846d-0b8f1f4f6c28 true
604e4d47-073c-46f8-86a5-2a8838509986 true
3368ac8b-45da-47da-ac8c-2cf11fd4cdca trueI'm not sure which version of Overture data is currently on the Snowflake Marketplace (this is maintained by CARTO), nor how geometries are handled in Snowflake. If these geometries are valid in Presto/Trino, but not in Snowflake, it presents an opportunity to dig into the differences. |
Beta Was this translation helpful? Give feedback.
-
|
Chiming in here to say that all of the IDs in question are attached to |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey Overture team!
We have a user accessing your Overture Maps Division Areas data from Snowflake Marketplace and they're running into issues due to a few invalid geometries.
We found running:
SELECT * from OVERTURE_DATA_MARKETPLACE.CARTO.DIVISION_AREA WHERE ST_ISVALID(geometry) = falsereturned 7 invalid geometries with the id's below:They were running into the error
Error: Geography validation failed: Loop 0: Edge (138.691677,53.904861) -- (138.700644,53.832590) crosses edge (138.706912,53.845652) -- (138.676595,53.782420)with the query below:The query runs fine when excluding the invalid geometries.
Let us know if you have any insight into this issues. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions