25 votes

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 ...
user avatar
  • 53.8k
25 votes

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 ...
user avatar
  • 563
18 votes

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 ...
user avatar
14 votes

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 ...
user avatar
  • 29.2k
13 votes
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 ...
user avatar
  • 51.4k
13 votes

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....
user avatar
  • 3,041
12 votes

Splitting lines by polygons in QGIS

This is now possible by default in QGIS with the "Intersection" tool.
user avatar
12 votes

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 ...
user avatar
  • 51.4k
12 votes

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 = ...
user avatar
  • 8,588
11 votes
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. ...
user avatar
  • 75.2k
11 votes

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 ...
user avatar
  • 825
11 votes
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)...
user avatar
  • 4,282
11 votes
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, ...
user avatar
10 votes
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 ...
user avatar
  • 72.5k
10 votes
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 ...
user avatar
  • 53.8k
10 votes
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 > ...
user avatar
  • 72.5k
10 votes
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 ...
user avatar
  • 351
9 votes
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 ...
user avatar
  • 681
9 votes

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 ...
user avatar
9 votes
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 ...
user avatar
  • 2,702
9 votes
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....
user avatar
  • 896
9 votes

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 ...
user avatar
  • 23.2k
9 votes
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 ...
user avatar
  • 24.4k
9 votes
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 ...
user avatar
  • 4,808
9 votes

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. ...
user avatar
  • 35k
8 votes

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 ...
user avatar
  • 1,845
8 votes
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 ...
user avatar
  • 934
8 votes

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".
user avatar
8 votes
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. | :...
user avatar
  • 36.5k
8 votes
Accepted

Split polyline by point using 'sf' package in R

If you snap the point to the line then you can split the line and then extract the parts from the resulting collection. Use a really small tolerance, I don't know how small it needs to be... > ...
user avatar
  • 52.8k

Only top scored, non community-wiki answers of a minimum length are eligible