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)

1
vote
2answers
154 views

get lat/lon values of every start and end point of polyline

I have a polyline shapefile with 166 different line features. How would one populate the attribute table with x and y values of the start and end points of each line?
4
votes
1answer
90 views

Join / merge lines that touch and intersect in QGIS

I have a large dataset consisting of lines/polylines where I would like to join/merge the lines that touch / intersect. Each line has an individual ID and there are no common attributes I can use for ...
1
vote
1answer
36 views

How do I know which way line features are oriented?

I'm working on QGIS on a street shp file which has Left From, Left To, Right From, Right To fields fields, building a geocoder. I need to know which way these features are oriented, which I think is ...
2
votes
1answer
31 views

How to make a polyline with two-sided arrows show two colors

I am very new to ArcGis development and so bear with me if I asked a silly question. I am using ArcGis 10.2 on C#. I have two features (A and B) on the map. I need to place two arrowed lines - one ...
3
votes
1answer
39 views

Snapping end lines ArcGIS 10.4

I am trying to snap 2 polylines features as the picture below : I would like to snap both end lines using tolerance distance ans only snap the nearest feature: from the red feature, choose the ...
1
vote
0answers
29 views

Combining line vector shapefiles with different attributes

I'm using ArcGIS 10.3 for desktop. I have two shapefiles, both with polyline vector data for roads in the same area. This area is quite large, approximately 7,500 km², so there are a lot of roads in ...
2
votes
1answer
250 views

Segment matching on a polyline

I have about 1000+ running routes which I can load into memory as polylines using latitude and longitude data captured from a running watch. From these polylines I would like to be able to identify ...
1
vote
1answer
60 views

Counting nodes/vertices in large polyline GeoJSON?

I have a large .geojson file (~ 1 GB) of made up of thousands of polylines. My objective is to count the number of vertices (not end points) in the entire file. Is there a python module that is ...
1
vote
1answer
207 views

Polyline graphics not displaying in Javascript API?

I am getting features (graphics) back from an IdentifyTask, setting a symbol and adding to a graphics layer. Polygons and points show up just fine, but not lines. Has anyone else encountered this? ...
2
votes
1answer
38 views

Mapping raster values to nearest grid cell on a polyline

I'm not sure if the following task is possible in ArcGIS, or whether I need to use something like MatLab - I wondered whether the community could possibly advise if it is possible, and if so, what ...
3
votes
2answers
546 views

How to obtain closest point of point over polylines layer in PostGIS 1.4 (without st_ClosestPoint)?

I´ve got a polylines layer (pipes) and a points layer (valves) and In Postgis 1.4 I would like to obtain the closest points but exactly on the closest polyline. In other words, i need to locate each ...
1
vote
2answers
416 views

How to extend polylines to the nearest point

Hi could anyone tell me a way of getting my polylines to search for a point within a certain number of meters of their start/end points and extend to it? edit: There was some broblem uploading a ...
3
votes
1answer
287 views

Shortest path to draw all polyline routes in geometric network without repeating

My problem is related to the "shortest path" problem, however it's slightly different in that I don't want to draw one path but to draw all paths without repeating any routes (as much as is possible). ...
2
votes
1answer
194 views

Creating a line along an existing polyline from a point

I have a large data set of points, all of which lie on a river network and have x, y co-ordinates. I want to calculate the slope of the river channel at each point from the underlying DEM by taking ...
0
votes
2answers
22 views

Create polygons from points

I have a points dataset, which contains what are essentially vertices of polygons. They represent a number of separate, discrete polygons, and there is a field delineating these by name. Using this ...
2
votes
0answers
36 views

How to count near intersecting polylines and merge them?

I have a dataset with several polylines created by GPS points of car trips. I am trying to create a simple heatmap where roads with more traffic (where polylines intersect) get darker. I already ...
3
votes
1answer
505 views

How to check if geometry is M aware?

I am trying to determine whether my shape file that I pass is in M-aware (has M value). I keep getting an error Attribute Error: 'Polyline' object has no attribute 'hasM' Not sure what I am doing ...
2
votes
1answer
207 views

Intersection between polylines feature to polygon in QGIS

I would like to transform a line shapefile into polygons. However, the tool Vector>Geometry>Line to Polygon doesn'to work to me. What I would like to do is using the intersection between lines and ...
2
votes
1answer
391 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
1answer
19 views

Reordering vertices on a polyline (route)

I have a route in which the second vertex is in the middle of the line. Route is about 130 miles long. This is preventing me from recalibrating. Is there any tool that will re order or sort all the ...
1
vote
1answer
74 views

create heatmap from coordinates [duplicate]

computer science student here, haven't done much in GIS, just trying to finish a project for a class. What I have is a CSV of origin/destination points as co-ordinates (longitude and latitude) what ...
0
votes
1answer
24 views

Not all polygons digitize when converted from lines

I have a polyline feature consisting of a grid. I attempted to convert this grid into a polygon using the "Feature to Polygon" geoprocessing tool, and it appears that not all lines have been carried ...
2
votes
2answers
443 views

Create FeatureClass in Personal Geodatabase and store data

I have to create a new featureClass in my existing personal GeoDatabase. And save some polylines into this featureClass. How can i do it? I need c# code to do this. Edit: I have a problem during ...
2
votes
0answers
41 views

QGIS break polyline into line segments

In QGIS (2.14.3.) how do I break polyline features in their consisting (single)line features? I have tried the 'Explode lines' geoprocessing tool, but this destroys the whole polyline into very atomic ...
0
votes
0answers
9 views

Find all states (polygons) through which a route (polyline) passes

Used GADM to find GeoJSON polygons for the states of India. Now, given a google route between two cities, I need to find all the states the route passes through. Any suggestions on how to proceed? ...
0
votes
1answer
210 views

Converting polyline data to polygons?

I am trying to convert some polyline coastline data into a polygon that I can use to clip/subset back other data sets by this polygon. There are some small gaps in the coastline data, which ...
5
votes
2answers
148 views

How to efficiently convert origin-destination coordinates into lines in R

Reproducible example to show what I mean: # Create origins and destinations odf = data.frame(fx = 1:5, fy = 1:5, tx = 0:4, ty = rep(1, 5)) The challenge is to convert this into straight lines ...
1
vote
2answers
566 views

Split polyline where it intersects with other lines in MapInfo

I have a polyline (bus route) which I want to split where it intersects with other lines (not polylines) I have created. I'm happy to initially do it manually to see how it works, although I would ...
3
votes
1answer
232 views

How to offset polyline geometries (not symbology) using QGIS?

I have a polyline layer which has a road network digitized, up the center, in both directions however the polyline are sat "one on top of the other". I can display the lines separately by "offsetting"...
3
votes
0answers
29 views

Loop distance point pyQgis

I have a .shp of lines where I'm able to calculate the sum of segments length but I'm trying to put a point at a given distance in meters. The problem is it puts a point at every segment. When I give ...
1
vote
3answers
84 views

Determining curvature of polylines

I'm dealing with several thousand polylines of Geologic data with mixed degrees of curvature. I'm attempting to quantify just "how curved" these lines are and was curious if there was a means to do ...
0
votes
0answers
24 views

Adjusting labels in for stationing

How do I update labels for stationing? I am using the "Station Lines" plug in which is great, but I need the labels to read 01+00, 02+00.... as opposed to 1,2..... Also, can I start this labeling ...
4
votes
2answers
2k views

Merging two polylines with programming?

We are currently working on a project where we have to merge sections (polylines) to a route, but the big question is how to do this. We have currently tried adding those two as segmentcollections but ...
0
votes
0answers
73 views

Polylines and polygons - QGIS-2.14.3-1

After extracting contour lines from a DEM (obtaining polylines), and transforming them to polygons, I export the vector layer with polygons to a DXF. Then I import the DXF into Corel Draw to manage ...
3
votes
2answers
144 views

Fixed distance between two contours - Qgis 2.14.1

There is a possibility, when you select a contour line and give a fixed length of line, this line connects automatically to the next contour lines? I have two other questions on this subject but I do ...
2
votes
2answers
54 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 ...
3
votes
1answer
35 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 ...
1
vote
0answers
146 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?
3
votes
0answers
50 views

How to get polyline latitude and longitude by click on polyline android?

I have set Polyline click listener like this : map.setOnPolylineClickListener(new GoogleMap.OnPolylineClickListener() { public void onPolylineClick(Polyline polyline) { int ...
0
votes
0answers
19 views

Draw a line between 2 sets of coodinates [duplicate]

Basically, I have a table of river cross sections coordinates in excel . I have x,y data for one side of the bank and another X,Y coordinate for the opposite bank. In excel I have 5 headings, the ...
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
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, ...
0
votes
0answers
26 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 ...
1
vote
2answers
64 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 ...
2
votes
2answers
73 views

ArcGIS - Locate features along routes returning double results?

I am using locate features long routes using a points layer and a routed polyline network. Each point has a unique ID. My end goal is to determine is a point is to the left or right of the line. ...
1
vote
0answers
40 views

Algorithm to simplify a Polygon/Series of Points to a given number of Points

I have a polygon (or let's call it just a series of points). I want to simplify it (reduce the amount of points) to a given number of points. Currently I use Douglas Peucker and try to guess the ...
0
votes
0answers
41 views

Measuring correct line length from a 2D polyline using 3D raster QGIS

I am trying to measure the correct line length of a 2D polyline when draped over a 3D surface. In theory I would expect the line length to change when moved from the 2D to 3D. The polyline is spaced ...
2
votes
1answer
74 views

Arcpy module to read csv files and create polyline shapefiles

I am creating a module in arcpy that will loop through a folder with csv files in it. I have both of them written, and they work fine on my computer. However when I send them to anyone else they won't ...
4
votes
1answer
35 views

How to split multiple lines of the same feature using a line?

So obviously there is a split tool to split a single selected line. In my instance I would like to split 2+ lines of the same feature using a tool that is similar to the split tool. In this image I ...
3
votes
1answer
53 views

GIST slows down query?

I have an odd case where creating a GIST index slows down my query instead of speeding it up. The setup consists of two tables, one with multi-polygons, another with points. I want to calculate which ...