Questions tagged [multi-polygon]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 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 ...
  • 1
0 votes
0 answers
19 views

SQL Union of MultiPolygons on a large scale

I am still new with GIS data. I have imported US Census blocks and block groups polygon shapes into 2 different Geometry tables. (did so with an R script which had no issues). What I am looking to do, ...
0 votes
0 answers
17 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 ...
0 votes
3 answers
40 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 ...
  • 15
0 votes
0 answers
16 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 ...
  • 261
1 vote
0 answers
56 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 ...
2 votes
1 answer
61 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 ...
1 vote
3 answers
204 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 ...
  • 11
6 votes
2 answers
171 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 ...
  • 563
0 votes
1 answer
69 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 = ...
  • 121
1 vote
0 answers
21 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 ...
  • 159
0 votes
1 answer
104 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 ...
1 vote
1 answer
174 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 ...
  • 189
1 vote
0 answers
719 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 ...
2 votes
1 answer
213 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=...
1 vote
1 answer
367 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 ...
1 vote
1 answer
188 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 ...
5 votes
2 answers
104 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 = ...
  • 24.6k
6 votes
2 answers
378 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 ...
  • 357
3 votes
2 answers
196 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?
  • 7,777
-1 votes
1 answer
52 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 ...
  • 1
5 votes
1 answer
450 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 ...
  • 209
3 votes
1 answer
171 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 ...
  • 27.4k
0 votes
2 answers
218 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 ...
3 votes
1 answer
111 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 ...
0 votes
1 answer
1k 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. ...
2 votes
1 answer
217 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. ...
2 votes
0 answers
58 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, ...
  • 29
2 votes
1 answer
117 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&...
  • 31
2 votes
2 answers
356 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 -&...
2 votes
1 answer
204 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?
3 votes
2 answers
153 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 ...
0 votes
1 answer
170 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
3 votes
0 answers
75 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:- ...
  • 41
0 votes
1 answer
46 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 ...
  • 1
3 votes
1 answer
1k 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 ...
  • 367
4 votes
1 answer
186 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
0 votes
0 answers
45 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-...
4 votes
1 answer
3k views

Converting from MultiPolygon to Polygon in PostGIS

I have a table in PostGIS, where the data is currently stored as a MultiPolygon. Each Multipolygon has only a single Polygon in it. How do I query and get the containing Polygon, and not MultiPolygon? ...
7 votes
3 answers
3k views

R/sf: Some edges are crossing in a MULTIPOLYGON. How to make it valid when using S2 geometry?

Goal: I would like to know the NUTS region (2016 version) of points in Europe. Method: (1) Download the official geodata from Eurostat, (2) Use st_join from sf with R. Problem: I've updated sf, now ...
  • 795
1 vote
0 answers
108 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
0 answers
262 views

How to convert a multipolygon to multiple single polygons

I have a polygon clipping function in my OpenLayers app which may return me a multipolygon. Unfortunately, my app does not support multipolygons by design. So I need to convert a multipolygon to ...
  • 423
1 vote
1 answer
225 views

QGIS Difference Algorithm: multilinestring won't work with multipolygon layer

I am working with two vector layers in QGIS (location: Indonesia). I want to 'subtract' the area of layer 1 ('Forest_buffer') of layer 2 (Scenario_1). I am using the Difference algorithm. Layer 2 is ...
1 vote
0 answers
305 views

Extend the contours of the polygon into a polygon

I would like to be able to extend the vertices of one polygon to the edge of another polygon, how does the snapping between poligons using python. The photo shows a representation of my problem. I ...
  • 405
3 votes
2 answers
154 views

Constructing grid over given position from polygons in QGIS

I have the following situation: I have a MultiPolygon Layer that shows some squares with the size of 100mx100m. The data looks like a raster: I want to construct a grid with the size of 100mx100m (...
  • 65
0 votes
0 answers
183 views

Optimizing minimum distance calculations between multiple polygons in R

I have a list of polygons and would like to create a minimum distance matrix by calculating the minimum distance between each possible pair. I am currently using the code below, but this is running ...
1 vote
0 answers
185 views

Getting error while trying to read multipolygon data using shapely wkt.loads (Python)

I have a CSV file from which I'm trying to read multipolygons using wkt.loads of shapely. While this works: from shapely import wkt x='MULTIPOLYGON(((18.62981086588664 73.79447461830097,18....
0 votes
0 answers
71 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
0 votes
1 answer
71 views

Matching polygons to intersecting polygons using ArcMap

I am trying to match a set of polygons (A) to another set of polygons (B) using ArcMap. Both sets overlap themselves, and each other. Here's an example of what it looks like in my data: The green ...
  • 1
2 votes
0 answers
50 views

Separate multipolygons into equal parts

I am trying to separate a multipolygon into equal parts. I am aware of the divide polygon plugin and that worked well for me in previous examples where a single polygon is involved. Unfortunately I ...
  • 21