Skip to main content

Questions tagged [point-in-polygon]

A common GIS operation. Used to determine whether a point lies within a polygon's bounds.

Filter by
Sorted by
Tagged with
2 votes
2 answers
91 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 ...
user2293224's user avatar
0 votes
1 answer
69 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 ...
coral's user avatar
  • 81
0 votes
1 answer
58 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 ...
fterranova's user avatar
3 votes
3 answers
489 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 ...
redhat's user avatar
  • 347
1 vote
1 answer
32 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?
PAKAM's user avatar
  • 11
1 vote
1 answer
71 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 ...
tarnis's user avatar
  • 73
3 votes
1 answer
56 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 ...
Saulo Carvalho's user avatar
0 votes
0 answers
33 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)?
Marie's user avatar
  • 1
0 votes
0 answers
21 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 (...
YP Environmental Research's user avatar
-1 votes
1 answer
93 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 ...
Jota Q's user avatar
  • 85
0 votes
1 answer
23 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 ...
Erin's user avatar
  • 157
2 votes
1 answer
119 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 ...
starski's user avatar
  • 161
2 votes
1 answer
98 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 ...
Arthur_Morgan's user avatar
3 votes
2 answers
139 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 ...
Anouk's user avatar
  • 33
2 votes
1 answer
113 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. ...
VVstack43's user avatar
1 vote
2 answers
119 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 ...
janicans's user avatar
1 vote
1 answer
89 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, ...
Sarah's user avatar
  • 11
0 votes
0 answers
46 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 ...
JMC's user avatar
  • 1
2 votes
2 answers
335 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 ...
John Smith's user avatar
-1 votes
1 answer
92 views

Edit the value of polygons depending on the 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, ...
A-d-r-i's user avatar
0 votes
1 answer
247 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 ...
Joel Breazeale's user avatar
1 vote
0 answers
44 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 ...
Inga's user avatar
  • 19
2 votes
1 answer
150 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. ...
B Alexander's user avatar
1 vote
1 answer
288 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 ...
Hutch T's user avatar
  • 19
0 votes
0 answers
14 views

How to join points for businesses with administrative shapefile and keep both points and administrative divisions on map

I have an administrative shapefile of Jamaica, and I have a layer with the coordinate locations of a few hundred businesses. I have spatially joined the business layer with the shapefile layer to ...
Matt's user avatar
  • 93
3 votes
2 answers
98 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 ...
Aleksander Rogowski's user avatar
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 ...
MJM's user avatar
  • 975
0 votes
0 answers
45 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 ...
Rhys95's user avatar
  • 1
2 votes
1 answer
150 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 ...
Hibernian3's user avatar
4 votes
1 answer
161 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 ...
Thibaud's user avatar
  • 43
1 vote
0 answers
358 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 ...
ANMAYA AGARWAL's user avatar
5 votes
3 answers
849 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). ...
Joost van Driesum's user avatar
1 vote
1 answer
495 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....
SavvY's user avatar
  • 23
2 votes
1 answer
116 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 ...
Sosa's user avatar
  • 23
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 ...
Syrus Drake's user avatar
4 votes
1 answer
224 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 ...
Jérôme's user avatar
3 votes
2 answers
148 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 ...
Patrick C's user avatar
0 votes
0 answers
228 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 ...
lwr02's user avatar
  • 19
4 votes
2 answers
242 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 ...
geofausto's user avatar
  • 745
5 votes
3 answers
650 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 ...
DieterP's user avatar
  • 53
0 votes
1 answer
773 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 ...
Programmer888's user avatar
3 votes
1 answer
152 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 ...
Ghostwriter84's user avatar
4 votes
1 answer
143 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 ...
HenrikM's user avatar
  • 41
2 votes
1 answer
189 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 ...
Raspen's user avatar
  • 29
5 votes
2 answers
3k 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: ...
OgeiD's user avatar
  • 556
0 votes
0 answers
33 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 ...
Stelios Adamantidis's user avatar
3 votes
2 answers
147 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 ...
Tim Pirc's user avatar
2 votes
2 answers
126 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 "...
stijn geldof's user avatar
2 votes
1 answer
362 views

Filtering points appearing in list of convex hull polygons

I have two DataFrames df & df1: df: containing latitude, longitude, and binary cluster (0 or 1) latitude Longitude cluster 30.400091 -100.722830 0 30.500091 -100.762830 0 30.600091 ...
JEG's user avatar
  • 41
3 votes
1 answer
305 views

Clipping point layer with polygon overlay using PyQGIS

The following script works just fine and as intended: import processing import time start_tot = time.time() path = 'C:\\Users\\tlind\\Dropbox\\Documents\\' ext = ".shp" municipalities = [...
Tobias Lind's user avatar

1
2 3 4 5
10