Skip to main content
SDNX's user avatar
SDNX's user avatar
SDNX's user avatar
SDNX
  • Member for 5 years, 3 months
  • Last seen more than 1 year ago
awarded
Loading…
awarded
Loading…
awarded
comment
Splitting rectangles into 2 triangles using Geometry by Expression in QGIS
This works. This is exactly the result expected. Symbolization can still be grouped or separated by FID's as needed. I will try to post these steps above. Thank you sir!
comment
Splitting rectangles into 2 triangles using Geometry by Expression in QGIS
It looks like because it is self-intersecting, the two parts of each are not easily separable.
comment
Splitting rectangles into 2 triangles using Geometry by Expression in QGIS
This is a good improvement, thank you. I'm not as familiar with WKT, but your expression works. I will have to parse it out for my own learning in a bit. The only problem now is splitting the result. I know I could have used some vector geoprocessing using one side/triangle in conjunction with the original, but is it possible to split your result into their constituent parts within the expression? It may be too much. If so I can definitely work with this. Thanks again.
comment
awarded
comment
Splitting rectangles into 2 triangles using Geometry by Expression in QGIS
Your updated expression at the bottom of your response makes sense to me, but still produces one half / triangle. I suspect that it may only be possible to create one type of geometry per expression. I might be wrong.
comment
Splitting rectangles into 2 triangles using Geometry by Expression in QGIS
OK, these are good alternatives. I was aware of the Union option in geoprocessing tools, but wanted to see if I could make this a one-step process. In terms of expressions, it doesn't seem possible to create multiple geometries. This is something I wasn't sure of. If true, then a model would be a better way. For e.g. this doesn't work, unless my syntax is wrong: union(make_triangle(point_n($geometry,1), point_n($geometry,2),point_n( $geometry,3)),(make_triangle(point_n($geometry,3), point_n ($geometry,4),point_n( $geometry,1))))
Loading…
comment
Browser Widget slows QGIS
Go to Settings->Options->Data Sources. At the bottom you'll see "Hidden Browser Paths". Just select the path you want to unhide and hit the red delete button.
awarded
answered
Loading…
awarded