A digital map feature that represents a place or thing that has length but not area at a given scale. A polyline feature may have one or more parts.

learn more… | top users | synonyms (1)

14
votes
5answers
10k views

How to create points in a specified distance along the line in QGIS?

I want to use QGIS creating points along the line, but in specified distance. I found two GRASS tools in SEXTANTE Toolbox: v.to.points v.segment I tried v.to.points, setting the maximum distance ...
9
votes
6answers
5k views

Get a point on a polyline from end points given distance along poly line

I have start point and end point of a polyline. How can I get a point on that polyline from end points specified by the given distance. How can I get this by using arcpy provided that this script ...
6
votes
4answers
918 views

How to Unsplit/Dissolve multiple touching lines in Stream Network?

I am trying to dissolve multiple lines for stream networks into individual features. The dataset contains many stream networks so a complete dissolve of the whole dataset wont do as I would like to ...
8
votes
1answer
673 views

How can I transform polylines into points every n metres in PostGIS?

Question in pretty much the same as this, but I need to use PostGIS. I have a number of polylines, and want to trasform them into points every n metres along these lines. edit: Thanks a lot to ...
5
votes
2answers
2k views

How to draw lines from two points in a CSV?

I have a CSV file where one line looks like this: Duration, user, lat-start, long-start, lat-end, long-end 298, Casual,38.9101,-77.0444,38.91554,-77.03818 Each row in the CSV has two points and I ...
4
votes
4answers
4k views

Calculating X and Y of line start and line end using ArcPy?

I have a series of polyline shapefiles and I am trying to automate the process of calculating the X and Y coordinates of the line start and line end using Python. I have added the 4 fields (startx, ...
5
votes
5answers
1k views

Convert line shapefile to raster, value=total length of lines within cell

I have a line shapefile representing a road network. I wish to rasterize this data, with the resulting values in the raster showing the total length of the lines that fall within the raster cell. The ...
8
votes
4answers
278 views

How to create a polygon connecting the endpoints of multiple lines using python?

I'm trying to figure out how to create a polygon that connects all the endpoints of a shapefile containing a set of polyilnes with pythonscript in ArcGIS, I'm having trouble doing this as the order of ...
2
votes
1answer
736 views

Getting First and Last Point coordinates of Polyline with Field Calculator in ArcGIS Desktop?

I'm trying to get the First Point coordinates (x,y) and Final Point coordinates (x2,y2) from a polyline in ArcGIS 10 with the Field calculator. I've added 4 (double) fields like StartX,StartY,EndX ...
1
vote
2answers
530 views

Distance between points along polyline ArcGIS for Desktop?

I'm using ArcGIS 10.3 (Desktop), and I'm trying to measure the distance between points following a path determined by a set of polylines. Hand measurement is not a viable option-- there are ~7500 ...
0
votes
1answer
414 views

Split lines with points while maintaining other dissolved lines

I am on ArcGIS 10.2. I have a line feature class of a stream network. I also have a point feature class along the main stream (line) where a catchment enters that stream. I have dissolved my whole ...
7
votes
4answers
5k views

How to close multipart polyline gaps in ArcMap

I have a multiple multipart contour lines that originally came from CAD drawing. I converted these into a polyline shapefile in ArcGIS. The issue I have is with gap in each contour lines that are ...
2
votes
1answer
520 views

Standalone Python script to split a polyline with a point layer

I have a polyline layer and a layer of points that are on top of the polylines. I do not have the ArcGis advanced license so I can't use the Split Line at Point tool. Can someone help me with a ...
0
votes
3answers
1k views

splitting a lines layer using points

I'm looking to accomplish a similar task to this thread: How to split a line at point positions? Using QGIS and the Processing and GRASS toolboxes available, I'm looking to split a vector layer ...
5
votes
1answer
161 views

Dividing polyline layer in clusters with specific requirements in ArcGIS for Desktop?

For my work in ArcGIS 10.2 for Desktop I need to divide line layers into clusters/groups. Currently I am doing this manually, but I like to automate this. The line layers can consist of 50 up to 2500 ...
5
votes
1answer
3k views

What units are shape_length in?

When generating polylines from a series of points, I used "Points to Line" tool. From this, Arc generates a polyline feature class, which includes the attribute shape_length. What units are these ...
2
votes
2answers
2k views

How to create a series of points along multiple polylines at once in ArcMap 10

I have a series of polylines that represent linear vegetation (shelterbelts, etc). I need to convert these to a series of points equally spaced in order to add them to a different shapefile that ...
8
votes
2answers
2k views

How can I create random points along a polyline in QGIS?

I am trying to create random points along a polyline shapefile in QGIS. Basically, like the 'random points' tool in 'research tools' but for polylines instead of polygons. I have tried converting ...
6
votes
1answer
1k views

ArcGIS Symbology Transparency

Using ArcGIS 10.1, I am interested in symbolizing a series of polylines to generate a pseudo-heatmap like one of the answers to this question. The essence of the solution idea is to symbolize each ...
4
votes
4answers
1k views

Create voronoi diagram from line segments

I'm looking for a way to create a voronoi diagram based on line segments instead of points. See the example below (taken from this presentation). Ideally I'd like something I can script from Python, ...
1
vote
0answers
142 views

3D Polyline by Slope on Surface

I wish to project (continue/extend/whatever) a polyline upslope following a specified gradient along a DEM surface. Is there any way of doing this?
5
votes
1answer
284 views

Shapefile and DEM: check rivers behaviour

I'm working with shapefiles representing rivers (rivers.shp), and DEM for the terrain elevation (terrain.tif). Basically, I want to check that my rivers (stored as polylines in my shapefile) behave ...
1
vote
2answers
95 views

How to combine two polyline shapefile together

Here is my question Two shapefile: * A: represent the outer boundary of the city area * B: represent the inner boundaries of the city divisions. I want to * Combine these two shapefile * ...
1
vote
1answer
55 views

Decompose the polygon with polyline inside

Here is my question: I have a polygon shapefile represent the whole country area. A polyline shapefile(with a bunch of line boundaries) represent the province boundaries So, how to decompose the ...
1
vote
1answer
108 views

How to compare polylines attribute from the same GRID cell in ArcGIS 10?

I need some help because I do not know how to model this issue: I have two polyline shapefiles. They have an attribute that I need to be compared. These are roads from different sources. So, I have ...
6
votes
2answers
913 views

How to calculate tortuosity of a coastline?

I would like to calculate the tortuosity (or fractal dimension) of a coastline within a 1km buffer surrounding a point on that coastline. I have hundreds of points and therefore need a tool or scripts ...
5
votes
2answers
140 views

Polygon points to Polyline

I am trying to create a polyline from the points that I query from a polygon. I have a polygon, and I am getting its edges, casting them to segments, and then use QueryNormal to get the mid point ...
3
votes
1answer
29 views

Assigning common field value to segments between two points using ArcGIS for Desktop?

I am using ArcGIS 10.3 for Desktop. I have a shapefile with polylines connecting points. Instead of having one single polyline connecting two points, there exist a number of consecutive segments ...
3
votes
1answer
187 views

Union on lines using ArcPy?

Essentially I want to union multiple (20) congruent line shapefiles, where overlapping line segments in the input shapefiles are combined into a single resulting output shapefile. But I can't union ...
3
votes
2answers
1k views

Calculating the distance between points and multiple lines?

I have a point shapefile of about 100 points and a polyline shapefile of about 200 lines and I am interested in finding the distance between every point and each individual polyline. My polyline ...
2
votes
2answers
44 views

ArcGIS 10.3: How to merge lines divided by junction points?

I have one shapefile with train stations (points) from a region in the UK and another shapefile with railroad tracks (lines) between these stations. Problem is, in the latter I don't have a unique ...
2
votes
1answer
186 views

How to find the coordinates of the intersection points between two SpatialLines objects (or SpatialLines and SpatialPolygon edges)

I am try to find the co-ordinates of points where SpatialLines cross the edge of a SpatialPolygon. I have searched and searched, but can only find results such as over which tell me which lines cross ...
2
votes
2answers
325 views

A method for noise reduction in GPS derived cycling routes

I'm pre-processing GPS data to assess possible methods for a planned research. The aim of the research is to use crowd-sourced cycling routes data to plan a cycling paths in an Israeli city. ...
2
votes
0answers
47 views

How to measure similarity of approximately congruent polylines

My initial question was posted here. The answer of whuber provides a nice solution for the case when polylines are congruent. However, the problem is that my polylines are approximately congruent ...
2
votes
1answer
94 views

How to create the same number of points along multiple polylines?

Input: Polyline Shapefile (all lines are different lengths) and a specified number of points that will be placed on the line (will be same number of points for all lines) Desired Output: Point ...
2
votes
1answer
150 views

How to create Multipart Line in ArcPy?

I am developing some script in where I want to create custom multi part line geometry. For example: I have one array of points a,b,c and second array of points e,d,f. I want to create one ...
2
votes
1answer
3k views

ArcGis 10 interpolate Z between polyline's vertices (IZ.InterpolateZsBetween ?)

Here's what's happening: I want to create a 3D line using only the height of some GSP points. I need to be able to extrapolate the vertice's height between where it's known to the one where it's ...
2
votes
2answers
1k views

How to edit (particularly flip direction of) polyline obtained through UpdateCursor?

I want to flip the direction of a polyline feature obtained as a result of an Update query; e.g. lines= arcpy.UpdateCursor(myFeatureClass,myQuery) dsc= arcpy.Describe(myFeatureClass) try: for ln ...
2
votes
1answer
374 views

Polyline ZM: automatic vertex height errors correction

Paolo I've got many rivers (polylines ZM) with a lot of height errors in Polylines 'vertices. Vertices' Z errors are not all equal in height (i.e. they are not all at zero height). I must create a TIN ...
1
vote
2answers
49 views

Decode encoded polylines to usable format for QGIS

Beginner alert. I was given a set of encoded polylines that I need to import into a QGIS project. I understand what encoded polylines are but now I am stuck with how to decode them into some usable ...
1
vote
0answers
22 views

How can I use ST_Contains/ST_Overlaps with non-simple lines?

Following the SQL of the accepted answer to How to get smallest line segments from intersection + difference of multiple overlapping lines? copied below. I'm having some difficulties assign the ids of ...
1
vote
0answers
76 views

How to convert an XML to Shapefile polyline

I want convert this XML file to a polyline shapefile. <?xml version="1.0" encoding="utf-8" standalone="yes"?> <ci nc="BMSKDMA10" nl="BMskDMA10" mt="6" ct="DM" dtt="17342" dtu="15/01/2016 ...
1
vote
1answer
70 views

Extracting the closest Point to a Line within a Polygon using ArcGIS for Desktop

I have the following shapefiles: Polyline: Detailing a road network. Polygon: Containing approx. 2000 polygons enclosing sections of that road network. Point: Containing numerous (OS Addressbase) ...
1
vote
2answers
167 views

Interpolate dxf polyline vertex elevation from DTM?

I am working on several autocad polylines (with several vertices...) that have the exact N,E coords but now I would like to add the elevation data for every polyline's vertices from a dtm. I thought ...
1
vote
1answer
321 views

Creating Polyline from GML using PyShp?

I have a problem in creating some polylines in one Shapefile with PyShp 1.2. The plan is to read a GML file containing LineStrings and create a shapefile. The theory is clear, but the realworld is ...
1
vote
0answers
29 views

Uploading Polyline feature in ArcGIS Online [duplicate]

I'm seeing some snapping/topological errors in ArcGIS Online (trial version) when I upload my well snapped polyline layer. Please see the screen shot below. What may be the cause of this?
1
vote
1answer
914 views

Polymaps + D3+ Polyline with different width and color

I am actually working on a project which involves polymaps and D3. I was wondering if you could help me on this. I have 4 locations and I would like to draw a polyline from one location to other 3 ...
0
votes
0answers
23 views

Polyline turned upside down and sideway (from encoded polyline to geojson to shapefile)

I was given an encoded polyline that I decoded and exported into a geojson file using the fabulous tool here: http://barryrowlingson.github.io/polyline-to-geojson/ but now I am running into another ...
0
votes
2answers
87 views

How can i create points per 10 and 100 meters for several lines with ArcPy?

I have 10 lines and i want to generate points per 10 and 100 meters for each one of them. In ArcGis there is the tool construct points(COGO) but is not scriptable. Is there any suggestion? Also i ...
0
votes
2answers
836 views

Convert polyline to polygon Using ArcObjects

I have a polyline and I want to convert it to a single polygon feature,I used this code but I get error while I can convert the same shape file using feature to polygon on ArcGIS Where is my mistake? ...