Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [polygon]

On a map, a closed shape defined by a connected sequence of x,y coordinate pairs, where the first and last coordinate pair are the same and all other pairs are unique.

1
vote
0answers
41 views

How to remove narrow 'notches' in polygons?

I am currently working on a project where i am doing a union on several feature classes. The union normally creates several polygons which share edges/borders. however after running dissolve on the ...
0
votes
1answer
39 views

Identifying polygons in two separate layers with a large (>85%) overlap

I have two separate layers and I want to identify polygons that overlap more than 85%. When I try "Extract by location" tool it gives me the polygons that overlap even in small areas. I am using QGIS ...
3
votes
2answers
79 views

Assigning numbers to grid of polygons using ArcPy?

I would like to number the shown grid of polygons. The numbers should go left to right top to bottom, starting at 1. I'm using ArcGIS Desktop with a Basic license, and would prefer to do this with ...
1
vote
1answer
49 views

Can OGC Simple Feature polygon's interior boundaries share an edge?

Is the polygon pictured below compliant with the OGC Simple Feature standard? There are two interior boundaries that share a segment so intuitively I would say it is not but I have not been able to ...
5
votes
1answer
210 views

Only union/dissolve intersecting features to save time?

I have one table of about 300k polygons, some intersecting but most do not. I need to dissolve the intersecting ones and also keep the non-intersecting ones. I only need the geometries, no attributes. ...
0
votes
1answer
235 views

Geopandas - Import CSV: make polygons from X,Y Coordinates based on ID

I'm working on a script, where I want to import a CSV file with coordinates and an ID which should be used to make a polygon shapefile from those. CSV file looks like this (example): ID, X, Y 10,15....
1
vote
1answer
31 views

Polygonal shapefile: dissolving adjacent ones

I would like to solve a issue related to a land use shapefile. I would like to "merge/dissolve" just the adjacent polygons that have the same attribute. How can I do this using QGIS?
2
votes
1answer
49 views

Calculating nearest distance between polygons according to attribute field in ArcGIS Desktop?

I have a two polygon shapefiles, one shapefile is a zoning and the second one is a census tract. Now I want to calculate distance from boundary of tract to closest boundary of each zone type (R, C, ...
1
vote
1answer
170 views

Calculating area of overlap between two polygons in separate layers using QGIS?

I have 2 layers with 1-1 polygon. The polygons are overlapping. How do I calculate the area of the overlap using QGIS?
2
votes
2answers
48 views

How can I buffer a mulipolygon only on the coastline?

How can I achieve something similar to the below image? (Apologies for the crudely drawn diagram) Either in QGIS or PostGIS. I have a series of station grounds and I want to retain the inner ...
2
votes
2answers
54 views

Get single part polygon by their intersection in PostGIS

I have a table in PostGIS that has polygons overlapping each other. (see below an example of 4 overlapping polygons ) Someone could give me an idea, what PostGIS function I can use that give me ...
1
vote
0answers
47 views

Filling polygon with point in PyQGIS? [closed]

I found what seems to answer my question by @xunilk in this closed post: Filling polygons with points or polygons using PyQGIS? I follow the example of @xunilk with some modifications to adapt to ...
1
vote
1answer
61 views

24412: Not valid because the interior of a polygon with rings (2) and (1) is not connected

I've got geography in sqlserver that is invalid. Running IsValidDetailed() I get the reason as 24412: Not valid because the interior of a polygon with rings (2) and (1) is not connected. But I don'...
0
votes
1answer
251 views

How to exclude one specific polygon from a layer which have like 20 diffirent polygons? [closed]

I have a layer with like 20 polygons which I imported from Google Earth Pro. And what I am trying to do is to exclude (isolate) that one big polygon which is in a way of all other smaller ones so ...
1
vote
1answer
57 views

Dissolve polygons based on number of polygons

How can I dissolve group of polygons into many polygons based on specific number? For example I have 100 points which are beside each other I need to dissolve each nearest 5 polygons into 1.
2
votes
1answer
60 views

Automatic cleaning of polygon overlap based on attribute in QGIS

I have a shapefile with overlapping polygons. I need to clean these overlaps based on an attribute: in case of polygon overlap, the polygon with the lowest value of a given attribute needs to be ...
1
vote
2answers
40 views

Polygons from different layers

How to create a map with polygons from all the different layers? I'm using ArcGIS Pro and it does not have Overlay analysis tool.
1
vote
2answers
177 views

Getting a masked raster with no NAs and sum pixels within overlaying polygon?

I have done an IDW interpolation in R for precipitation data following the routine of Manny Gimond (https://mgimond.github.io/Spatial/interpolation-in-r.html) to get precipitation inside a catchment. ...
1
vote
0answers
44 views

SumLineLengths in QGIS 3.2 not working?

I'm trying to use the Vector > Analysis Tools > Sum Line Lengths in QGIS version 3.2.3-Bonn. I'm inputting a ploygon (Multi Polygon) and a Lines (MultiLineString) shape files. I'm hoping to get the ...
0
votes
0answers
26 views

KML: Making all points on a polygon relative to ground by same amount?

I need to generate large polygons that are all on the same plane but are all some relative distance from the ground. I need to do this without knowing what the absolute altitude is. So imagine I am ...
2
votes
0answers
29 views

Creating a continuous raster road network using Polygon to Raster in ArcGIS Pro?

I have a polygon forest road network that I would like to turn into a raster. I have attempted to use the ArcGIS Polygon to Raster tool, but whenever the majority of a cell falls outside of the ...
0
votes
0answers
76 views

New Shapefile (Polygon) Disappearing in Edit Session ArcGIS 10.6.1

I created a shapefile in ArcCatalog and assigned it its coordinate system as I always do. I selected "polygon" as the type. I added a generic topographic basemap to ArcMap. Upon editing the new ...
0
votes
0answers
40 views

Data Source (s) for names and polygon shapes for the world [duplicate]

I am looking to find out where I can ideally get every country, district, city, town, postcode in the form of polygons. Is there a central place for this? What are the licences for using the data?
1
vote
1answer
80 views

Count points in polygon (weighted) for multiple attributes in QGIS 3 in one go

Is there a way to count weighted points inside polygons for multiple attributes at one time? I can count weight points (below) for an individual attribute, which creates a new polygon layer with an ...
2
votes
1answer
102 views

Calculate polygon main dircetion and create line from it - POSTGIS

I would like to find out the orientation of a polygon and create a line of that direction. See image below.
0
votes
1answer
43 views

Unable to resize polygons/lines imported from Google Earth PRO Using KML Tools

I imported all my files from Google Earth Pro into QGIS and I need to resize some of the polygons (after agricultural job is done, some of fields get bigger or smaller; from corn we go to soy etc.) ...
0
votes
1answer
128 views

Digitizing polygons by cut or split feature tool in QGIS

For saving digitizing time i created one polygon feature cover all satellite imagery (study area) and styled it outline, tried many tools inside qgis 2.18 to split / cut polygon features (i don't mean ...
1
vote
1answer
33 views

Clipped raster not retained when saved

I have clipped a raster to exact polygon outline using image analysis (ArcMap 10). The resulting temporary clip layer is exactly how I want it to be. However, when I export/save the temporary clip ...
1
vote
0answers
99 views

QGIS “Sum Line Lengths” return 'nan.'

I have a polygon shapefile and a (merged) line shapefile (both are zipped). When I use Vector -> Analysis Tools -> Sum Line Lengths on these shapefiles, I get a layer with some of the LENGTHS filled ...
0
votes
1answer
125 views

Filling polygon with png pattern in OpenLayers?

I want to fill a set of polygons with png pattern. Here is an extract of my code : var canvas = document.createElement('canvas'); var context = canvas.getContext('2d'); var pattern; var imageObj ...
3
votes
1answer
63 views

Clipping polygon layer to another polygon layer based on matching attributes using QGIS?

Working in QGIS, I have two polygon layers: Building Footprint Polygon Layer Parcel Polygon Layer These two layers have a matching field in the attributes known as "Parcel Number". I would like to ...
3
votes
1answer
123 views

Select only lines that touch both sides of polygon - PostGIS

I want to select lines that only touch both sides of a polygon. Is there a function in postgis that can do this? See image below. I only want to select lines from the circle on the left where the line ...
0
votes
0answers
39 views

Split Polygon to match length of lines with QGIS

I have a large polygon shapefile with many features (green), representing waterbody outlines, and a line shapefile (brown) representing river sections. I now want to split the polygon features into ...
0
votes
0answers
33 views

Polygon overlay over an imagery in Google Earth Pro

Is there a way for me to overlay the polygon on the top of the imagery in Google Earth Pro ? I exported an imagery from another software and save it as shapefile I use the Open from the File menu to ...
1
vote
1answer
122 views

Intersecting raster with polygon grid in ArcGIS Desktop?

I'm trying to generate the fractional coverage of land-cover within polygon grid cells. My land-cover is a 30m raster dataset (10008x8939 cells) and my grid is a fishnet shapefile (approximately 1km ...
4
votes
1answer
97 views

Styling polygon layer with symbols that indicates value of attribute of polygon?

I want the same thing, but the number of dollars shown should indicate the value of the attribute of the polygon. For example one polygon may have 2 dollar icons indicating 200 (value of an attribute, ...
0
votes
1answer
31 views

Clipping Raster Object with Polygon Object in ArcPy?

I have about 400 rasters that I want to clip each of them based on a polygon object. The code I tried to use is the following: import arcpy, os origpath = ur'd:\test' jpgs = [f for f in os.listdir(...
1
vote
1answer
55 views

PostGIS Centroid coordinates (E, N)

I would like to add two new columns in the table (E, N), fill in the coordinates of a polygon centroid using PostGIS SQL code and have the column upadated as soon as I save the edit of a drawing in ...
2
votes
0answers
99 views

Copy polygons to another layer with different attribute

I am working in QGIS 3.0.2-Girona. I am digitizing images in which there are rocks that can be encrusted, totally or partially, by algae. I want to have a polygon for the rock and one for the algae. ...
0
votes
1answer
162 views

Calculating area under each polygon in QGIS [duplicate]

I would like to know how to calculate the area of the vector layer (red in the photo) under each polygon (white square in the photo). The red layer has the area (km2) in its attributes. But what I ...
0
votes
2answers
574 views

Calculating polygon area within polygons in QGIS?

I am new to QGIS - I want to estimate the area of the reef under a polygon grid. My shapefiles are already in meters, however I am having a hard time calculating the area under the grid layer. ...
1
vote
1answer
101 views

Split and merge polygons by ID and Feature value in python or QGIS

I have a spatial dataset with two major columns: county_name and group_ID. The spatial polygons are represented by each county_name. Some counties share the same group_ID, while some counties contain ...
0
votes
1answer
182 views

Add a polygon programmatically in OpenLayers 3?

I added a point like this and it works fine, but for polygon it's not working. var iconFeature = new ol.Feature({ geometry: new ol.geom.Point([8637791.36, 1456487.82]), name: '...
0
votes
0answers
112 views

Does Redis geo have the capability for storing polygon?

I followed the example here and also here about geospatial support in Redis. I tried to add POINT features to my Redis dataset, and subsequently I can query POINT names within certain radius of a ...
1
vote
0answers
27 views

Define polygon with even number of points?

I have the following problem..... I have a client that needs an equal number of schools divided up between 8 different zones. The state I am looking at is the state of Maryland. They want to use ...
2
votes
2answers
466 views

Make polygon circular in QGIS

I have drawn a polygon in a shape-layer, but it's not perfectly circular. Is there a way to either Draw a circular polygon with a given radius (in a shape-layer) Make a polygon into a circle I have ...
6
votes
3answers
121 views

Using ArcGIS to extend a polygon in one direction up to the edge of another polygon

I have two shapefiles: the first containing a route defined by a single polygon (black line in the image below), the second containing a series of between 1000 and 4000 small polygons located ...
2
votes
2answers
54 views

Performing multiple intersections between two polygon tables and one raster table in PostGIS?

Trying to perform an intersection of an intersection in PostGIS. Its an intersection between a point table, polygon table and a raster table with different number of rows. The polygon table is the ...
2
votes
0answers
41 views

Calculating individual width between buildings using ArcMap?

I have a building footprint shapefile and I would like to calculate the individual width between each building (i.e., adjacent building and across the street). I have looked at solutions which use the ...
2
votes
3answers
448 views

Clipping GeoTIFF with shapefile?

I have a GeoTIFF file and a shapefile. I want to clip the GeoTIFF file using the polygons defined in the shapefile in such a way that it produces a separate output for each polygon (which is different ...