# Questions tagged [length]

The longest extent of anything as measured from end to end

161 questions
Filter by
Sorted by
Tagged with
17 views

### Comparing two lines

I'm working on a problem that we have lines and a lot of points near the lines we should draw a line between points. the new line should be similar to the first line! for comparing the new line and ...
17 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?
28 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 ...
47 views

### Increasing length lines of shape

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 last vertex. I need to do this ...
88 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,...
17 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....
94 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 ...
54 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 ...
9 views

### Detecting how far a river runs along a boundary between two administrative regions when digitisation errors mean they do not coincide

I am trying to find the lengths of rivers within and on the boundaries of administrative areas ("districts"); I need to distinguish between the length within districts and the length along boundaries (...
26 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?
141 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 ...
39 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). ...
35 views

### Measure line length from two points

Is there a way to measure the length of a line between two points (for example from pt 51-52 to my starting point (0))? In other words, I want to generate multiple lengths (always from pt x to 0) ...
100 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 ...
25 views

### Distance be between points: XYtoLine “Length” different from Add Geometry Attribute (geodesic) “length geodeisic” (ArcGIS Desktop)

I have a set of coordinates (WGS_1984) for patients home locations (Point A) and the first facility they visited (Point B). I want to calculate the distance between point A and B for each patient. I ...
64 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?
70 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 ...
47 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, ...
53 views

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 ...
533 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 ...
152 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 ...
62 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 ...
59 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 ...
181 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 ...
51 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 ...
156 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 ...
268 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 = ...
120 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 ...
30 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?
301 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 ...
122 views

### QGiS 3.0: Line length without overlapping parts

I have overlapping lines in my layer and want a total length of the visible line without the overlapping part. i.e. I have two lines First one goes A-B-C Second one is B-C-D How do I get the ...
40 views

### Calculating route length per grid cell using fishnet

I have a problem determining the length of the routes (boat) I've surveyed in order to calculate the survey effort. I added the GPS points of the boat and then used the points to line tool and added a ...
106 views

### SumLineLengths in QGIS 3.2 not working?

I'm trying to use the Vector > Analysis Tools > Sum Line Lengths in QGIS version 3.2.3-Bonn. I'm inputting a ploygon (Multi Polygon) and a Lines (MultiLineString) shape files. I'm hoping to get the ...
143 views

### Attributing polygons based on line attributes

I'm using QGIS 2.18. I have a grid that I need to calculate Azimuth and length for each side. Most have 4 sides but some ( see Gird C below) many more , up to 12. My process now convert Polygon to ...
70 views

### Maximum Length parallel line

I have a polygon and I want to make parallel lines inside of the polygon. I need to have the maximum length when I sum the length of all of them. Each line must be 15 m apart.
134 views

### QGIS - Parallel Lines - Count length of one

I have a large layer of lines (telecommunication duct) with in parts several parallel lines that are close to each other (cause they lay in the same trench). I would like to count the length of the ...
224 views

### Is there a way to calculate length of linestring from one point to another?

If I have one linestring and coordinates of two points on that linestring, what is the easiest way to calculate not shortest distance from those two points, but distance over the given road (given ...
23 views

### Calculating length of line using British National Grid projection? [duplicate]

I need to calculate the length of a line in (KM) in QGIS using the British National Grid as the Projection. Can somebody explain to me how to do this?
1k views

### Calculating length of polygon in ArcGIS Desktop?

I am using ArcGIS 10.2.1 Desktop with an Advanced license. My company has electric lines that go through people's yards. The areas around these lines require trimming occasionally, which necessitates ...
188 views

### Changing Virtual field properties in QGis 3.0

I have some existing virtual field with set Length and Precision An example: The formula was first set to rounding it by 2 digits With the current settings it displays 10.00 instead of 10 because of ...
529 views

### Calculate length of huge vector lines dataset

I have a MultiLineString vector layer from which I would like to calculate the length. I have tried to calculate the length with the Field Calculator by putting in the expression \$length. The ...
498 views

### Wrong length values on QGIS 3.0.3 and 3.2

While using QGIS 3.x today I noticed that length values were not calculated and measured correctly on EPSG:32611. Calculating and measuring the same data on QGIS 2.18 latest LTR and 2.2 on EPSG:32611 ...
128 views

### \$Length-attribute output

I created a layer to visualize cable-laying and want to export the sum of the cable-lengths to an excel file when I'm done so i created an attribute for it. How do I link an attribute to the auto-...
623 views

### Longest flow path in QGIS from single feature vector

I have got a vector layer with one feature (MultiLineString) representing a river network (s. below) without bifurcations. In addition there is a point shapefile containing the outlets of different ...
106 views

### Calculate perimeter of a large polygon using geodesic calculations

How do I calculate perimeter of a large vector polygon (polygon set) which spans almost half the globe? I guess regular calculations do not produce accurate results in this case.
70 views

### ST_Intersection preserving overlapping edges

I have a linestring that represents a bus route, and includes some overlapping sections where the bus has traveled back on the same street. When I ST_UnaryUnion the line, or ST_Intersection it with ...
233 views

### Buffering multiple feature classes from dataset based on length using ArcPy?

I am a beginner at Python and for my current project I am expected to list all polyline feature classes within a dataset, find the length, and then perform a buffer analysis based on it's length. This ...
409 views

### Choosing CRS for metric distance calculations? [closed]

I have the following ArcPy script to calculate total length of Polylines in a Feature Class/Shapefile: arcpy.Project_management('lines.shp', 'lines_projected.shp', arcpy.SpatialReference(TODO EPSG ...