Questions tagged [multipart]

A digital representation of a place or thing that has more than one part but is defined as one feature because it references one set of attributes.

Filter by
Sorted by
Tagged with
3 votes
1 answer
81 views

Combining multiple Polygons into one MultiPolygon in QGIS

QGIS 3.34.3 has a processing function "Multipart to singleparts". But what about the other way around? What is the easiest way to create a MultiPolygon from several polygons?
christoph's user avatar
  • 5,440
1 vote
1 answer
65 views

Incorrect output when smoothing line that intersects multiline with PyQGIS

I wrote a such script to smooth my line. It checks whether a line of two points intersects the border of a polygon and, if not, then draws a line. This script works well for a simple example, but bad ...
redhat's user avatar
  • 327
4 votes
1 answer
132 views

TypeError when converting QgsMultiLineString to QgsGeometry using PyQGIS

I have previously written some PyQGIS code to replace the features in a LineString layer with new features. The outline of the code is below - I have left out the specific code to create data for the ...
Tom Brennan's user avatar
  • 4,342
0 votes
1 answer
53 views

Remove internal boundaries from a polygon in QGIS

I'm currently trying to retrieve XY coordinates from the perimeter of a polygon (using MMQGIS). When I have a single continuous polygon I face no issues. However, when the polygon is a mix of land ...
Buce1's user avatar
  • 3
3 votes
1 answer
144 views

Processing performance: Singlepart vs Multipart Polygon

I have a single-part polygon containing thousands of features which I converted/dissolved into a multipart polygon. Which is faster to process (i.e. when I clip them using a simple rectangular ...
brentiemapper's user avatar
1 vote
1 answer
162 views

Converting layer with multiple geometry types into single layers using PyQGIS

I'm developing a standalone script in PyQGIS and have downloaded data from OpenStreetMaps via Overpass Turbo. The data is given as GeoJSON and has been converted to gpkg. It contains multiple ...
user210818's user avatar
1 vote
1 answer
72 views

QGIS: Add islands

I am failing to achieve to add islands to my polygons. I want these islands to be part of other polygons and not their own ones (I have for example a function which calculates the middle point of a ...
Hemmelig's user avatar
  • 143
3 votes
1 answer
118 views

Creating buffer for MultiPolygon that covers all its surroundings in QGIS

When I try to use the Buffer tool in QGIS, it only allows me to create buffers in degrees ("grados" in the screenshot below) and it does not give me the option of changing the units (to ...
Felicia's user avatar
  • 31
0 votes
1 answer
111 views

Reason for existence of single parts vs. multipart layers

Vector layers can consist of single part or multipart layers. What is the reason for creating separate formats for that? It is perfectly possible to create a multipart layer and still create just one ...
Babel's user avatar
  • 70.4k
0 votes
2 answers
189 views

Deleting polygon constituted of many parts

I have a shapefile with multiple polygons and I would like to delete those which are constituted by multiple parts, as this one:
Ricardo Gomes's user avatar
0 votes
1 answer
146 views

Selecting all multipart features in feature class using ArcGIS Pro [closed]

How do I select and visualize all multipart features in a feature class using ArcGIS Pro?
raytron333's user avatar
5 votes
1 answer
141 views

Splitting features if composed of spatially separated parts in QGIS

I have a very messy shapefile where some of the features are composed of many separate parts (spatially) but classed as one feature. I need to delete all the tiny slivers but can't do this when they ...
user3390486's user avatar
0 votes
2 answers
51 views

How to divide a singlepart polygon shapefile of urban streets into a multipart polygon in order to get several streets?

I am working in QGIS and I have this road shapefile (singlepart polygon). How to split this polygon into a multipart polygon by splitting geometry at that point when the orientation changes? In order ...
GiuliaG's user avatar
  • 49
0 votes
0 answers
60 views

QGIS overlay_nearest multi_point type to single_point type layer

This is follow up to this question answer I have in QGIS 3.22 two point layers: multipart type point layer singlepart type point layer Multipart pointlayer Geometry generator algorithm: ...
Rii Pii's user avatar
  • 411
0 votes
0 answers
31 views

How to split unintentionally conjoined features into single parts at scale? [QGIS]

I have this layer of linear features which I produced from vectorising a raster image. The features in question are berry plantations that are more or less consistent lengths and widths, but some ...
hmnoidk's user avatar
  • 689
3 votes
1 answer
130 views

Setting/changing geometry type for .TAB file in QGIS

I have a .TAB-file with MultiLines. When I load it to QGIS, in layer properties it says Geometry: Line (LineString) which is wrong. When I try to do some operations with geometries (like snap to layer)...
BlackTesta's user avatar
6 votes
2 answers
294 views

Displaying symbology only for largest part of polygon in QGIS

In QGIS 3.22.0 (Bialowieza) I have a polygon layer of municipalities in Germany. Some municipalities consist of more than one polygon. I have duplicated the layer in order to make a categorization of ...
rtaani's user avatar
  • 557
4 votes
1 answer
559 views

Multipart to Singlepart in ogr2ogr

How can I convert a Multi Polygon GPKG to single Polygons using ogr2ogr? (I'm working in a Jupyter Hub environment without access to QGIS.)
StefanBrand_EOX's user avatar
0 votes
0 answers
62 views

Creating one line for multiple data

Using QGIS, I want one line representing three data in the attribute table. I merged and used the multipart to single part. Only one data in the attribute table appears. Is it possible to get multiple ...
GIS Noh's user avatar
  • 311
5 votes
1 answer
395 views

Applying different style to each sub-part of multi-part geometry using QGIS

I'm working with some Multipolygons, and I'm suddenly facing a naive question: is it possible to give a different color -- or whatever styling properties -- to each individual sub-part of a multipart ...
swiss_knight's user avatar
  • 10.1k
3 votes
1 answer
365 views

Importing single-geometry data to postgis

I have several single-geometry-layers (geopackages, shapefiles, temporary layers). Some are LineString, others are Polygon. When I use the DBManager in QGIS to import these layers to the PostGIS ...
Enzo Baldini's user avatar
  • 2,297
4 votes
3 answers
571 views

Difference in QGIS multipart to single parts and geopandas.explode()

I noticed that QGIS tool multipart to single parts produces different results than geopandas explode when used to MultiLineString geometries. Having a multiple lines which are randomly split along ...
XDOLK009's user avatar
  • 183
3 votes
1 answer
869 views

Removing partly overlapping lines within the same feature

I have several layers which have features with several parts. These parts are often overlapping however and as a result the Length of the feature is often not correct when I calculate it using $length....
Yelper's user avatar
  • 107
3 votes
1 answer
146 views

Adding column that shows the number of parts of features

I want to create a new field in my attribute table that shows of how many parts each feature exists (QGIS). I know how to make a new field and where I can find the Field Calculator. I do not know the ...
Yelper's user avatar
  • 107
5 votes
2 answers
147 views

Getting "QgsPolygon: CurvePolygon EMPTY" when extracting the largest part of MultiPolygon using PyQGIS

There is a shapefile with MultiPolygons, see the image below With this code, I am trying to get the largest part (by area) of each MultiPolygon feature. It utilizes the constGet() method. layer = ...
Taras's user avatar
  • 32.6k
5 votes
3 answers
358 views

How to edit parts of a multipart feature?

In an introductory course for QGIS I stumbled over the following question: Is there a tool to easily move (/move&copy / rotate / simplyfy) only one part of a multipart feature? All tools edit the ...
Hjall's user avatar
  • 88
1 vote
0 answers
202 views

Exploding multipart feature if different parts are over certain distance using ArcMap

I'm using ArcMap 10.4 and working with parcel data. I'm trying to come up with a way to combine parcels owned by the same person that are close to each other, but leave parcels that are further out as ...
Ben Johnson's user avatar
3 votes
2 answers
399 views

Getting area of part of MultiPolygon in QGIS

Is it possible, with QGIS, to get the area of a single part of a multi polygon? Or do I have to split them into single polygons?
MartinMap's user avatar
  • 8,284
0 votes
1 answer
68 views

Select feature parts and vertices as rows

I have a Oracle 18c SDE.ST_GEOMETRY FC that has multi-part polylines. I want to select the parts and vertices as individual rows in a query: Since we don't have a GetVertices() function in SDE....
User1974's user avatar
  • 1,122
1 vote
0 answers
107 views

QGIS forcing labels for separate feature parts into the same part

I have noticed that if there is a feature that has very small parts in addition to a "main" part, and you have checked the boxes for both 1) "label every part of multi-part features&...
JV19's user avatar
  • 11
2 votes
0 answers
45 views

Output singlepart features by default for tools and algorithms in QGIS

In QGIS, many algorithms and tools return multipart geometries. For further processing, a conversion Multipart to singleparts is necessary. This is a bit cumbersome. To make just one example: when ...
Babel's user avatar
  • 70.4k
2 votes
2 answers
3k views

GeoPandas clip produces MultiPolygons instead of Polygons

I have a large polygon shapefile and a small polygon shapefile. Both shapefiles are in the same coordinate system. What I do next is, clip small polygons within large polygon boundaries using ...
g123456k's user avatar
  • 608
5 votes
2 answers
519 views

Removing unknown shape from polygon shapefile in QGIS

I have a shapefile of the region of districts. When I zoomed in, I found a region under the district that shouldn't be here. I want to remove it and when I go down in toggle editing, delete part it ...
Daniel's user avatar
  • 306
3 votes
1 answer
638 views

Cutting polygons with MultiLine layer using QGIS

I'm trying to cut a polygon layer with a line I've created in part by copy-pasting lines from various source shapefiles and in part by hand-drawing segments to connect those. For clarity, the end goal ...
Sjiveru's user avatar
  • 87
0 votes
1 answer
83 views

Multi- to single-part on a subset of features

I have a question about the multi-to single-part function. How can I apply this process to a specific multipart? I have several multiparts, but only want to resolve one of them into its objects. ...
Bellis's user avatar
  • 41
4 votes
1 answer
721 views

Modifying specific vertices of MultiLineString using PyQGIS

First of, this question is related to this one: Snapping lines' start_point/end_points to the closest point features to them. I am trying to modify my answer to make it work with MultiLineStrings. ...
MrXsquared's user avatar
  • 33.8k
0 votes
1 answer
442 views

Calculating/obtaining a "centerpoint" inside a multipolygon entity with FME software?

Obviously, this point does not necessarily have to be the real centroid, but it does have to be a, only one, single interior point of each multipolygon. What I have found is the CenterPointReplacer ...
XSS's user avatar
  • 1
2 votes
2 answers
1k views

Making multiple singlepart features from one multipart feature using ArcGIS Pro

I am working with ArcGIS Pro 2.8. I have a multipart feature class with polygon geometry, and when I select a row with OBJECTID = 28, I observed that it is targeting so many features in the map. Is ...
Yogesh Chavan's user avatar
4 votes
1 answer
561 views

Inspecting individual Polygons of MultiPolygon in QGIS

Using QGIS's Identify results, I can highlight and inspect an individual 'feature', in this case a country geometry. In reality, the geometry is a MultiPolygon and I would like to inspect individual ...
ChaimKut's user avatar
  • 155
1 vote
0 answers
203 views

ArcGIS Server spatial query returns geometries only if they intersect all sub-polygon in multipart polygon

Single-part polygon as an input is a common use case of spatial query, it works fine. However, I am encountering a case that I need to take a multipart polygon as an input to query some point features....
mannok's user avatar
  • 113
1 vote
0 answers
224 views

Merging MultiPolygon and MultiLinestring

I want to merge a Multipolygon with a MultiLinestring however I cannot merge the data as they are of different types. One solution was to create a minimal buffer around the MultiLinestring and merge ...
Stackbeans's user avatar
1 vote
1 answer
211 views

Polygon features to parts of a multipart feature with chosen attribute source (QGIS)

In QGIS 3.16. I have a shapefile (polygon) layer with an attribute table. What I'd like to do is select certain polygon features and turn them into parts of one multipart polygon feature, without ...
pete's user avatar
  • 1,081
1 vote
2 answers
285 views

Writing multipart features in INTERLIS using FME

Trying to export a geopackage into an .xtf I run into the following problem: unexpected geometry type COM.safe.fmeobjects.FMEMultiCurve The .ili looks like this (simplified for posting here) CLASS G (...
styx's user avatar
  • 83
0 votes
0 answers
171 views

Getting centroid of multipart polygon using ArcPy

I am trying to get the center of a multipolygon, I have tried doing: with arcpy.da.SearchCursor(fc, ['SHAPE@']) as cursor: for row in cursor: multipoly = row[0] centroid = ...
sdMarth's user avatar
  • 141
1 vote
1 answer
361 views

Converting overlapping multipart lines into polygons in ArcGIS Pro

I have a number of multipart lines that form rectangles, each with a unique identifier. Imagine having building footprints as lines, but many intersecting one another like in the attached image. When ...
WGS1984's user avatar
  • 23
4 votes
1 answer
463 views

Selecting features that intersect features of another polygon with spatial index

Based on the answer of @mgri here: https://gis.stackexchange.com/a/224954/164953 I tried to select the features of a multilines layer intersecting less or more than 2 features of a multipoints layer. ...
Linda's user avatar
  • 341
4 votes
1 answer
147 views

Splitting Multipart geometries using Virtual Layer in QGIS

I have a Virtual layer already set up and working, the only thing that could make it better is getting rid of multipart geometries. The query is: SELECT ejido, circ, radio, mzna, cc, ten, ...
Opazo's user avatar
  • 363
2 votes
2 answers
287 views

Finding area of individual multipart parts using PyQGIS

Im trying to find the area of each part in multipart polygons. I know some polygons have multiple parts, so why cant I access the individual polygon parts like this (why is parts list empty): lyr = ...
BERA's user avatar
  • 71.2k
2 votes
1 answer
501 views

Select vertices, including multi-part number

I have an Oracle 18c table with an SDO_GEOEMTRY column: create table a_test_sdo_geom (shape mdsys.sdo_geometry); The table has a row that is a multi-part feature. insert into a_test_sdo_geom (shape) ...
User1974's user avatar
  • 1,122
0 votes
1 answer
46 views

Multi-part ST_GEOMETRY: Does the feature-part array start at 1 or 0?

Oracle 18c; ArcGIS 10.7.1 I have an SDE.ST_GEOMETRY polyline FC that has multi-part features. Question: What method does ArcGIS use to assign numbers to the feature-parts in the array? Do the part ...
User1974's user avatar
  • 1,122