Skip to main content

Questions tagged [multi-polygon]

A MultiPolygon is a geometry whose elements are polygons.

Filter by
Sorted by
Tagged with
0 votes
0 answers
16 views

Storing OSM relations correctly as geometry in BQ

I am looking at the best/efficient way to decompose OSM relations and store as geography, currently I am using: https://raw.githubusercontent.com/tyrasd/osmtogeojson/gh-pages/osmtogeojson.js to ...
ebad malik's user avatar
0 votes
1 answer
39 views

ST_GEOGFROMTEXT Multipolygons converted to Polygons in BigQuery

I've stumbled upon an intriguing issue while working with MultiPolygons in BigQuery. When utilizing the ST_GEOGFROMTEXT function to parse a MultiPolygon containing multiple polygons, the output ...
ebad malik's user avatar
0 votes
0 answers
78 views

Converting CSV to MultiPolygon shapefile in QGIS

I have a MultiPolygon shapefile and the attribute table looks like this. The district names and state names are jumbled with special characters. I know I can use the replace function in the Field ...
Gopalakrishnan B's user avatar
1 vote
0 answers
50 views

Fully filling vector layer with polygons without dissolving the current polygons in QGIS [closed]

I have a vector containing flow paths for a specific area, with values ranging from 2-4. I want to fill in the rest of the area (to the red line boundary) with another/more polygons with a value of 1 ...
ashlaff's user avatar
  • 25
5 votes
3 answers
157 views

Converting multipart MultiPolygon to self-intersecting polygon in PostGIS

Is it possible to convert a MultiPolygon to a polygon when the result is a self-intersecting polygon? I have a bunch of MultiPolygons that are essentially originally formed to be multipolygons because ...
ambivalent's user avatar
2 votes
1 answer
71 views

is this posible to extract coastline or border line from multipolygon geojson but keep them separate

i have multipolygon cities , how to get coastline or border line that not intersect with other cities, and keep separate each cities, is that possible? there any software or programing method (like ...
good112233's user avatar
3 votes
3 answers
115 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
  • 33
1 vote
1 answer
116 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
180 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,847
-1 votes
1 answer
46 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
248 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
132 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
95 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
152 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
70 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
3 votes
1 answer
2k 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
255 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
51 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
  • 649
2 votes
0 answers
100 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
120 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
60 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
730 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
192 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
36 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,293
1 vote
0 answers
62 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
342 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
796 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
2 votes
0 answers
93 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
1k 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
9 votes
1 answer
207 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
88 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
171 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
797 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
173 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
45 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
570 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
64 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
636 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
129 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
270 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
5 answers
2k 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
318 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
361 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
  • 131
1 vote
0 answers
39 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
343 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
1k 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
  • 274
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