Questions tagged [point-in-polygon]
A common GIS operation. Used to determine whether a point lies within a polygon's bounds.
499
questions
1
vote
0
answers
50
views
Grouping data points based on proximity and minimal count of attribute in QGIS
I am using QGIS to map animal counts on farms in the Midwest US and using a circle polygon to show where there are more than 30,000 animals between all the farms in that specific area. Each data point ...
1
vote
1
answer
34
views
Connect points to the nearest point that is not inside the same polygon
I am trying to connect points in a vector layer. Each point should be connected to its nearest neighbour that is not inside the same polygon. I am using the ProcessX "nearest point to path" ...
2
votes
2
answers
180
views
Selecting points which are not in polygons using GeoPandas
I have got two geodataframes: df1 which has got points as geometry type and has around 2.5 million rows, df2 has got polygons/multipolgyons as geometry type and has over 2.6 million rows. I want to ...
0
votes
1
answer
84
views
Select By Location tools (intersect the source layer)
I want to find points are in the boundaries of polygons so I use Select By Location tools in a large area as country so I have many polygons (in shapefile) and the points (in shapefile) that is ...
0
votes
1
answer
96
views
Extracting GPS Coordinates for Grid Square Centers
I'm relatively new to GIS, and I'm currently using QGIS version 3.32.3 Lima. I'm encountering some challenges as I don't have a solid foundation in using GIS, so I'm reaching out for your help and ...
3
votes
3
answers
900
views
Building the shortest path between two points inside polygon using QGIS
With QGIS I need to build the shortest route between two points inside a polygon. I have a vector polygon layer and I need to build a path inside it from the starting point to the ending point. How ...
1
vote
1
answer
44
views
Displaying name of point with shapely [closed]
I want to display the names of points on my polygon with shapely.
Polygon([(0, 0), (0, 2), (2, 2), (2, 0), (0, 0)])
and
Names = [A, B, C, D, A]
How can I do it simply?
1
vote
1
answer
118
views
"QgsProcessingException: Unable to execute algorithm Could not load source layer for INPUT:" error when applying QGIS processing [closed]
Sorry, I'm not 100% sure of what is the cause here, it seems like maybe the path to the file but that appears to be correct. I have a bunch of data from the USACE's e-hydro website I'm trying to ...
3
votes
1
answer
57
views
Incompatible numeric format between points and polygons geometry in GeoPandas
I am reproducing an exercise on GeoPandas. Basically, I want to check whether points are within a given polygon. However, polygon format numbers are quite different. They seem huge (possibly because ...
0
votes
0
answers
51
views
Address search within a polygon in ArcGIS Experience Builder
Is it possible to configure a Search to select all addresses within a polygon (all address points within a multi lot property)?
0
votes
0
answers
23
views
Randomly creating areas within one country focusing on built-up area using ArcGIS Pro
I need to Randomly select 60 areas(square 2*2=4km2) within one country and it should take into account all six landscape types.
I need it to compare the build-up area changes during a few decades (...
-1
votes
1
answer
192
views
Count points inside polygons using R [closed]
I have imported two shapefiles in R, one with polygons and other with points. Each polygon has an identifier different from the others, and each point also.
The polygons and points identifiers are not ...
1
vote
1
answer
877
views
Getting shapefile from Google Maps
I have a use case where I want to generate random points within a geometry. For my use cause, the geometry is a district with my country — for example, West Bay, Grand Cayman.
If I search for the ...
0
votes
1
answer
29
views
Create a point that represents the maximum raster value (elevation) within a polygon: Google Earth Engine
I have around 300 polygons spread across a large area and wish to create a set of points, one for each polygon, that represents the maximum elevation value along the edge (or within) the polygon.
I ...
2
votes
1
answer
175
views
Making gridded map where each grid cell shows the share of points of certain category in QGIS
So, I have a dataset of many points across Europe. For illustration purposes see this image below:
Each of these points has one of four categories attached to it, so the dataset I am working with has ...
2
votes
1
answer
126
views
Splitting polygon based on number of points in it using ArcGIS Pro
Based on the mock-up below, is it possible to split a polygon into multiple polygons depending on the number of points that are within that polygon?
I am using ArcGIS Pro 3.1.1.
I know there is a ...
3
votes
2
answers
154
views
Calculating sum of Euclidian distances from one point to multiple points within buffer in QGIS
I want to calculate the sum of the inverse distances from one main point to multiple other points within a buffer around the main point in QGIS
I have a point file with multiple home addresses (red ...
2
votes
1
answer
134
views
Sorting coordinates as per polygon in QGIS
I have a list of our sales lead locations in Excel with their coordinates.
What I wish to do is that I need to sort those coordinates as per the condition if they lie within a certain polygon or not. ...
1
vote
2
answers
129
views
Removing points outside of polygon but keeping points with the same feature ID using PyQGIS
I have a polygon layer and a point layer. The point layer has specific features in its table such as an ID called "fwg_type". There can be several points with the same "fw_type".
I ...
1
vote
1
answer
100
views
Using GIS as a research tool
I am currently doing an assignment and I am using QGIS in order to visualize and assess where wind turbines can go in a specific area. I've done everything that needs to be done to get to this point, ...
0
votes
0
answers
51
views
Points are not showing up on 3.28 QGIS versions
When I used 2.18 QGIS version the points to snap are there. Points that I mentioned are the points where each polygon corner is and where you can snap new polygon. In versions 3 higher it doesn't show ...
2
votes
2
answers
834
views
Detect if one point is inside polygons using GeoDataFrame
First I import a shapefile
import geopandas as gpd
shapefile_path = "data/TRI_75_SIG_DI/TRI_PARI_SIG_DI/n_tri_pari_carte_inond_s_075.shp"
gdf = gpd.read_file(shapefile_path)
And it works ...
-1
votes
1
answer
129
views
Edit value of polygons depending on presence of points in it
I have a shapefile (regions of France) and points (.CSV). Both are in WGS84 (EPSG:4326) and both overlap perfectly with the tmap package. I would like to color the regions according to the presence, ...
0
votes
1
answer
323
views
Two shapely methods to test if a point is within a polygon are failing [closed]
I am iterating through the polygons in a Fiona collection and am not finding my point is within any of the polygons. I am using the shapefile from here. Can you see the problem?
[How can I ...
1
vote
0
answers
45
views
Grouping points within counties and symbolizing their data as pie charts in QGIS
I need to combine/categorize points within different polygons while retaining some of their values. I've made up a scenario to try and simplify my problem.
The layers I have to work with are a point ...
2
votes
1
answer
189
views
Finding maximum possible distance of point to polygon boundary using QGIS Expression
Points layer is structured as below
Polygons layer also has code as a field
For each point, I want to get maximum possible distance to the edge of the polygons listed with code in the overlap column. ...
1
vote
1
answer
394
views
Filter points from a feature collection that do NOT overlap with polygon in Google Earth Engine
I have a feature collection of points, some of which overlap with a polygon. I want to filter out the points that do not overlap with the polygon, and create a new feature collection. I am able to ...
3
votes
2
answers
104
views
Dynamic calculation numbers of points in polygon QField
I looking for solution of dynamic calculating number of points in polygon on the go and changing color of polygon if there are specified number of point.
I have 2 layers in project. One polygon, one ...
1
vote
0
answers
52
views
Randomly distribute duplicate points in associated grid cell
I have a large point data set consisting of 80k points where each point has an associated attribute value for the grid cell it is within. The grid is a separate layer. Many of the points have ...
0
votes
0
answers
52
views
Autofill a field of a polygon from a field within a point
Is there a way I can autofill a polygon field from a point field that’s located inside the polygon?
I have a lot of polygon attributes that I need to fill and it would take a while. The points are ...
2
votes
1
answer
187
views
Counting polygons with multiple filters in QGIS
I am using the aggregate expression in QGIS to count how often my polygon name appears in another point layer. The 'Polygon_zone_name' exists on both my polygon layer and my points layer, I can ...
4
votes
1
answer
178
views
Fetching and combining field values from vector layer to another in QGIS
I have two different layers: one is a vector "polygon" layer, and the other is a vector "point" layer.
I have information (address and number) in my point layer that I would like ...
1
vote
0
answers
400
views
Error in finding a point within a GeoJSON file
I have a GeoJSON of all the marine zones of the world downloaded from the FAO (https://data.apps.fao.org/map/catalog/srv/eng/catalog.search#/metadata/ac02a460-da52-11dc-9d70-0017f293bd28). I want to ...
5
votes
3
answers
1k
views
Counting points per category in polygons using QGIS
I am looking for a QGIS function to count specific point values inside polygons. I have a number of points, all sorted in specific categories "HOOFDGROEP" and a rectangular grid (see image).
...
1
vote
1
answer
614
views
Computation timed out on GEE API (Python)
I have a large set of points (with longitude and latitude) for which I need to extract the rasters (B1-B8A) in a CSV file. I am currently using geemap.extract_values_to_points.
geemap....
2
votes
1
answer
136
views
Raster R package, points outside the grid
I am posting my issue in this community as I did not get satisfying answers in stackoverflow, hoping to get a solution here.
I am working on a spatial simulation and I created spatial points, but when ...
7
votes
2
answers
1k
views
Counting distinct values per polygon in QGIS
In QGIS I have a list of points, each with a town it's located in and a status, either 'new' or 'existing'. So something like:
ID
town
type
01
Alicetown
new
02
Alicetown
new
03
Alicetown
existing
...
5
votes
1
answer
257
views
Counting points in adjacent polygons using QGIS
I would like to sum up the amount of points in a polygon and its adjacent polygons. If possible, I would like to add a certain "weight" to the points of the adjacent polygons. Here is a ...
3
votes
2
answers
153
views
Counting points in hex grid by attribute in QGIS
I'm trying to count points within a polygon layer (hexagonal grid), grouped by an attribute of the points. There are some solutions on here (Python console, SQL virtual layer) but I can't seem to get ...
0
votes
0
answers
318
views
Converting data symbology from Fill to Marker
I'm new to QGIS and can't seem to find any way to convert data from "Fill" to "Marker" I have some data that I would like to overlay on a basemap as Markers which vary in size ...
4
votes
2
answers
272
views
Creating perpendicular line between two points inside polygon using PyQGIS
I'm looking for a solution in PyQGIS to create a cut line at the midpoint of another line that connects two points within a polygon. The objective is to cut the polygon into two parts.
In fact, this ...
5
votes
3
answers
764
views
Calculating statistics of points within polygons of the same criterion in QGIS
In my QGIS 3.10 Project, I have one polygon layer and one point layer.
Each of these layers has objects that belong to different categories based on some attributes: for simplicity, let's say RED and ...
0
votes
1
answer
985
views
Is the buffer distance the radius or diameter
I have created circles using the buffer tool ArcGIS Pro using point features. Is the distance specified when making a buffer the radius around the point, or is it the diameter? I have entered 1 meter ...
3
votes
1
answer
174
views
Numbering points that are contained in polygons in QGIS
In QGIS 3.16.8-Hannover I have a layer with polygons and I have a layer with points. Each polygon contains a certain number of points, I would like to assign a number to each point in sequential order ...
4
votes
1
answer
151
views
Creating iso-contours of cumulative values of overlapping polygons in QGIS
I start by drawing polygons by hand and assigning each polygon an attribute value for a frequency (or probability). What I then need is to create a heat map or iso-contours that show the cumulative ...
2
votes
1
answer
221
views
Showing full list of names of features within polygon when hovering over it in QGIS
In QGIS I've successfully joined three tables of data: 'Addresses', 'Persons', and 'Polygons'. The polygons represent the address on the map, and each address "contains" the names of all ...
5
votes
2
answers
4k
views
Using sjoin in GeoPandas
I have a GeoDataFrame with 12.431 observations of geographical units, called "cities". I also have another layer file with points, called "points". Both of them are in CRS: ...
0
votes
0
answers
35
views
How to calculate if a pair of coordinates is inside a polygon without using an external library? [duplicate]
I have a latitude/longitude pair and I want to see if another latitude/longitude set comprising a polygon contains them. I once read (in this SE site if I'm not mistaken) that you usually need to take ...
3
votes
2
answers
153
views
Giving specific naming of points within quadrant in QGIS
In QGIS 3.18.1 I am doing sampling to estimate deer densities.
I would like to know which tool I can use to specifically name points within quadrants. There are four points in a quadrant, each point ...
2
votes
2
answers
146
views
intersecting_geom_sum function is no longer available in QGIS 3.22.12
When I was using QGIS 2.18.16 I could calculate the average values of points intersecting the grid with:
intersecting_geom_sum('Layer1', 'Value')/"Numpoints"
I had the plugin "...