6
votes
Accepted
Generating offset line from MultiLineString in QGIS
Try the "Translate" tool in the Processing Toolbox (Ctrl+Alt+T) (under Vector Geometry).
Set the x-axis to whatever distance you want to create the copy:
Output similar to the following:
6
votes
Accepted
Is there a common method for measuring "curviness" of a line?
One measure is Sinuosity which is the line length divided by the shortest distance from the line start and end points:
select id,
st_length(geom)/st_distance(st_startpoint(geom), st_endpoint(...
3
votes
Accepted
Multiple operations within Field Calculator using the same IF statement
The closest point of a point geometry, is the point itself. Also, the distance between geometries, is the distance between their closest points.
"fid" attribute may or may not have the id ...
2
votes
Accepted
Smoothing corners in polyline using PyQGIS
After a research I didn't found a good implementation of what I needed. Bezier curves and QGIS smooth algorithm cannot make the rounding as if its a circle segment. Using these methods you get ...
2
votes
Is there a common method for measuring "curviness" of a line?
I'm not sure if this will be of great use to you, it might be too specific, but I have a function that tests for what I call cutbacks in lines. This is where a line bends more than a certain amount ...
1
vote
Calculating distance between two points on line string
Using QGIS expressions, there is the function line_locate_point() that gives you the point's distance from the start-point of the line, along the linestring. Points are snapped to the line. Use the ...
1
vote
City Suburbs Polygon using OSMNX
Got it! The edits worked. Changed and added tags in Open Street Maps:
type: multipolygon,
area: yes,
boundary: administrative.
With those edits the query managed to succeed. I had to wait a while for ...
1
vote
Accepted
How to extract polygon attribute based on point location using QGIS expressions
Solved it using the following:
aggregate(
layer:='CDD',
aggregate:='max',
expression:="Value",
filter:=contains($geometry, geometry(get_feature('Site Location', 'fid', 1)))
)
1
vote
Connecting two nodes with line to close segment in QGIS
In newer QGIS versions, you can automatically close a line using Geometry by Expression with this expression:
close_line ($geometry)
Expression (here with Geometry Generator for visalization): red=...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
geometry × 1815qgis × 408
postgis × 280
python × 193
polygon × 186
arcpy × 164
arcgis-desktop × 119
postgresql × 119
shapefile × 92
pyqgis × 86
coordinate-system × 82
sql × 73
sql-server × 66
line × 57
geopandas × 57
intersection × 55
shapely × 51
arcmap × 49
qgis-3 × 48
point × 45
geojson × 42
linestring × 39
well-known-text × 39
vector × 38
ogr × 38