Questions tagged [polyline-creation]

Used for questions about making polyline features

Filter by
Sorted by
Tagged with
1
vote
1answer
75 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
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
38 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
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
21 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
24 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
39 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 ...
0
votes
0answers
27 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
32 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
79 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
18 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
116 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
54 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 ...
0
votes
0answers
169 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 ...
0
votes
0answers
51 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 ...
1
vote
0answers
119 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
28 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
56 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, ...
0
votes
1answer
17 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
1answer
212 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
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
38 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
249 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
491 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
101 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
64 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
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
0answers
113 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
71 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
66 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
135 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 ...
0
votes
1answer
312 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
132 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
34 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[...
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)
1
vote
0answers
30 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, ...
1
vote
1answer
46 views

Extending polylines via basemap reference in ArcGIS Desktop?

I have a polyline feature of a pre-existing bus route (let's call it "Route A"). I want to extend the polyline of Route A, using a basemap as reference. I don't want to totally freehand it, my first ...
3
votes
0answers
91 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 ...
3
votes
1answer
733 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 ...
2
votes
0answers
44 views

Finding the optimal boundary polyline in QGIS

I am looking to find an optimal boundary line between two geographically separated sets of points (a vector layer with S and N points representing two genetic lineages within a species). I would like ...
6
votes
3answers
620 views

Creating duplicate line set distance away from a polyline in QGIS?

I'm new to QGIS and not really sure what I'm doing; I have a polyline of the UK coastline and I want to add another line 30 km offshore. Is this possible?
-1
votes
1answer
34 views

Looking for FOSS tool that converts polygons into polylines? [closed]

I'm trying to convert a polygon layer into a polyline layer using a free open source tool. I have been able to perform this task in ArcGIS but can't find any free tools that will do the same thing. ...
1
vote
1answer
45 views

arcpy.polyline doesn't work properly

I'm sort of newbie to arcpy and trying to create a polyline based on the some predefined points which are put within "network_ND_Junctions1.shp". The code I've written seems like this: import arcpy ...
3
votes
1answer
245 views

Creating edge lines between specific polygons

I have a polygon layer containing habitat types. It looks something like this: where dark green is forest, yellow are open lands and the other signatures different other habitat types. In order to ...
9
votes
3answers
1k views

Drawing boundary of set of points using QGIS?

I have a set of points which I would like to change into a polygon. I tried concave hull but do not get the intended polygon as you can see below, And when I use Denaulay Triangulation I need to ...
7
votes
2answers
454 views

Deleting collinear vertex / vertices using ArcGIS Desktop?

I’m looking for an ArcGIS tool or script that will delete all the collinear vertices in line features. I tried the Simplify Line tool and Generalize in the Advanced Toolbar. The tools sort of work, ...
1
vote
0answers
39 views

2D Curve to poly-lines transformation through triangulation?

I'd like to understand whether it is possible to change the curve in the picture to a sets of poly-lines through triangulation? and is it possible in QGIS? Otherwise, are there other methods to ...