You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@sedona.apache.org by "Kontinuation (via GitHub)" <gi...@apache.org> on 2024/05/24 09:53:22 UTC
Re: [I] St_isempty(geometry) finds non null geometries but does not find null geometries. [sedona]
Kontinuation commented on issue #1427:
URL: https://github.com/apache/sedona/issues/1427#issuecomment-2129114447
The expression `ST_IsEmpty(NULL)` will evaluate to `NULL`. Since SQL uses three-valued logic, where TRUE, FALSE, and NULL are distinct values, you may need to use the following query to find NULL or empty geometries:
```python
df.where("geometry IS NULL OR ST_IsEmpty(geometry)").count()
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org