Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [polyline-creation]

Used for questions about making polyline features

Filter by
Sorted by
Tagged with
2
votes
1answer
63 views

Split a polylines according to a specific point in R

I have 2 distinct spatial objects: on one hand I have a SpatialLinesDataFrame on the other hand I have a SpatialPointsDataFrame Considering one line and one point that intersects that line, I ...
1
vote
1answer
81 views

Inserting values with arcpy.da.InsertCursor()?

Building on Standalone Python script to split a polyline with a point layer, I don't think I am manipulating geometry objects correctly. I am splitting an original line, preserving all the ...
21
votes
9answers
34k views

How to merge lines with slightly different endpoints in QGIS?

In QGIS, I have two lines. The endpoints are near each other, but not quite aligned. I'd like to turn the two lines into one, with the two endpoints merged into midpoints. The closest I've been able ...
1
vote
0answers
33 views

Generate equal distanced sections on polygon

I generated a polygon by buffering a reference line. What I want to do now is generating multiple equal-distanced points along the reference lines, upon which to generate sections on the polygon. A ...
0
votes
0answers
44 views

AGOL REST API: Why do linestrings auto-convert to multilinestrings w/ 0 z elevation?

I'm using the ArcGIS Online REST API to add/delete features from a 3D web layer. I'm able to POST linestrings to the layer. But, seemingly randomly, some (not all) of the linestrings get converted to ...
0
votes
0answers
57 views

Plot overlapping buslines (polylines) with leaflet in R

Long story short: I´d like to plot bus lines on my GeoJSON data with Leaflet but need to get rid of the overlap. I´ve been skimming the forum for an answer to my question but, haven´t found any yet. ...
1
vote
0answers
27 views

Format of points in Polyline shapes in a shapefile?

I am have been asked to write some code that looks at a SHP file that contains a load of Polyline shapes that are used to represent parking areas in a British council's area. I've created a C# program ...
1
vote
0answers
35 views

Remove a Drawn Polyline from LeafLet Map

How can I simply just remove this polyline from the map? var pointA = L.latLng(From.lat, From.lng); var pointB = L.latLng(To.lat, To.lng); var pointList ...
1
vote
1answer
25 views

Assigning points to all bends on polyline in QGIS 3.6

I have a series of polylines representing water pipelines that I want to clean up. I want to split the pipeline polyline at key locations where there is a fitting such as a stop valve or hydrant. ...
1
vote
1answer
43 views

Extracting vector information from a .dwg file into a QGIS environment?

I have a few CAD files in the .dwg format and I am trying to extract the data into a QGIS environment. The CAD files have a large number of different layers that represent different types of assets eg....
0
votes
0answers
20 views

Snapping together lines within certain tolerance with ArcPy and Basic level license?

I have a GIS layer of bike lanes I created using an open-source GeoJSON which I converted to a shapefile using ArcPy. The end result looks pretty good, with one exception: there is some small gaps ...
4
votes
2answers
3k views

Changing (flipping) line direction in QGIS?

I have river network in QGIS. I draw opposite direction one of the rivers. Now I want to change direction of that river. How can I do that in QGIS 3? (As I know it is flip in ArcGIS)
0
votes
1answer
336 views

Extracting Transit Layer polylines (e.g. subway lines) and using them in Google My Maps?

I am trying to create a Google My Map of Tokyo Metro and Toei Subway lines. So far, I've been painstakingly drawing the subway lines manually, only using a mouse. Here's what I've got so far (WIP, of ...
1
vote
3answers
37 views

Merging different types (e.g., polygon with polyline) of shapefiles? [duplicate]

I want to create a watershed shapefile with areas, streams and pour points in it. Is there a way to merge the areas (polygons) with streams (polylines) and pourpoints (points)?
1
vote
0answers
81 views

Creating curved annotations for polygons and lines in QGIS

In general, my problem is that: I can`t display annotations using the option "Using the perimeter (curved)" in QGIS. I tried to solve it in two ways: At first was an attempt to use just a simple ...
0
votes
0answers
19 views

Merging elevation values of multiple point shapefile

In ArcMap I have thousands of points with elevation values from an aviation route. This route is stored in a multiple point shapefile. I made a polyline shapefile based on the route x, y locations. Is ...
1
vote
1answer
165 views

Create Polyline from Coordinates Array in OL OpenLayers 5.3.2

I'm using OpenLayers 5.3.2, and would like to create my own marker animation using almost exactly the example at https://openlayers.org/en/latest/examples/feature-move-animation.html?q=marker All I'd ...
20
votes
6answers
33k views

Creating points in specified distance along line using 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 ...
7
votes
5answers
9k views

Merge overlapping lines in ArcGIS

I have a polyline shapefile containing a number of lines, some of which overlap. By overlap, I mean that they follow exactly the same path for some of their route, but also have bits that are not ...
0
votes
0answers
59 views

From raster to polyline in QGIS

I'm trying to extrat ridges from ALOS images on qgis. I would like to have polylines so I can use the plugin AutomaTracks from Sebastien Peillet. I did inversed the MNT using raster calculator then ...
0
votes
0answers
211 views

How to save marker and polyline in database?

I want to store marker and polyline in the database. In this script, I have 3 functions, that is to draw a polyline, marker and the point of destination. Can anyone fix my script below? var map; var ...
1
vote
0answers
127 views

Drawing longest polyline within polygon? [closed]

I am looking for a GIS tool/script (preference on QGIS but I can also use ArcGIS/Matlab) that allows creating a polyline layer from a polygon layer where a polyline is drawn for each polygon. The ...
20
votes
6answers
14k views

What tools in Python are available for doing great circle distance + line creation?

I need to use Python to create a great circle distance -- both a number, and preferably some kind of 'curve' that I can use to draw in a client-side map. I don't care about the format of the curve -- ...
1
vote
1answer
30 views

Polylines setLatLngs

I am trying to give a polyline a new set of co ordinates from a server. When trying to use the .setLatLngs method to redraw the new line with updated co ordinates i get the error "Uncaught TypeError: ...
0
votes
0answers
67 views

Geospark - Creating LineStringRDD from coordinates extracted from the sides of each polygon in a PolygonRDD

I am using geospark 1.1.3 with scala and I am trying to split into lines a polygon shapefile dataset which contains 189 polygons. I am expecting to get each side of each polygon as a LineString, ...
5
votes
3answers
6k views

How to create a multipart polygon?

I have two polygons that consist of two separate polygons/lines in QGIS). How can I make this into a multipart polygon, which consists of 1 line in QGIS?
0
votes
1answer
18 views

Empty ShapeLength when running Insert Cursor for Polyline

I'm looking to create a new feature class using only selected data from a source feature class. I can get this to work but the ShapeLength field is 0 when I run this script and therefore the feature ...
2
votes
1answer
539 views

Create polyline layer from csv-file (id, lat, long, time) in QGIS

Some units are moving and regularly registering it location. Each of these register events corresponds to row in a csv-file. This row contains fields: id (unit identifier), lat, long (event location)...
1
vote
1answer
241 views

How to get the Z values of existing lineStringZ with pyqgis?

I can get the values of 3D QgsPoints with mypoint.get().z() When I iterate through a layer to get a specific polyline and then iterate through the polyline to get the start and end points- start_point ...
-1
votes
1answer
2k views

Plotting points into segments on roads exactly with ArcMap?

I have a set of data (see the table below) which has an origin lat and long and destination lat and long with speed. I just want to plot lines between the origin and destination, and color code them ...
1
vote
0answers
25 views

Checking snapping connection of polylines? [closed]

I would like to find a method using ArcMap that could check if all polyline are snapping and connected. I tried to create road network, but I can see this information. I have multiple polyline, and ...
0
votes
0answers
41 views

ArcGIS *.gen files: make polyline from points

I have *.gen files that have have the point coordinates (in known UTM datum) for multiple lines. Is there a one-click tool to get these into a polyline SHP? (I was thinking Generate might do it, but I ...
5
votes
2answers
11k views

How to write a script that will automatically draw lines from one point to multiple destination points? (ArcMap 9.3)

I need to create lines from an airport to numerous destination locations. The destinations change often, so drawing them manually becomes tedious. I want to create a script that will draw them ...
2
votes
2answers
280 views

Extend lines to nearest feature

I am attempting to extend a series of polyline features to an adjacent polyline feature. I need the lines to intersect, but not extend beyond the 'first hit' of the adjacent polyline feature and ...
6
votes
6answers
5k views

How can I get my GPS track data into a graphics program?

I'm using a Garmin Edge 705 bike GPS/computer unit, which produces .gpx files. I can use the standard software it comes with to plot on Google Maps etc, but I'd like to be able to output just a vector ...
3
votes
1answer
792 views

Merging overlapping lines into one line. QGIS

I have a shapefile with multiple perfectly overlapping lines. Each line represents traffic at a certain point in time. I would like my output to have only one line but with the attributes from all ...
1
vote
1answer
107 views

Euclidean distance and connecting lines between polygons using ArcMap?

I have a large set of polygons. I want to (1) calculate pairwise distances between polygons (so one polygon should be connected to several others). I can do this using the generate table in ArcMap. ...
0
votes
0answers
65 views

Attributing height data from points to Polylines for Tin creation?

I have to make a TIN of water surface height from about 170 points which have been collected from RTK along a river. The points however are few and far between and rarely on the opposite banks to ...
6
votes
1answer
3k views

Creating polygon from exterior points using PostGIS?

How to convert points data to polygon, so as to form polygon from exterior point as shown above
0
votes
0answers
117 views

DotSpatial M and Z values not displaying in ArcGIS Desktop?

I'm making a polyline with M and Z values using DotSpatial. The M an Z values are displayed when the shapefile is dropped in QGIS, but in ArcGIS, though the attribute table indicates that its a ...
6
votes
1answer
1k views

Split polyline by point using 'sf' package in R

I'm learning the sf package in R and would like to locate about 450 sites along the nearest reaches of a river network and to obtain the upstream and downstream distances along the reach where the ...
0
votes
1answer
77 views

Counting points within 100km Buffer of country borders using ArcGIS Desktop?

I have a dataset composed of points and projected on a shapefile describing European countries. My goal is to create a new shapefile, with zones specified 100 kilometers around the borders in-between ...
0
votes
1answer
76 views

Determining the Longest Segment of a Non-Continuous Polyline

I have a polyline that is non-continuous (please see picture, polyline is in red). I am looking to separate the polyline based on this geographic discontinuity so that I can calculate the length of ...
3
votes
0answers
95 views

Googlesheets CSV auto-update polylines to ArcGIS Online Maps?

I have been able to establish a ArcGIS Online map that auto-updates from a CSV spreadsheet within Google Sheets. The data that is auto-updating is point data with associated tabular data that will ...
1
vote
1answer
136 views

How to Make Lines Automatically Adjust same with Another Line (Route or Road)

I have 1000 lines and 1 route or road line. I want to automatically my lines adjust to route or road without erasing all data in the attribute table. My expected results, 900 lines will same with the ...
0
votes
1answer
28 views

Creating PolylineZM from Points using ArcGIS Desktop?

I have a point feature class that is essentially hundreds of vertices along a single line. The Attribute Table contains MD (Measured Depth) values, XY fields of each point feature, and a ID field for ...
1
vote
1answer
135 views

Unsplitting lines with ArcGIS tool 'Unsplit Lines'

I have tried to use the ArcGIS tool 'Unsplit lines' to get one polyline from multiple touching lines. Somehow, it does not work with some features. Have a look at the pic nr 1. In the pic you see one ...
18
votes
0answers
8k views

Creating trade flow maps in ArcGIS for Desktop (or any free software)? [duplicate]

I am trying to represent trade flows on a world map where the size and direction of arrows indicate the exports/imports of a given country. This type of map is commonly found in magazines and ...
1
vote
1answer
35 views

cutting waterlines at the edge of polygons

Using ArcGIS 10.3, I would like to cut the river lines at the edge of water body polygons bordering the region. Using the intersect tool and split line to points tool resulted with the disappearance ...
-5
votes
1answer
2k views

I ran the code and got this error TypeError: 'float' object has no attribute '__getitem__' [closed]

import arcpy, os arcpy.env.overwriteOutput = True def polylineArea(x, y): # this is your function definition count=len(xlist) area=0 j=count-1 for i in range (0, count): area+=((x[...