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
0 votes
0 answers
32 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: ...
  • 383
0 votes
0 answers
25 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 ...
  • 657
2 votes
0 answers
56 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)...
6 votes
2 answers
208 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 ...
  • 575
3 votes
1 answer
217 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.)
0 votes
0 answers
52 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 ...
  • 161
5 votes
1 answer
240 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 ...
  • 9,111
2 votes
1 answer
206 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 ...
  • 2,157
4 votes
3 answers
238 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 ...
  • 183
3 votes
1 answer
424 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....
3 votes
1 answer
76 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 ...
5 votes
2 answers
126 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 = ...
  • 28.1k
5 votes
3 answers
216 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 ...
  • 88
1 vote
0 answers
106 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 ...
3 votes
2 answers
291 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?
  • 8,045
0 votes
1 answer
55 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....
  • 1,014
1 vote
0 answers
51 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&...
  • 11
2 votes
0 answers
40 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 ...
  • 55.3k
2 votes
2 answers
2k 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 ...
  • 590
5 votes
2 answers
376 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 ...
  • 306
3 votes
1 answer
361 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 ...
  • 87
0 votes
1 answer
56 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. ...
  • 41
4 votes
1 answer
394 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. ...
  • 30.4k
0 votes
1 answer
259 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 ...
  • 1
2 votes
2 answers
654 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 ...
4 votes
1 answer
330 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 ...
  • 155
1 vote
0 answers
115 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....
  • 113
1 vote
0 answers
160 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 ...
1 vote
1 answer
116 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 ...
  • 1,031
1 vote
2 answers
200 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 (...
  • 83
0 votes
0 answers
98 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 = ...
  • 141
1 vote
1 answer
157 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 ...
  • 23
4 votes
1 answer
314 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. ...
  • 331
4 votes
1 answer
107 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, ...
  • 363
2 votes
2 answers
180 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 = ...
  • 61.1k
2 votes
1 answer
274 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) ...
  • 1,014
0 votes
1 answer
34 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 ...
  • 1,014
1 vote
1 answer
288 views

How can I collect geometries from a singlepart shapefile to a multipart using GeoPandas or other non-ArcPy solutions?

I've tried to use the geopandas.collect.tool to do this using the snippet below, but it clears the fields from the input shapefiles and does not successfully collect geometries. doc: https://geopandas....
  • 13
6 votes
0 answers
1k views

Convert the geometry column of a GeoDataFrame with mixed geometry types to a unique multi-type

I have a GeoDataFrame where I have a mix of geometry types in its geometry column, some are multi-geometry types, some are single geometry types, some are empty geometry types, and others are None (...
  • 9,111
1 vote
1 answer
48 views

QGIS Create Feature for closed Polygons

I have one single layer that consists of different polygons. In the attribute table all the polygons are summarized in one feature (see picture for both). I am looking for a way to split up the ...
3 votes
1 answer
257 views

Split feature by polygon and do multipart to singlepart in QGIS

I am searching for a tool or a combination of tools in QGis to get done some line-cuttings. They have to follow some rules: Lines should be cut at the borders of a raster. For example, the purple ...
  • 33
1 vote
0 answers
42 views

Shifting multipart labels for an entire layer results into disappearing labels

When I attempt to move a multipart label, all of the labels asides the one I am moving disappear. How can I manually move a label and preserve all of the corresponding multipart labels using QGIS 3.60?...
  • 143
1 vote
1 answer
83 views

PostGIS where clause not working as expected with multipart geometry

I am running an intersect from a subset of one table on itself (this is part of a larger parameterized query but the issue in question arose out of this particular situation) using a CTE (zones in the ...
  • 460
1 vote
1 answer
476 views

Split Raster (by value) to Multi-Part Polygons

I want to convert a raster to multi-part polygons, using the raster value to determine which polygon each cell becomes a part of. I have provided an example of what I am looking to achieve below, ...
0 votes
0 answers
22 views

Part of feature belongs to wrong feature [duplicate]

Is there a quick way (without having to create new layers) to make the island circled in the bottom left a part of central america (dark blue) rather than a -part of Central France (yellow)?
  • 121
1 vote
0 answers
45 views

Detaching part of feature without detaching all parts from each other?

On this map, Denmark and Greenland are one feature, and I need them to be two features. How do I split them apart? If I use Singlepart to Multipart, I create a new layer where there is a feature for ...
  • 121
1 vote
1 answer
339 views

Output data of NDVI of multiple regions into table from GEE

I am using GEE for NDVI calculating. There are 150 more counties in USA. I am now stuck in outputting the NDVI ("interest" at code) of each counties listing with "OBJECTID" at the ...
  • 11
0 votes
1 answer
20 views

Segmenting a feature class based on the geometry of a multipart feature class

I have a single feature class representing tree canopy over the span of several cities. I want to segment it so that I can calculate the percentage of canopy per census tract. I'm using ArcMap 10.7.1 ...
1 vote
3 answers
317 views

Splitting map, island tied in same polygon as mainland using QGIS

I have a map originally as a shapefile. The map includes a country (mainland) and an island far away from the mainland. I want to cut the map so that only the mainland is shown and save it again as a ...
1 vote
0 answers
543 views

Forming Multipart Geometries (MultiPolygons) in PyQGIS

I am creating my own map tool which is supposed to be able to draw multipart polygons and upload them to the database. ( I know QGIS 3.4 has multipart geometry tool bar built in but because I want to ...