# Tag Info

### Splitting Polygons at midpoint using ArcPy?

Script below will output a new feature class of split polygons and the lines used for splitting them. Advanced license is required. The polygons will be split like this: Using Centroid of Minimum ...
• 53.8k

### Splitting polygon into equal area polygons using QGIS

All of the necessary tools can be found from processing toolbox and you have to be a bit innovative to achieve this. Basically by adopting this method you could achieve pretty good results, although ...
• 563

### How to Split Features in QGIS?

To update Curlew above, as of QGIS 2.18, you would use the built-in Advanced Digitizing Toolbar, which can be accessed via View > Toolbars > Advanced Digitizing Toolbar. The toolbar will look like ...
• 483

### Splitting line layer using another point layer in QGIS

There is the SAGA's "Split Lines at Points" module (search in the Processing Toolbox Ctrl+Alt+T: QGIS Processing Toolbox > SAGA > Vector line tools) In the above example all my points ...
• 29.2k
Accepted

### Converting huge multipolygon to polygons

Shapefiles have no type MultiPolygon (type = Polygon), but they support them anyway (all rings are stored in one polygon = list of polygons, look at GDAL: ESRI Shapefile) It is easier with Fiona and ...
• 51.4k

### Converting huge multipolygon to polygons

from GDAL mailing list using python import os from osgeo import ogr def multipoly2poly(in_lyr, out_lyr): for in_feat in in_lyr: geom = in_feat.GetGeometryRef() if geom....
• 3,041

### Splitting lines by polygons in QGIS

This is now possible by default in QGIS with the "Intersection" tool.

### Split lines at points using Shapely

You have many solutions and I use here a simple example 1) the easiest way from shapely.geometry import Point, LineString line = LineString([(1,2),(2,4),(4,5)]) point = Point(2,4) First, you must ...
• 51.4k

### Splitting line shapefile into segments of equal length using Python

Shapely can do what you ask. Here's an example of splitting a line string into 4 equal length parts. from shapely.geometry import LineString, MultiPoint from shapely.ops import split line = ...
• 8,588
Accepted

### Mapping Russia - Int'l dateline splitting polygon

If you reproject the polygon data to Asia Lambert Conic (not just On-the-fly, but really reprojecting all vertex coordinates into a new file), you can dissolve the polygons by a common attribute. ...
• 75.2k

### Cut/Clip/Split a polygon with another polygon from same layer

You can substract (clip) a polygon from another of the same layer by using the plugin Clipper. You have to choose the polygon you want to clip and then you do Vector->Clipper->Clip and the plugin ...
• 825
Accepted

### Polyline split at node in QGIS

QGIS can do the same. On the Advance Digitizing Toolbar is the 'Split Features' button: It appears more simple than MapInfo. 1) Make the layer editable 2) Select the 'Split Features' tool 3)...
• 4,282
Accepted

### Split a line when it crosses a polygon in R

Here is an answer that applies sf package functions to the reproducible data kindly provided by rcs. library(sf) A <- st_as_sfc("LINESTRING(458.1 768.23, 455.3 413.29, 522.3 325.77, 664.8 282.01, ...
• 885
Accepted

### How to split line into specific number of parts?

The v.split.length function from GRASS should do exactly what you want by splitting the line into equal segments defined by the user without the need for a point layer. Here's a simple example of a ...
• 72.5k
Accepted

### Splitting feature using gaps around in ArcGIS for Desktop?

In ArcGIS try Multipart To Singlepart: Creates a feature class containing singlepart features generated by separating multipart input features After that the features will be separated (but ...
• 53.8k
Accepted

### Splitting polygons with line grid in QGIS?

I would probably do the following: Run the Lines to polygons tool: Vector > Geometry Tools > Lines to polygons Or the Polygonize tool (as suggested by @GaborFarkas): Processing Toolbox > ...
• 72.5k
Accepted

### Split polygon by MultiLineString - shapely

adopted the answer from this post: Splitting Polygon by Linestring in GeoDjango?. line_split_collection.append(polygon.boundary) # collection of individual linestrings for splitting in a list and ...
• 351
Accepted

### Splitting lines into non-overlapping subsets based on points using PostGIS

The ST_Split PostGIS function is probably what you want. PostGIS 2.2+ now supports Multi* geometries in ST_Split. For older versions of PostGIS, read on: To get a single line split by multiple ...
• 681

### Cut/Clip/Split a polygon with another polygon from same layer

There is a plugin called Digitizing Tools that has the feature "Cut with polygon from another layer"... In the image below I am editing the Green layer and have a polygon feature selected from the ...
Accepted

### Split a vector layer based on attribute value?

A little dig in the processing algorithms and you can find: Split vector layer This algorithm takes a vector layer and an attribute and generates a set of vector layers in an output folder. Each of ...
• 2,702
Accepted

### Split line by nearest points using geopandas

First make sure you union your GeoDataFrames into a MultiLineString and MultiPoint line = gdf_line.geometry.unary_union coords = gdf_point.geometry.unary_union Using shapely.ops.snap and shapely.ops....
• 896

### Filling or splitting polygons proportionally based on variables using QGIS?

How to fill a polygon with stripes where the width of each stripe is proportional to an attribute Build a multi-layered symbol from the bottom up, with layers as follows. Final layer - outline ...
• 23.2k
Accepted

### Splitting Lines with Points using PostGIS

The core issue with your query is that you split every line by every point individually, as a result of the table join; if one line is to be split by two points, that same original line will be split ...
• 24.4k
Accepted

### Split polygon with selected line from another layer in QGIS

In the Processing Toolbox under "Vector Overlay" use the "Split with lines" tool. Just be wary that with such a complex line dataset this can cause some geometry issues, especially if you have any ...
• 4,808

### Extracting two last characters (numbers) doesn't work properly in QGIS

You can use the pattern (\\d+)\$, which will look for 1 or more number followed by the end of the line. If you omit the \$, the first occurence of one or more number will be returned, i.e. the 1 of A1. ...
• 35k

### Splitting lines into equal segments with QGIS

The current version of QGIS (QGIS 3.0+) has the option to Force segments to be exactly of a given length, except for the last one using v.split. v.split is accessed from the Processing Toolbox under ...
• 1,845
Accepted

### Standalone Python script to split a polyline with a point layer

Here's a script that might do it for you. The native arcpy.Geometry class has a method called "cut" that will cut any feature using another polyline. Unfortunately, since you're using "points", we ...
• 934

### Cut/Clip/Split a polygon with another polygon from same layer

I found the tool I was looking for! It can be done using the plugin called "Clipper".
• 309
Accepted

### Splitting string (the last digits) in QGIS

You can do it using the following formula in the Field Calculator: regexp_substr("Field_Name",'(\\d+|\\d+.+)') Where: The first \ is to escape \d \d+ : means extract one or more digits. | :...
• 36.5k