Questions tagged [multi-polygon]

A MultiPolygon is a geometry whose elements are polygons.

Filter by
Sorted by
Tagged with
2 votes
3 answers
89 views

Identifying which points belong to which part of the Multipolygon after extracting vertices in QGIS

I currently have a layer which is composed of different areas. I want to extract the coordinates of the vertices of the shape to CSV in QGIS, which I successfully am able to do by using extract ...
Buce1's user avatar
  • 23
1 vote
1 answer
95 views

Finding rectangular polygons in a multipolygon

I'm trying to do some analysis that requires finding rectangular gardens of a certain size. At present, I only have access to a data set of property extents with buildings punched out with the ...
CitizenFish's user avatar
3 votes
1 answer
88 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,565
-1 votes
1 answer
37 views

Converting Here API WKTShapeType Multipolygon To GeoJSON?

I have access to a data source that looks like: "Shape": { "_type": "WKTShapeType", "Value": "MULTIPOLYGON (((-128.9102 50.82492, -128.90881 50.82422,...
Lloyd Banks's user avatar
1 vote
1 answer
75 views

Moving individual polygons in QGIS

In QGIS I am using the "BreederMap" plugin to define the layout of a large wheat field trial with 10m2 plots. Unfortunately, the lines are not exactly straight (sowing done without GPS and ...
Artūrs Katamadze's user avatar
1 vote
1 answer
124 views

What's the best way to 'split' this layer (QGIS)?

I'm quite new to all this. I have this polygon (MultiPolygon) which represents two areas (being visually separate), and now I want to split it so I have two polygons representing two different areas. ...
Meghan's user avatar
  • 19
1 vote
1 answer
77 views

How to remove small polygons using Python

I would like to perform in Python, the action done by the following QGIS command: Processing Toolbox > Vector Geometry > Keep N Biggest Parts It removes the smallest polygons from a ...
Oalvinegro's user avatar
0 votes
1 answer
49 views

Simplify multipolygon in Google Earth Engine

I am working on Google Earth Engine and trying to simplify a multipolygon by first reducing its vertices and then removing unnecessary polygons that have fewer than 5 vertices. var gaul = ee....
Faisal's user avatar
  • 3
2 votes
0 answers
52 views

QGIS converting MultiPolygon to MultiSurface - can I disable QGIS from doing this?

I have MultiPolygon data stored in a PostgreSQL DB (13.9) and am editing this through QGIS (using 3.28.3-Firenze). Occasionally when editing, some features are saved back as MultiSurface features. ...
G_BOP's user avatar
  • 21
1 vote
0 answers
51 views

Calculate maximum number of circles to fill unique polygon [duplicate]

I want to find how many of Polygon B can fit into Polygon A. I have a database of water bodies in the US as polygons of various unique shapes, 'Polygon A'. I have another layer with 'Polygon B' which ...
Alvarado10's user avatar
2 votes
1 answer
673 views

GeoPandas error - GEOSException: TopologyException: side location conflict

I have a GeoDataFrame with fields: "Site","Group","Area", and "geometry" column with MultiPolygons. I try to unite rows based on the "Site" and "...
Omer Tzuk's user avatar
0 votes
1 answer
105 views

How to use raster::extract() with a multipolygon sf dataframe in R?

I have an sfc Multipolygon data.frame with roughly 7000 polygons. Now I want to extract the mean cell values for each polygon that overlaps a raster file with a resolution of 2x2m (many many cells) ...
user18791303's user avatar
1 vote
1 answer
45 views

Join non-spatial CSV layer with spatial shape layer, using multiple input fields

I have two separate layers i want to join in my QGIS-project based on multiple matching input fields. One layer consists of a non-spatial CSV table, but with the matching fields: Streetname, House ...
JTHW's user avatar
  • 13
0 votes
0 answers
14 views

Displayed entities toggle at each zoom level on OpenLayers map [duplicate]

I have a PostGIS table connected to my GeoServer in which I have published a layer of 80 multipolygon features. The multipolygons have very different sizes and are displayed correctly in the ...
GisUser's user avatar
  • 633
2 votes
0 answers
87 views

Use psycopg in pass parameter of type geography(MultiPolygon, 4326)[] to PostgreSQL function

I am using PostgreSQL + PostGIS to save a country border. Following is the table definition: CREATE TABLE IF NOT EXISTS country ( id UUID PRIMARY KEY DEFAULT gen_random_uuid(), name VARCHAR(...
timewalker's user avatar
1 vote
1 answer
82 views

Multipolygon to Points

I'm currently mapping out around 10 layers worth of polygons all in a polygon feature as shown in the image below. I'm now trying to create a heatmap for each layer to show where lies the highest ...
Sheng-Ru Lai's user avatar
0 votes
1 answer
34 views

Getting a multipolygon from Overpass as a way

There's this Multipolygon that exists and I want to get the land area it covers so I can calculate surface area. https://www.openstreetmap.org/relation/12620768#map=18/42.34277/-71.12306 I have my ...
Devin Matté's user avatar
0 votes
1 answer
385 views

Using st_intersects to classify points in a multi polygon

I have a list of lat/lons and want to determine which county they belong to, by intersecting them with multi polygon dataset using sf::st_intersect. I can successfully perform the intersection and get ...
Jaken's user avatar
  • 93
0 votes
1 answer
107 views

Get only polygons inside a bbox

I have a shapefile that has many polygons, here is an example: Now, what I want to do is show the polygons that are around one particular location. So I don't have to show all the polygons. So I ...
John Smith's user avatar
1 vote
1 answer
29 views

3D symbol transparency for polygonZ layer in 3D map view

I have a MultiPolygonZ layer and I would like to add some transparency to its surfaces but in the 3D symbol for polygon layer there is no opacity parameter (contrary to point and line layer). The ...
dmjf08's user avatar
  • 1,263
1 vote
0 answers
57 views

QGIS: multipolygon vector shapefile -> problem to correct latitude

I am currently working with QGIS for my master thesis (without much previous experience). I was provided with a shapefile containing MPAs (marine protected areas: see picture below). The latitude is ...
Débora Carmo's user avatar
4 votes
3 answers
271 views

Calculating minimum river width for a route within the river in PostGIS/Python

I have a complex ancient river system containing islands and multiple channels. I also have line segments defining a vessel's path along the river: I use PostGIS to hold the data, the river system is ...
ronix75's user avatar
  • 41
0 votes
1 answer
582 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
35 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
46 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
75 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
1 vote
1 answer
758 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
78 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
  • 857
9 votes
1 answer
177 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
  • 649
4 votes
1 answer
80 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
143 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
702 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
164 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
42 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
535 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
60 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
1 vote
3 answers
537 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
  • 25
1 vote
0 answers
119 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
225 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
1k 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
295 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
0 votes
1 answer
316 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
35 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
  • 355
0 votes
1 answer
326 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
942 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
  • 256
1 vote
0 answers
2k 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
457 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
1k 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
550 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
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.8k