Questions tagged [polyline-creation]

Used for questions about making polyline features

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

AutoCAD convert polyline to polygon

How can I convert polyline to polygon when the command MAPPOLYLINETOPOLYGON doesn't work at all? I have the map, which is based on the raster PDF. The most reasonable option is redrawing these shapes ...
1
vote
0answers
11 views

Create Polygons from Polylines

I am creating an application using Google Maps Drawing Library. In the application the user can draw a bunch of PolyLines as shown in the picture below. Please disregard the color variation of ...
0
votes
0answers
24 views

Force to Display All the Trail Names on a Map in QGIS

I have been testing ways to force all the MTB trail names to be visible on an OSM map I am styling in QGIS. I can see them as red unplaced labels and there is room on the map to display them yet they ...
0
votes
0answers
16 views

Converting Points shapefile to 3D polylines in QGIS (without Grass)

I'm using QGIS 3.10 and am trying to come up with a way to create a shapefile of polylines with Z attribute attached, starting from a points shapefiles. Both Saga/Convert Points to Lines and QGIS/...
1
vote
0answers
51 views

Drawing Line Starting/Ending at Pre-Existing Points in QGIS

I am trying to create a editing condition with a error message. The condition is while drawing a new line feature, line should start and end at pre-existing point feature. If user try to start or end ...
0
votes
1answer
17 views

Merge lines to polylines

I've migrated some 50,000 buildings from some crappy CAD environment into an SDE database. The problem is that the majority of the buildings is represented as lines, not polylines I.e. every wall is a ...
2
votes
1answer
40 views

How do you merge multiple polyline features into one contiguous feature in QGIS?

I created a shapefile from public GIS data, that I wanted to display in Google Maps for presentation purposes. The original .shp used small line segments for roads. Maybe a picture will make sense: ...
3
votes
1answer
67 views

Exporting shapefiles as SVG polylines

Recently I've been using QGIS to create fracture tracemaps as line shapefiles. I need to export these lines as an SVG that uses the tag polylines rather than paths. I've used the SimpleSVG plugin but ...
3
votes
1answer
521 views

How can I switch line direction from the Linux commandline?

I want to reverse the line direction for all lines in a shapefile from the Linux commandline (that is to say, using a script). Currently I'm using the SwapVectorDirection QGIS plugin which works well ...
0
votes
0answers
26 views

Creating polyline feature on ArcGIS Pro basemap

I am trying to create a polyline in the Kalamazoo River on ArcGIS Pro. I have opened the software and selected the 'Topographic' basemap already in ArcGIS. I have zoomed to the Kalamazoo River region. ...
0
votes
1answer
52 views

CSV attribute table to polyline shapefile

I have a .csv file that is an exported attribute table that I would like to reconstruct as a polyline shapefile (for reasons beyond my control I cannot access the original shapefile from which the ....
2
votes
1answer
196 views

Bi-directional arrow in Leaflet

I'm using Leaflet to create a map of movements of a species of interest. I'm using polylineDecorator to draw arrows, but I would like to have a bi-directional arrow (example in figure below). Right ...
1
vote
1answer
285 views

Big polyline with Leaflet

I'm using Leaflet for a project where I track the path of an entity along the map in realtime. I made a buffer with the last 1000 points but it is visible only through a big zooming cause the points ...
2
votes
1answer
99 views

How to draw two or multiple lines from one location to another without overlapping the lines?

I want to draw two or many curved lines from fixed start point to another fixed end point on map. So, I started with geodesic but it draws overlapping lines. Then I tried to draw trajectory but not ...
1
vote
1answer
286 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 ...
1
vote
0answers
37 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
48 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 ...
1
vote
0answers
77 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
1k 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
30 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
69 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
27 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 ...
1
vote
0answers
182 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
3answers
131 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
115 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
23 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
503 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 ...
2
votes
1answer
199 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 ...
2
votes
0answers
204 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 ...
1
vote
1answer
61 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
1answer
20 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 ...
1
vote
2answers
663 views

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
vote
0answers
30 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
57 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 ...
2
votes
2answers
470 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 ...
2
votes
1answer
798 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
173 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
79 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 ...
8
votes
1answer
2k 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
0answers
135 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 ...
0
votes
1answer
127 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
106 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 ...
1
vote
1answer
173 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
31 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 ...
0
votes
1answer
495 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
1answer
213 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 ...
1
vote
1answer
46 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 ...
-4
votes
1answer
3k 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[...
5
votes
3answers
5k 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)
1
vote
0answers
36 views

Forcing “snap-to-road” when reshaping a line via basemap reference in ArcGIS desktop?

Sometimes, when I use "reshape a feature" in concert with a basemap, I'll find that the resultant line doesn't automatically snap to roads if a pair of verticies are far apart: But at the same time, ...