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.

Filter by
Sorted by
Tagged with
2
votes
0answers
24 views

Largest polygon inside a GeoJSON multipolygon

How to find the largest polygon in GeoJSON of type multipolygon so that I can add a Leaflet tooltip to the largest polygon rather then a random polygon in multipolygon?
0
votes
0answers
6 views

Select OSM admin boundary which links with pelias geocoder result

We use pelias geocoder environment in our project. There is a case "selection a polygon, which links with pelias result." For example we choose "Muenich" in search field -> on client we see this: ...
1
vote
1answer
22 views

Making black and clear raster image from polygon in QGIS?

I have made a polygon in QGIS (I just drew a polygon), but how do I make this into a raster image? I want the raster image to be black (where the polygon was) and clear where the polygon wasn't. I ...
1
vote
3answers
42 views

Clipping polygons and lines at exact borders within PostGIS

I have OSM data of the whole world in a PostGIS db. For some reasons, I want to work with tables which have only data from a given bounding box inside. I create this tables with following command: ...
0
votes
0answers
20 views

combine layers in qgis

I have a Shapefile that includes country divisions (Polygon). I have another Shapfile that relates to the country's roadmap (Path). I also have another Shapfile that relates to the village points (...
2
votes
0answers
35 views

Make biodiversity heatmap in QGIS out of polygons and not points

I would like to make a biodiversity heatmap in QGIS out of polygons and not points. I have a shape file made up of many overlapping polygons. I know how to make a heatmap with a set of points by using ...
0
votes
0answers
7 views

Choosing correct GeoJSON from several available polygons from OSM city relation ID

For our MultipliCity tool, I'm adding outlines of cities as system boundaries. I get the city outlines by taking the relation ID from openstreetmap and use the great "Convert Open Street Map relation ...
0
votes
0answers
12 views

Maplarge table does not return all expected polygons for an “Overlaps” test

I am working with Maplarge for a weather-related app. We use a table that ingests Hurricane data from either NOAA or another gov agency (I'm not positive). The polygon's in question are WKT strings ...
0
votes
0answers
35 views

Eliminate difference between the area of polygons?

I am working with the shapefile of ecoregions. Arctic desert ecoregion is lying across two continents (Europe and Asia). According to Field calculator area of this ecoregion is 162787 km2. I have ...
-1
votes
0answers
19 views

Eliminating difference in area? [duplicate]

I have downloaded shapefile of ecoregions. I selected Arctic desert ecoregion to measure area using fields calculator. Area of this ecoregion is 162787,71 km2. Arctic desert ecoregion is lying over ...
1
vote
1answer
42 views

Calculating number of polygons needing to be crossed?

I have a bunch of polygons (parcels, green areas) and a bunch of wells (point, black triangles). How do I calculate the number of parcels I need to cross to get to the closest well to each parcel? ...
0
votes
0answers
12 views

R: Creating custom polygons based on geom of subset data [duplicate]

I hope that I titled this question correctly. Reproducible code: library(tigris) library(leaflet) colorado <- counties("colorado") leaflet(colorado) %>% addProviderTiles("CartoDB.Positron"...
1
vote
0answers
33 views

Generate equal distanced sections on polygon

I generated a polygon by buffering a reference line. What I want to do now is generating multiple equal-distanced points along the reference lines, upon which to generate sections on the polygon. A ...
2
votes
1answer
44 views

Original polygon is completely contained by new after simplifying

Is there a polygon simplification method that can create a polygon, such that the original is completely contained by the new one? The aim is to create the new polygon from as few points as possible ...
1
vote
0answers
25 views

Point and Polygon Intersection [closed]

I have a .csv with a column for ID, latitude, and longitude, which creates points. I also have a .shp file which creates polygons of a parcel. I want to be able to attribute the polygon to the point. ...
2
votes
1answer
37 views

How to create polygons layer from datasheet in QGIS

I would like to create a polygon shp file from a large dataset. The header looks like this: "Name MINx MAXx MINy MAXy" I expect the layer to look like a grid.
3
votes
1answer
43 views

Gaps in polygon after merging

When I use the merge tool on this polygon mesh, I end up with a multipart polygon with large gaps. Before this, I was getting an error when trying to run a merge or dissolve because of "Polygons with ...
1
vote
1answer
23 views

How to convert a polygon to a polyline using the sf package in R?

I have some simple polygons that I would like to convert to polylines using the sf package in R. I have found st_polygonize to convert polylines to polygons but I cannot but the reserve operation. ...
2
votes
1answer
56 views

How to clip raster inside of circle (python gdal)

I have a source raster and an ERSI shape file, want to crop the raster into the circle. raster = gdal.Open("raster.tif", gdal.GA_ReadOnly) #read raster projection=raster.GetProjectionRef() ...
4
votes
2answers
543 views

Splitting polygons at narrowest part using R?

I have a dataset of polygons like this one: I would like to split these polygons in separate parts at their most narrow location (if they have one). For example the two small polygons should not be ...
2
votes
1answer
44 views

Accessing a ShapeFile with GoogleEarthEngine-API : Invalid GeoJSON geometry

I'm trying to download Sentinel-2 data of my area of interests on Google Earth Engine API for Python. I'm trying to access my shape file (contains 2 different polygons) on the API. I added the shape ...
1
vote
0answers
12 views

Downloading multipolygons and indexing them

I'm trying to download Sentinel-2 data of my area of interest. My shapefile contains two different polygons. So when I try to download the output images I get the error: Error creating or ...
3
votes
3answers
148 views

Insert n points equally distributed into many polygons

I know the "Random Points inside Polygons" tool in QGIS. It generates the below output. What I want to achieve however are 8 equally distributed points for each of the polygons. I thought of dividing ...
1
vote
0answers
30 views

Clip Raster by Mask Layer - Nodata output

I am trying to clip a raster around a polygon shapefile. I have managed to do it for a series of polygons with the same raster, however one polygon is returning a blank clipping with 'nodata' in each ...
0
votes
1answer
29 views

Leaflet: flyToBounds location of bounding box returned by PostGIS

I want to simply center my map on the search result of a polygon using leaflet. I thought to return the bounding box, as this is closer to what I actually need. I want to use flyTo() I see a ...
2
votes
4answers
149 views

Convert shapefile to KML

I have one big layer which contains many polygons. This layer is a shapefile and I want to convert it to be many layers, each layer containing one polygon, and those polygon layers should be saved as ...
1
vote
3answers
65 views

Selecting non-overlapping polygons from a one layer in PostGIS

I have one layer with overlapping polygons just like in this screenshot. I would like delete all overlapping polygons. Something like that (yellow polygons). I tried to use this code: SELECT pol1.* ...
1
vote
1answer
29 views

Eliminating gaps between polygons using ArcMap?

I work in ArcMap 10.4 with an Advanced level license. I'm searching for a fast and effective method for eliminating gaps between polygons, so that one polygons follows boundary of the other. In other ...
2
votes
1answer
22 views

Can't cut raster with a polygon shapefile

I'm trying to cut a CLC raster (several, actually) with a shapefile (polygon) boundary from a country (Portugal, continent only), bu i keep getting this error: QGIS version: 3.8.2-Zanzibar QGIS code ...
0
votes
0answers
40 views

Compute polygons (Data Driven Pages) main angle when having ArcGIS Basic license

Is there a way we can calculate or when rotating polygons, actualize/update our "Angle" field in the attribute table by using Python? There is a tool in ArcGIS "calculate Polygon Main Angle" but is ...
1
vote
1answer
36 views

Point.in.polygon function in sf package miscalculate the distribution of points

I am using point.in.polygon function in sf package to determine whether a set of data fall within a polygon or not. Here is a snippet of the data and polygon visualization As the figure shows, there ...
1
vote
0answers
37 views

Fill in gaps in QGIS shapes?

So basically, I've written a script that generates a lot of polygons over the UK with certain criteria. The output it a lot of shapes like the following - I wanted to know if, in QGIS, I'm able to ...
1
vote
2answers
49 views

Filtering out data points on water or outside specified polygons using QGIS?

How do I filter out points that lie in the water or outside specified polygons? For example I want to filter out the erroneous points in the oceans in one project, and filter out all points not in ...
-1
votes
0answers
19 views

Need mountain ranges of North America polygon shape file for QGIS and help opening it in QGIS [duplicate]

Can anyone recommend a polygon shape file of the North American mountain ranges, and the website I can download it from? Something like the attached image, except I don't know where the attached image ...
0
votes
0answers
14 views

Need mountain ranges of North America polygon shape file for QGIS [duplicate]

Can anyone recommend a polygon shape file of the North American mountain ranges, and the website I can download it from? Something like the attached image, except I don't know where the attached image ...
3
votes
1answer
49 views

Rotation goes Wrong

I have a model that I built using model builder that creates a rectangle grid and then rotates it. For some reason, when I use rotate, it creates something wrong- and it creates''holes'' between the ...
1
vote
1answer
19 views

(QGIS) Shapefile with attribute table: Convert it to raster burning values of each polygon to the raster. “Heatmap”

I am working on QGis with a shapefile with an attribute table, I have created this shapefile through "Vector->Analysis tools->Count Points in Polygon", so this new shapefile got the count in the ...
1
vote
2answers
69 views

Aligning an edge to match another edge

I'm new to QGIS and I wonder whether there is a tool that helps to adjust the edges between two or more polygons; similar to that topology tool that's used in ArcGIS. http://desktop.arcgis.com/en/...
0
votes
0answers
48 views

Converting multiple points to multiple polygons - ArcGIS Desktop 10.6.1

How can I convert multiple points to multiple (tiny polygons)? I need to execute a merge function and I need the points to be polygons so that the toolbox can do its job and join multiple polygon ...
0
votes
1answer
108 views

Length of intersections from a linestring and a grid shapefile by using Python geopandas & QGIS

I am using Python geopandas and I have two shapefiles. One of them is a grid file containing equal polygons. The other shapefile is a linestring file with several lines and its Attributes. The idea ...
1
vote
0answers
42 views

Move polygon to new location (find new lat-lng coordinates)

I need to move my polygon (region of geographical area) with 4 different (O1, O2, O3 and O4) lat-lng coordinates (as shown in the figure) to another place, so that I get new values of all 4 lat-lng ...
0
votes
1answer
34 views

Draw a spatial grid with the lat/longs at the center of the grid using R

I looked through multiple posts on the same, and most of them end up drawing a grid connnecting the points or a grid connecting the bounding box of the coordinates. I need a grid with each of these ...
1
vote
1answer
32 views

Defining index for scattered polygons [closed]

I have 50m X 200m polygon which has several small polygons inside. I would like to define how scattered small polygons inside a big polygon. I was wondering if there is a tool which can calculate some ...
1
vote
1answer
47 views

Problems with dissolving layers [QGiS 3.4.1]

I am currently working on a set of data that defines restricted areas for use of photovoltaic modules. This set of data amounts to 270.00 polygons in total [with their own geometry]. For simpler ...
2
votes
2answers
50 views

Summing Area of polygons within vector layer within zone using QGIS?

I have one vector layer with multiple polygons (purple). I also have a number of other vector layers which are catchment zones (I also have a layer where these catchments are merged). Is there any ...
7
votes
2answers
1k views

ERROR: could not load library “C:/Program Files/PostgreSQL/11/lib/rtpostgis-2.5.dll”: unknown error 126?

I have got this message when I wanted to create a new extension. How can I solve this problem? I have Win10 64 bit and PostgreSQL 11.
1
vote
1answer
62 views

Use points to clip a polygon

I have a slight issue I just cannot solve. I use QGIS 3.6 I have multiple layers: layer with multiple points with milage numbers; a layer containing one or more polygons (let's call them ...
8
votes
4answers
159 views

Calculating polygon's length along a line?

I need to calculate the length of polygons along / projected on a line. An image to show the idea: I have thousands of polygons to be "projected" on lines to verify how many meters of the line they ...
1
vote
1answer
25 views

Selecting a polygon area in a raster image - rasterio.mask vs roipoly

How should I select a polygon area in a raster image? So far, I have seen two methods: use a vector mask or a shapefile (some examples here: http://www2.geog.ucl.ac.uk/~plewis/geogg122-2011-12/...
1
vote
1answer
24 views

Minimum and maximum coordinates of a polygon in Earth engine

I have a Fusion table having shape-files of various districts of India and I am using this fusion table in Earth Engine code. var district = ee.FeatureCollection('ft:...