Questions tagged [multi-polygon]

The tag has no usage guidance.

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

Optimizing minimum distance calculations between multiple polygons in R

I've already asked this question on stackoverflow, but here it seems more relevant. I have a list of polygons and would like to create a minimum distance matrix by calculating the minimum distance ...
1
vote
0answers
14 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
0answers
29 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 = ...
0
votes
1answer
25 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
vote
0answers
23 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 ...
0
votes
1answer
88 views

How to convert Multipolygon to GeometryCollection?

I get this error (Script Error, File too large: larger than 512kb) in Google Earth Engine and my layer is a Multypolygon, just with 86 polygons. I have another layer with 300 polygons without any ...
0
votes
1answer
14 views

How to flatten a PolygonZ onto the XY-plane using pygis

I want to flatten/project a PolygonZ onto the XY-plane. Although I wished for a method to flatten the whole object with the option of letting me decide what direction of the the line needs to be ...
1
vote
1answer
38 views

Rendering overlapping polygons without holes in multipolygon in Leaflet

Is there a way to render overlapping polygons without holes in multipolygon in Leaflet? I found Leaflet has an open issue. codesandbox.io I am asking because I have a bound polygon that contains inner ...
1
vote
0answers
33 views

Geometry converts from Polygon to Multipolygon in PostGIS

I'm having difficulties with the Geometry types in PostGIS and/or ArcPy and hope some of you can shed a light on what I'm missing or how I can fix it. I have a .gdb containing Polygons. The Table in ...
0
votes
1answer
33 views

Using symbology for representing start and end (polygon / point) in QGIS

I have records with two geometry columns per record. I have been looking at different options to show them in QGIS: Create two layers (one for start and one for end) Create a multipolygon that merges ...
4
votes
1answer
42 views

Creating polygons with “Create shapefile layer” always produce multipolygons instead of polygons when saving in QGIS

Not sure if is a bug or I'm missing something. Every time i'm creating a new shapefile with "Create shapefile layer" i got a multipolygon instead of a polygon (at least is what I'm expecting)...
2
votes
1answer
45 views

Error when calculating final polygon after subtracting all intersecting polygons using shapely

This question is a follow-on question from Calculating final polygon after subtracting all intersecting polygons using shapely which was answered. I have a list of centroids that I buffer to 5000 ...
6
votes
4answers
307 views

Taking only the largest polygon from multi-polygon layer in QGIS

I have multi-polygon geometries in my file, and I want to take only the largest polygon within the multi-polygon geometry to further work with it. I tried using Geometry Tool Multipart to Single part, ...
1
vote
1answer
82 views

Getting a count of points in a multipolygon?

I have a set of lottery retail locations, latitude and longitude, that I transformed to points and added the geometry column like this: ALTER TABLE lottery.retailers ADD COLUMN geom geometry(Point, ...
6
votes
3answers
224 views

Multipolygon supposed to be contained by another but returned False with Shapely

There are two multi-polygons a and A where a is supposed to be contained inside A. Using shapely, the following difference operator b = a.difference(A) print(b) gives POLYGON EMPTY However testing A....
0
votes
1answer
176 views

Change geometry type to Polygon and MultiPolygon in PostGIS

I try to insert geometry values into a column in PostGIS. However, the type of values is a mix of MultiPolygon and Polygon. I tried to change the column type to Multipolygon with: Alter table ...
2
votes
2answers
133 views

Create MultiPolygon from Dataframe column

I have a dataframe with a column called geo_shape, for each row in this column data is in the format str with the following structure: {"type":"MultiPolygon","coordinates"...
1
vote
2answers
56 views

PostGIS: Syntax for ST_Collect into a multipolygon keeping internal boundries

I have a PostGIS table with many polygons representing islands these all form a common group How do I create a new MultiPolygon (keeping internal boundaries) and give it a new name? CREATE TABLE ...
0
votes
0answers
35 views

R: extract z-value from 3D Multipolygon

I have a dataset with multipolygons that have a z-value, meaning they are three-dimensional. I read the dataset with sf::st_read(), so my dataset is in simple features format. This is my polygon: ...
1
vote
0answers
41 views

Converting multicolumns CSV to Raster Format

I need to convert multicolumn CSV file in a raster. I read some similar question, but my problem is that I have different columns in addition to "longitude" and "latitude" (I would ...
2
votes
0answers
61 views

Simplifying parts of polygons in QGIS

Is it possible to simplify just the selected parts of a polygon? I am trying to make a simplified version of the Australian Local Government Areas (LGAs) shapefile. I am using the v.generalise ...
0
votes
1answer
59 views

Geoserver Vector tiles hollow issue with layer

I am using vector tiles from PostGIS, Geoserver for the world layer, I have multiple layers for the global level, I have seen multiple holes and missing tiles of some boundaries in the layer of vector ...
5
votes
1answer
736 views

Creating centroid inside of polygon [closed]

I want to get the centroids of my multipolygons using Python and GeoPandas. But when viewing the polygons and the centroids points on QGIS, the centroids are not inside the polygons. Here is the code ...
0
votes
0answers
27 views

Simple way to convert GeoJSON from MultiPolygon into Polygon [duplicate]

I need a GeoJSON file that simply has the coordinates of the polygons for the boundaries of the provinces of Canada. I have a GeoJSON file but it has multipolygons and my software does not support ...
0
votes
1answer
288 views

ST_GEOGFROMTEXT Multipolygons converted to Polygons BigQuery

My table contains multipolygons in column called BoundaryWKT, which is in a string format. I used function ST_GEOGFROMTEXT(BoundaryWKT) to convert column of multipolygons from string format to a ...
1
vote
1answer
86 views

Export/convert Points to Polygon

I have to convert a .shp into a .csv file and upload it to the SQL Server, for a program that only supports Polygon format and can not render Points. Is there a way to convert Points to Polygon or is ...
1
vote
1answer
29 views

Extracting categorial data from neighboring polygons from st_intersects [closed]

For each polygon in an sf object, I need to extract data on a single variable from all of the neighboring polygons. I have made a reprex below. So far I have managed to get a list of the neighboring ...
0
votes
0answers
37 views

Vector data and geometry changes inexplicably when you zoom in

I am trying to make use of a multipolygon vector file representing electric utility service territories, with really interesting data tables. However when I read it in QGIS or OpenLayers it has a ...
1
vote
1answer
124 views

ogr2ogr Conversion Clockwise to Counterclockwise?

Looking for the right combination of ogr2ogr parameters to get a .shp bundle to GeoJSON and reverse the Coordinate pairs. I recognize that ESRI defines Polygons as clockwise (http://www.esri.com/...
1
vote
2answers
150 views

PostGIS: create new polygons in between existing?

PostgreSQL: I have a PostGIS multipolygon table containing millions of features. It covers 95% of the country, however there are gaps between individual polygons. How can I fill these gaps with new ...
0
votes
1answer
83 views

How can I create multipolygon using shapely?

I am going to create polygon, but it produce invalid polygon form this data: [[ 0 438] [ 0 428] [ 0 427] [ 6 428] [ 9 434] [ 11 439] [ 7 443] [ 3 446] [ 0 448] [ 0 452] [ 0 452] [ ...
1
vote
1answer
30 views

Using multipolygon shape layers in profile tool

I am working with QGIS for some time. The profile tool is indeed very useful to visualize the 3D problems. My problem now is associated with this tool. I have a multi polygon shape layer which I ...
1
vote
2answers
290 views

Convert a polygon geopackage into a multi-polygon geopackage in QGIS

I have a series of polygons in a geopackage file of QGIS polygons. Is it possible to transfer the contents of this file to another geopackage that has multipolygons as vector data type? I need to fix ...
0
votes
1answer
766 views

QGIS export to GPX: Error “Geometry type of 'multi polygon' not supported” (GPS tools) [duplicate]

I am trying to convert a shapefile with multiple polygons to a GPX file in QGIS 3.10.3, which has now repeatedly failed with varying export settings since "MultiPolygon" is not supported. I have ...