Questions tagged [multi-polygon]
The multi-polygon tag has no usage guidance.
24
questions
4
votes
1answer
32 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
30 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
256 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
71 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
157 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
59 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 ...
1
vote
2answers
36 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
49 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
17 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
34 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
44 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
49 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 ...
4
votes
1answer
349 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
104 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
62 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
27 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
46 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
111 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
62 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
27 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
167 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
407 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 ...