Questions tagged [length]

The longest extent of anything as measured from end to end

Filter by
Sorted by
Tagged with
0
votes
0answers
7 views

Calculate length and width of polygons using Arcade in Expression Builder in the attribute table in ArcGIS Pro

I am using attribute rules to automatically update cells in an attribute table. I need to auto-calculate the length and width of polygons as the user creates them. Is there a way to do this using math/...
1
vote
2answers
75 views

Drawing circle of a fixed radius in meter, rounding error?

I would like to provide an option to draw a circle of a fixed radius in meters. My problem is that if I enter 5 meters, I'm getting 4.99 meters if pass the LineString to sphere.getLength. My code so ...
6
votes
3answers
311 views

Calculating sum of line length for hundred vector layers

I usually calculate total line length by adding a $length field and going to summary statistics. How would I do this if I have many layers? Is there a faster way? I batch added the $length to all of ...
6
votes
2answers
196 views

Finding the longest horizontal line inside polygon in QGIS

I have a state polygon like the pic shown below, is there a way to find the line which is the maximum horizontal line? Like this, but I want the maximum distance line.
0
votes
0answers
15 views

Converting Lat Lon points to line, then calculating distance travelled in QGIS

I understand this question, or variations thereof, gets asked regularly but no matter what I try I can't seem to convert points from GPS tracks to lines, then calculate the distances travelled. This ...
3
votes
1answer
33 views

Length of shared borders between polygons using Virtual Layers

I have a map with many counties, and I estimated the length of the common borders using one of the answers from this question posted a year ago. The properties of my layer look like this: I did the ...
2
votes
1answer
51 views

Query for calculating length of lines inside polygon gives empty output [closed]

I am writing an SQL query to calculate the length of lines inside a polygon. SELECT r.*, st_length(st_intersection(r.geometry,b.geometry)) AS Length_Inside FROM Gen_Line as r, Buffered as b WHERE ...
4
votes
1answer
71 views

How to count the number of 100m length chunks in a table with line geometry?

And by chunks I do not mean segments so I can't use st_segmentize for this In other words I have a linetable which has many lines of varying length. Example: id | st_length(geom) | intended count for ...
4
votes
1answer
38 views

Autochange length of line not working in QGIS 3

I have the line with calculated length both in meters and in feet. The problem is, that when I delete some unnecessary nodes it doesn't change at all. I tried to find some hint here: Finding line ...
2
votes
2answers
99 views

Calculating the length of two shapefiles in QGIS

I created the yellow area as a shapefile by hand. Then I calculated the perimeter. I also created another shapefile (blue) manually and calculated the length, see image 1. The next step was to ...
0
votes
0answers
53 views

Calculating the greatest length of a polygon using QGIS [duplicate]

I'm new to QGIS and I need to know the easiest way to calculate the greatest length of a polygon. I already know the "rule" tool but I want to do it automatically because I have a huge ...
0
votes
0answers
54 views

Calculating the longest path length in drainage network using Python

I have a drainage network and I want to obtain the longest path length between two coordinates of the shapefile; is there is a way to automate this process in Python? For example, in the image, I want ...
2
votes
0answers
38 views

Selecting, sorting, and grouping spatial data (lines) by length and proximity

I'm working on a project where I have a bunch of lines inside of polygonal land parcels. Here's a rough sketch of what I'm talking about: I need to further subdivide these parcels into sections that ...
2
votes
2answers
186 views

Calculating distance between points from CSV file in QGIS

I have a CSV-file with latitudes and longitudes and I should calculate the distance between the points in ascending order (distance from 1 to 2, from 2 to 3, etc.) I tried with the distance matrix but ...
3
votes
1answer
91 views

Automatically updating geometry attributes in QGIS without using Virtual Fields

I have a line layer and I computed the attribute "length" with the field calculator. After that, I changed the geometry of some lines with the editing toolbar. That means the values of "...
2
votes
1answer
61 views

Creating points along line based on line lengths

I have a road network network (polyline shape layer) with multiple line lsegments. Each line segment has different line length as shown in image 1. I am trying to generate points along lines based on ...
3
votes
3answers
96 views

Measuring distance between two points on curve line in QGIS

I am using QGIS 3.10 version. Image those two blue lines are points. How to measure the white line between those points?
1
vote
2answers
35 views

Does SDE.ST_LENGTH() calculate the true length of arcs?

Oracle 18c/10.7.1 EGDB I have a polyline FC that has features with arcs. Does the Oracle SDE.ST_LENGTH() function calculate the true length of arcs? Or does it only calculate the straight-line length ...
2
votes
0answers
78 views

Calculating length along multiple line segments in GeoPandas [closed]

I would like to calculate the distance between two points. They are connected with multiple line segments. Each LineString only consisting out of two points. How do I connect these LineString segments ...
1
vote
1answer
71 views

An application for measuring river length?

I'm aware of the coastline paradox and its application to rivers in that the measured length of a river depends on the resolution of the measurement. Is there an application that calculates the centre ...
7
votes
2answers
214 views

What is the maximum number of characters for a label in QGIS 3?

I am trying to determine the maximum number of characters for a label in QGIS 3. I am at over 1,000 characters and it does not display. Is there another way to display text on a map with a large ...
2
votes
1answer
55 views

Calculating length of line shapefile using PyQGIS

I have two lines that overlap, so I clip the overlap, and I should get its length in kilometers. The clip part is ok but I can't find any resources on how to get the length. It can be printed in the ...
1
vote
2answers
20 views

Measuring length in Southeast Korea projection

I have a GIS dataset currently projected in Web Mercator. Is there an option for a more accurate segmentation length projection when I need accurate lengths in Southeast Korea?
0
votes
0answers
280 views

AttributeError: 'NoneType' object has no attribute 'length' when running function for compactness

I want to calculate compactness indices for geometries I have in a geodataframe. I'm using the following function as was mentioned here (Measuring compactness in Python) by Kadir in order to ...
1
vote
1answer
64 views

Increasing length lines of shape

I am using ArcGIS Desktop Advanced 10.8. I have a polyline shape and I need to increase the length of all the lines 1000 meters. The lines have 2 vertex only. I need to increase the length from the ...
4
votes
2answers
172 views

Creating field with cumulative values of line length in QGIS

I've been through some of the examples and solutions posted here for calculating chainage of a line or cumulative values. However, I am still unable to achieve the desired outcome. What I am trying to ...
2
votes
1answer
657 views

Calculating length of polyline defined by list of coordinates using Python

I have a list of coordinates, knowing that I am working using EPSG:4326 and using Python I would like to calculate the length in kilometres of the polyline defined by these coordinates. Coords = [(0.0,...
1
vote
1answer
19 views

Find sublines, given initial and final offsets, via the command line

I have a CSV file that looks essentially like this: id,id_wkt,start,end,wkt 11,11,0,43,"LINESTRING(3.3623676 51.3132714,3.3626663 51.3130068,3.363068 51.3126811,3.3636323 51.3122504,3.3640754 51....
0
votes
1answer
574 views

GeoPandas: Get the maximum length inside a polygon

I'm having a a GeoDataFrame of polygons. I want to find the maximum length of a straight line that can fit inside each polygon. You could call this the characteristic length of the polygon. The length ...
2
votes
0answers
106 views

Finding distance of line segment considering elevation in QGIS?

Normal distance can be easily computed in QGIS. But how can I do it for a line feature in 3d space, simply saying how to to find the line's distance noting its elevation. For example, if a polyline ...
-1
votes
1answer
34 views

How to label line features dynamically with its length? [closed]

I need to label a line feature with its length dynamically so the displayed length will be updated as I edit the line geometry. Is this possible in either QGIS or ArcGIS?
7
votes
2answers
554 views

Calculating length of common boundary lines of two polygon in QGIS

I have a map consisting various district. How can I estimate the length of the common boundary shared by any two corresponding districts/polygons in QGIS? For example if a polygon "A" shares ...
2
votes
3answers
669 views

Get LineString length in meters

I have a series of LineString that I want to have the length in meters. I use the shapely.geometry module, and importing LineString. I've seen this post, explaining how to do it, but it seems using ...
1
vote
1answer
40 views

Calculate length of paths with defined vertexes

I'd like to calculate length of some paths with defined vertexes and each route is characterized by some records. For example, I need the length of all combinations of lines (AB, BC, CD, AD, AC, BD). ...
3
votes
1answer
113 views

Joining fields with long field attribute names

I am working with the "Joins" option in QGIS 3.10, which joins the fields from two attribute tables based on a common shared attribute column. However, this does not work for attribute values with a ...
1
vote
1answer
90 views

Length of longest street using Spatial SQL

I have a table with the geometry of streets and I`d like to find out, which is the longest and which length (in kilometers) it is. How can I summarize the individual street segments?
1
vote
1answer
95 views

Getting bike lane length with QGIS?

I am trying to get bike lane lengths from the following data set. To do so I have tried using the add geometry attribute from the processing toolbox. I have tried both calculate using Layer CRS and ...
0
votes
1answer
83 views

Computing total road length in fixed radius circle around a point

I have a dataset of a number of points which are plotted on QGIS using their latitude and longitude. Now, I have to find out the total length of roads surrounding each point within a circle of radius, ...
2
votes
1answer
72 views

Adding $length on the fly when adding line feature

is there a simple way (without writing script or python skills) to auto calculate and auto populate length attribute in QGIS? When I add a new line feature in my layer, I'd like the attribute length ...
8
votes
4answers
786 views

Calculating polygon's length along a line? [closed]

I need to calculate the length of polygons along / projected on a line. An image to show the idea: I have thousands of polygons to be "projected" on lines to verify how many meters of the line they ...
2
votes
3answers
307 views

Finding accurate distance of a drawing in QGIS

Attached shows a rough drawn image of a pipeline track. I need to measure the pipeline track from one end to the other, e.g from the red and blue square to the other red and blue square, e.g from the ...
2
votes
1answer
91 views

Calculating the length of a single edge in QGIS

I need the correct length of a edge between to points(yellow line in the picture below) in the unit [m] for validation of an equation. I just found the possbility to add geometry (length) to the ...
3
votes
0answers
63 views

Lines length plugin - QgsVectorLayer error

Several similar questions have already been made, but none of the is helping me. I have a layer of polygons and I want to known the length of each line of each polygon. And based on the length I ...
5
votes
2answers
276 views

Different length measures in QGIS vs. ArcMap

I noticed that QGIS and ArcMap return slightly different length measures when calculating geometries (length) on one and the same shapefile (see image). In QGIS I used the $length command, in ArcMap ...
1
vote
1answer
53 views

Which coordinate system/ projection would you use to measure lines globally distributed?

Which geographic coordinate system /projection would you recommend to measure the length of hundreds of lines which are globally distributed (southern and northern hemisphere)? The lines have a length ...
1
vote
2answers
189 views

Measuring width of polygons, which is wider than long

Within my project I am trying to quantify and compare different submarine landslides with ArcGIS. Therefore, I created a polygon shapefile and mapped the spatial extent of each landslide. Now I want ...
3
votes
0answers
386 views

Calculate length of selected features in PyQGIS

I create a selection with getFeatures(QgsFeatureRequest()) and I want to calculate the length of the result which is a QgsFeatureIterator : select = QgsExpression(" myexpression ") selectedfeats = ...
0
votes
1answer
177 views

Determining percentage of overlapping lines using QGIS?

i have a lines layer that represents the bikeways of my city, and also have another overlapping layer that represents the bikeways that need repairs. How can i get an analysis of the percentage or ...
0
votes
0answers
33 views

QGIS KML lengths appear to be wrong? [duplicate]

Every time I import a KML into QGIS the line lengths are wrong. A line that was 191 ft on Google Earth is now 260 feet in QGIS. How can I solve this problem?
3
votes
1answer
418 views

Different results using $length (field calculator) in QGIS versions 2.18 and 3.0

I use the field calculator to measure the length of LineStrings in my shapefile layer, but i get different results when using QGIS 2.18 or QGIS 3.0. If I am using the local coordinate system the ...