-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Function is_closed() is not working #27529
Comments
Author Name: Nyall Dawson (@nyalldawson) Can you share the wkt for some geometries this fails for? |
Author Name: Zoran Petrovic (Zoran Petrovic) Nyall Dawson wrote:
Here is the sample (EPSG 3908): MultiLineString ((6501338.13976828 4850981.51459331, 6501343.09036573 4850984.01453377, 6501338.13976828 4850988.96491092, 6501335.63971657 4850984.01453377, 6501338.13976828 4850981.51459331)) MultiLineString ((6501793.14917959 4851116.51137828, 6501798.09977704 4851119.01131875, 6501793.14917959 4851120.67794572, 6501791.48247845 4851119.01131875, 6501793.14917959 4851116.51137828)) MultiLineString ((6502558.16500301 4851122.3445727, 6502563.11560045 4851124.01119967, 6502558.16500301 4851128.96157683, 6502553.21440556 4851124.01119967, 6502558.16500301 4851122.3445727)) Is_closed is probably having issues with the MultiLineString type. |
Author Name: Nyall Dawson (@nyalldawson)
|
Author Name: Nyall Dawson (@nyalldawson) Applied in changeset e5e14dd.
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Zoran Petrovic (Zoran Petrovic)
Original Redmine Issue: 19704
Affected QGIS version: 3.2.2
Redmine category:geometry
When using Select by expression or Field calculator, function is_closed is not working.
For example:
this works:
CASE WHEN
x(start_point($geometry)) = x(end_point($geometry))
AND
y(start_point($geometry)) = y(end_point($geometry))
THEN 'closed' END
but this doesn't:
CASE WHEN
is_closed($geometry)
THEN 'closed' END
The text was updated successfully, but these errors were encountered: