Questions tagged [multi-polygon]

A MultiPolygon is a geometry whose elements are polygons.

Filter by
Sorted by
Tagged with
0 votes
1 answer
36 views

Intersect a set polygons/multi-polygons at once and get the intersected polygon

I have a Geopandas data frame with five multi-polygons geometries. Now, I want to intersect all the geometries at once and get the intersected polygon out of it. I tried using unary union and ...
data en's user avatar
  • 145
1 vote
0 answers
27 views

Capture isolated parts of a polygon after difference operation in single polygons

In QGIS, I have two layers, each consisting of only one feature. After subtracting the grey layer from the orange layer, the resulting layer has also only one feature. I want to access all the ...
Jan Kl's user avatar
  • 11
0 votes
0 answers
24 views

When saving layer edits, rings get filled in

Recently we updated to the new QGIS Bialowieza. I recently got the following problem: edit layer<add ring< select the polygon and add the ring (the edit looks fine now)<save layer edits (the ...
Soof's user avatar
  • 33
2 votes
0 answers
37 views

Unwanted different line thickness in multipolygon's shared borders

I have a multipolygon in a Leaflet map in a R Shiny app. There is always one subpolygon selected to be displayed while the other subpolygons are hidden (i.e. it's fill is transparent and the others ...
bathyscapher's user avatar
0 votes
1 answer
123 views

Casting all geometries from SpatVector from type "MULTIPOLYGON" to type "POLYGON" in R

sf function st_cast() doesn't work on SpatVectors, and I've tried to look for a way to convert all geometries to single polygons, but to no success. Is there a way to do that in R ? I guess something ...
Léo Jacquat's user avatar
0 votes
0 answers
32 views

Possibilites to save/export a loaded CityJSON layer (loaded with the Plugin: CityJSON Loader)

I am wondering if it is possible to export/save a loaded CityJSON file? I want to to edit it and save it again. What I am wondering in which format I have to save/export it. I tried multi-polygon, ...
obrob's user avatar
  • 837
9 votes
1 answer
128 views

Deleting parts of MultiPolygon based on area using PyQGIS

I have a layer with MultiPolygons. Some of them have parts less than five m2 which I want to delete. The QgsGeometry class has methods: parts() and deletePart(self, partNum: int). On parts() I can ...
ThiPa's user avatar
  • 585
4 votes
1 answer
43 views

Dividing point layer according to boundary layer in QGIS

I have two layers: All the post offices in the city (point layer) Division of the city into boundaries according to their neighbourhood council (MultiPolygon layer) How do I split the first layer ...
Galv01's user avatar
  • 53
1 vote
0 answers
68 views

ST_MakeValid for MultiSurface type in PostGIS

I am trying to take a lot of overlapping (bullseye type shape) polygons and curve polygons and create a valid shape with the correct cutouts. I was previously using a query that converted the ...
Mikaela's user avatar
  • 19
1 vote
1 answer
362 views

shapely | Binary mask of Polygons' intersection

Goal: Create a binary 2d-array, that represents Points of intersection of a square Polygon with a MultiPolygon. from typing import List, Tuple import numpy.typing as npt from shapely.geometry import ...
StressedBoi_69420's user avatar
2 votes
1 answer
105 views

Euclidean distance from vector features for radiotracking data in R

I have a radiotracking dataset (ca 5000 rows) like this Animal Date Time Latitude Longitude Pepe 21/12/2020 23:00:28 52.25938 15.50511 Pepe 21/12/2020 19:00:15 52.26251 15.52726 Pepe 21/12/...
Franza's user avatar
  • 173
0 votes
1 answer
30 views

Masking two shapefiles with MultiLineString and MultiPolygon errors

I created a shapefile by converting a raster to a polygon using raster pixels to polygon tool and used this as a base layer to remove unwanted areas with difference tool. I added multiple shapefiles ...
Hasan's user avatar
  • 21
0 votes
0 answers
362 views

Shapely 2.0 from list of polygons to multipolygons

I have a geoJson file that contains some Regions boundaries. Based on this answer I made the following code to transform the boundaries coordinates into a MultiPolygon Shapely object. import json from ...
Nicolaesse's user avatar
0 votes
0 answers
61 views

GeoJSON edit: merge LineStrings to Polygons

I need to export a district border from OSM to GeoJSON. I made a program that extracts borders as LineStrings from OSM XML and saves it as GeoJSON file. Now I need to merge LineStrings into a Polygon ...
Eldar's user avatar
  • 1
0 votes
0 answers
38 views

Merge separate polygons inside of a single JSON that do NOT share a boundary

I am trying to see if there is a way to merge/connect polygons that do not share a boundary with one another. As you can see from the imagine, these are two polygons that I'm looking to connect, if ...
Wins1897's user avatar
0 votes
3 answers
156 views

Export polygon from shapefile as type: 'Polygon' (not type: 'MultiPolygon')

From a shapefile I try to export the contained polygons to GeoJSON. This works fine with right click on the layer > Export > Save as ... > Format: Geojson. The exported file then looks like ...
Milap's user avatar
  • 15
0 votes
0 answers
21 views

How can I automate polygon creation between a linear point path?

Working with shapefiles for a natural gas pipeline installation. I have the polygon for the LOD (limits of disturbance), and the surveyed station number point file that runs linear along that same ...
MrJoshua's user avatar
  • 271
1 vote
0 answers
91 views

Areal Interpolation polygon to polygon using ArcGIS Pro

I am using ArcGIS Pro 3.0.0. I have two multipolygons and I would like to interpolate the values of one polygon to the other. I found the Areal Interpolation tool which does exactly that. One of ...
Arthur_Morgan's user avatar
2 votes
1 answer
134 views

Extracting points by multipolygon and having separate point(s) output using ArcGIS Pro

I have a point shapefile that has 1.5 million data points and I want to extract the points that are within in each polygon of a multipolygon.shp file and have separate outputs. Let's say there are 32 ...
Arthur_Morgan's user avatar
2 votes
4 answers
973 views

QGIS clip tool error non-point (MULTIPOINT) geometry to point shapefile

I'm using QGIS 3.22.4 then tried 3.22.7. I am using the clip tool. The input layer is a point(point) shapefile (verified in layer properties under information-geometry section). I have tried this ...
TRC's user avatar
  • 21
6 votes
2 answers
220 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
  • 575
0 votes
1 answer
193 views

Google Earth Engine: Calculating image statistics for multiple study regions simultaneously

I am trying to calculate burned area for the districts of Punjab state. I have used following code var admin2 = ee.FeatureCollection("FAO/GAUL_SIMPLIFIED_500m/2015/level2"); var state = ...
Monish's user avatar
  • 121
1 vote
0 answers
23 views

Fix Separated MultiPolygon Layer

I was given a parcel shp, and I found there's a lot of segmented of a single parcel. The geometry type of the layer is MultiPolygon, like the following picture. It seems to me, the original data was ...
Cookie's user avatar
  • 169
0 votes
1 answer
255 views

How to run Google Earth Engine analysis on very large MultiPolygon without timeout

I am running analysis on forest area MultiPolygons to calculate tree cover loss using the Hansen et al dataset (ee.Image('UMD/hansen/global_forest_change_2020_v1_8')). I am running into problems ...
Henry G's user avatar
1 vote
1 answer
558 views

Merging two polygon features (GeoJSON file) using QGIS

i've seen this tutorial that explains how to merge two polygon features in QGIS. Doing it works, but when I stop editing the layer, I got a message Could not commit changes to layer drawingPolygons ...
gordie's user avatar
  • 246
1 vote
0 answers
1k views

Shapely intersection between LineString and multiple Polygons

I am trying to get a function to return True when a LineString intersects with any polygon in a list of polygons. Currently, I am using a for loop to iterate through all the polygons and check one by ...
sopafria554's user avatar
3 votes
1 answer
351 views

Why are my area calculations in Python so small with .area()?

I'm trying to calculate the area of a flood with Python, but the results seem way too small: iceye_breaks = iceye_breaks.to_crs("+proj=cea +lon_0=0 +x_0=0 +y_0=0 +lat_ts=45 +ellps=WGS84 +datum=...
UniStudent's user avatar
1 vote
1 answer
728 views

Clipping shapefile with MultiPolygon shapefile in GeoPandas

I have a shapefile (will be called source-file hereafter), which I need to clip by a MultiPolygon shapefile so that I can have a clipped shapefile for each polygon. I tried the GeoPandas, though I am ...
Asif Marazi's user avatar
1 vote
1 answer
392 views

Creating a Polygon, with a hole, in Shapely

So I have two polygons: (i) An outer polygon, and (ii) an inner Polygon representing the 'hole'. I'm trying to merge these two to give a single Polygon, with the hole. For easy illustration, the outer ...
NewLearner991's user avatar
5 votes
2 answers
136 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
  • 28.8k
6 votes
2 answers
699 views

Filling gaps within a multipolygon using Python

I would like to know how can I fill the gaps within a multipolygon. The convex hull isn't the proper solution, since they change the geometry completely. I have attached a sample figure of such a ...
rmj's user avatar
  • 367
3 votes
2 answers
308 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,137
-1 votes
1 answer
79 views

Subsetting a specific number of features in a large dataset so that they are all together in ArcMap

I have a very large feature layer consisting of polygons of different sizes. I need to select or subset a certain amount of features (say I need 4 polygons of size x, 6 polygons of size y, and 10 ...
Daniel's user avatar
  • 1
5 votes
3 answers
935 views

Using Union tool over MultiLineString in polygons layer in QGIS

I created a polygons layer in QGIS 3.22.2 by creating circular buffers around points. I need to Union them by intersecting the overlapping parts. After running for several hours, the Union tool gives ...
edge's user avatar
  • 219
3 votes
1 answer
379 views

Turning overlapping MultiPolygons into not overlapping areas

I have a layer containing MultiPolygons. These MultiPolygons do overlap each other and do have a not unique attribute time containing integers. The number of polygons per layer vary as well as the ...
MrXsquared's user avatar
  • 31.2k
0 votes
2 answers
369 views

Geoserver connects multipolygon

I'm trying to render a layer wich contains some polygons and some multipolygons in geoserver. While polygons are rendered correctly, multipolygon are not. Geoserver renderer connects the last point of ...
Federico Xella's user avatar
4 votes
1 answer
192 views

PostGIS generate center POINTS from multilinestrings and multipolygons (for each line and polygon) in the memory

Let's assume, I have a mixed geometry type table in PostgreSQL The multipart geometries don't intersect themselves. I would like to generate a center point collection from every geometry. I know how ...
David Gregor's user avatar
0 votes
1 answer
2k views

How to get union of multiple polygons in Google Earth Engine?

I would like to get the union of m (m is variable) different (multi)polygons in Google Earth Engine. The attribute .union() only works with two polygons. See example below for what I have till now. ...
justin fiedler's user avatar
2 votes
1 answer
344 views

PostGIS: Split polygons into intersecting and non-intersecting and grouping on overlap

I have a big query that I am looking to optimize. I am matching millions (expanding daily) of rows with Points against a mostly read-only table of (tens of thousands of) areas with (Multi)Polygons. ...
Goddesen's user avatar
2 votes
0 answers
63 views

Selecting polygons within other polygons in the same layer in QGIS

I am trying to filter out certain infrastructure from OSM data and convert everything to simple point layers using QGIS. I have an OSM shapefile containing polygons of schools. In many instances, ...
Juli's user avatar
  • 29
2 votes
1 answer
167 views

Cleaning up holes in MultiPolygon using QGIS

This is a screencap of my map in QGIS: Those orange bits in the middle of each section are actually holes in the GeoJSON file and I can't make them go away. I've tried using the "Vertex tool&...
Jay's user avatar
  • 31
2 votes
2 answers
763 views

Turn a MultiPolygon with Nested Shells into a Polygon with Holes

I am reading GeoJSON into shapely objects and need help, I have a massive MultiPolygon with several nested Polygons in it. I believe this is why it is not considered a valid shape? as_shape.is_valid -&...
Vincent Buscarello's user avatar
2 votes
1 answer
384 views

Getting the bigger polygon of Multipolygon

I have a Multipolygon that has 5 separate polygons and I want to get only the geometry of the biggest polygon. How can I get the largest polygon from the multipolygon?
Mahmoud Adel's user avatar
3 votes
2 answers
278 views

Buffering around all borders of EEZ regions in QGIS

I have a layer containing points (in yellow) and a layer containing the Exclusive economic zones of all countries (as polygons, its geometry is MultiPolygon). See the image below: I would like to ...
Max Muller's user avatar
0 votes
1 answer
294 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
3 votes
0 answers
77 views

Error using PostGIS query in MultipolygonZ type data [duplicate]

I am using this query in MultipolygonZ type data in my PostgreSQL database, but I got error for so many times the data is not rendered properly in PostgreSQL with PostGIS extension. PostGIS query:- ...
Ayush's user avatar
  • 41
0 votes
1 answer
92 views

Partial perimeter in ArcGIS

I have a set of polygons, in turn formed by several polygons. Let's suppose a large polygon formed by three smaller polygons. Is there any method to know the outer perimeter of the set of three ...
sunpit's user avatar
  • 1
4 votes
1 answer
2k views

Splitting MultiPolygon shapefile into separate Polygons in R

I have a polygon shapefile with 2 features. I want to split the MultiPolygon shp into separate shapefiles based on a column of the attribute table. What I've tried so far is this code based on that ...
Nikos's user avatar
  • 762
4 votes
1 answer
379 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
0 votes
0 answers
53 views

Opening one corresponding related table in attribute form for selected feature in multipolygon in QGIS

I have MultiPolygon A with 9 features, each feature should be described by one non-spatial attribute table with 10 - 500 features. I tried to create 9 relations like A-to-Table1, A-to_Table2 ...A-to-...
Olha Marinich's user avatar