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
4 votes
2 answers
148 views

Calculating mean value for points within polygon in QGIS

I have square polygons that follow the route of a boat. There is also a point layer with different measurements like salinity, temperature etc. Sometimes there is only 1 point inside the polygon, but ...
user avatar
  • 113
1 vote
1 answer
59 views

Error when filtering spatial points dataframe: unable to find an inherited method for function ‘over’ for signature ‘"SpatialPointsDataFrame", "crs"’

I generated two spatial datasets: a SpatialPointsDataFrame and a polygon. The polygon should filter the SpatialPointsDataFrame, based on whether the points are in the polygon or not. However when I ...
user avatar
3 votes
1 answer
30 views

PostGis - Split polygon into two based in point

How I split this single polygon into two polygons based on the point where there is an intersection?
user avatar
  • 63
2 votes
1 answer
61 views

Random Points in polygon not created

I have a polygon shapefile with a single object and I want to create random points in it. The tool 'random points in polygon' in QGIS does it job well for polygon 1, but doesn't create any points for ...
user avatar
2 votes
1 answer
36 views

ArcGIS spatial joins: how many species are in an area as well as averaging enviro data (polygon+points)

I am trying to work out how many species are within certain boundaries (ie. states) as well as find the average of the environmental factors (like rainfall). I am using: A map of Australia broken ...
user avatar
0 votes
1 answer
45 views

Finding points from shapefile (residing in GeoServer) that are inside a provided polygon

I am new to GeoServer and spatial data. I have a shapefile "shape-file-2" in geo server which is a collection of Points. I am trying to fetch all the points which are inside a provided ...
user avatar
1 vote
0 answers
42 views

QGIS. Combining points data on a map with attributes in polygons

I have a project where I'm trying to combine flood risk data to a list of postcode (/zipcode) data. The postcode data is a csv that contains each postcode's easting, northing, longitude, and latitude ...
user avatar
7 votes
2 answers
108 views

Creating set number of regularly spaced points inside of polygon in QGIS

My application for this would be for making maps with pre-established plot points for cruising a stand of timber, but I could see this being used for other applications. I am a little surprised that ...
user avatar
  • 71
6 votes
1 answer
74 views

Creating duplicate points as many times as it overlap with polygons in QGIS

Let's assume there two layers, see image below a point layer 'random_points_test' with 10 features a polygon layer 'test' with three features I am trying to modify the number of features in the ...
user avatar
  • 22.7k
1 vote
0 answers
55 views

Points in Polygon extraction

I have a shapefile with MSK-16z2 crs and a las-file which crs can not be recornized by qgis, but attached to the las prj contains also MSK-16z2. I need to crop described lasfile by shapefile. I tried ...
user avatar
0 votes
0 answers
35 views

Looking for accurate point in polygon algorithm using WGS84

I'm looking for an accurate point in polygon algorithm using WGS84. The problem: Given the set of points that are the vertices of an arbitrary polygon drawn on the surface of the WGS84 reference ...
user avatar
  • 1
8 votes
3 answers
227 views

Showing data from attribute table in legend in QGIS

I have multiple points with locations on a map and I want to calculate the exact number of points for a selected area. I created a polygon and with Numbers of points on the polygon I created a new ...
user avatar
2 votes
2 answers
65 views

Automatically populating point layer with ID of polygon it intersects in QGIS

I am using QGIS 3 and trying to populate a column of a point file that has rare species data. One of the attributes is a Wetland "ID" column. If any of my rare species points are within a ...
user avatar
  • 365
4 votes
3 answers
214 views

Skipping invalid geometries without fixing them in QGIS

In QGIS 3.16.14 I have a shapefile with multipolygons (flood risk map of the country) and another layer of points (buildings). I need to identify which of those points are inside those polygons and ...
user avatar
  • 43
1 vote
2 answers
74 views

Number of points in polygon not equal in QGIS and Geopandas

I have polygons and points. What I do is a very simple operation - count points in the polygon. Primary I am working in Python, however I use QGIS to check and visualize the results. I have this code ...
user avatar
  • 451
0 votes
0 answers
42 views

Selecting points inside of fishnet tile and adding its ID to points attribute table using ArcGIS Pro

Using ArcGIS Pro, I have uploaded a csv file containing GPS points and displayed it as XY Data. I have also created a polygon fishnet of 50x50 tiles. What I want is, for each tile of the grid, I ...
user avatar
  • 29
1 vote
0 answers
55 views

How to perform intersect or overlay_within functions using Python/PyQGIS to circumvent graphical modeler limitations? [closed]

This relates to Creating field with 1/0 values depending if point sits inside polygon in QGIS for which people provided excellent answers but unfortunately highlighted a current limitation of the ...
user avatar
6 votes
2 answers
224 views

Creating field with 1/0 values depending if point sits inside polygon in QGIS

I have a layer with a single polygon and a layer with multiple points. Some of the points are inside the polygon. How can I create/update a field with a value of 1 (true) or 0 (false) depending if a ...
user avatar
1 vote
3 answers
164 views

Joining attributes in CSV by location using QGIS

I have a shapefile which divides Africa in cells of 0.5x0.5 decimal degrees. This documents provides the longitude, latitude of the centroid of the cell and a unique identified of each cell. On the ...
user avatar
  • 445
6 votes
3 answers
74 views

Finding distance to points only outside of polygon in QGIS

I've tried using "Intersect" and "Join attribute by location" but these aren't achieving exactly what I'm after. I have a series of points inside and outside a polygon. My aim is ...
user avatar
-1 votes
1 answer
251 views

GeoPandas Spatial Join of Points and Polygons returns NaN after projecting

I have an Excel file with some points (https://www.bundesnetzagentur.de/SharedDocs/Downloads/DE/Sachgebiete/Energie/Unternehmen_Institutionen/E_Mobilitaet/Ladesaeulenregister.xlsx;jsessionid=...
user avatar
  • 3
2 votes
1 answer
58 views

Updating field values if condition met, but leave the original values if condition not met in QGIS

I'm sure this is probably quite simple but I'm still learning the syntax for field calc expressions. I have a points layer with the field "Distance" that I want to update using my expression:...
user avatar
3 votes
0 answers
35 views

R method for retrieving Polygon from GeoPackage that contains point [closed]

I have a polygon feature class and a point location and need to retrieve the polygon in which the point occurs. The feature class is in a GeoPackage and I am limited to using R. I can use any publicly ...
user avatar
  • 645
3 votes
3 answers
188 views

Assigning point attribute to overlapping polygon in QGIS

Are there a way to assign the attributes of a point to a overlapping polygon? I got the data as lines and points. The lines are making the polygons and the points are overlapping the created polygon ...
user avatar
4 votes
2 answers
65 views

Counting features of point layer that are laying within polygon layer using QGIS

I have a 'Layer 1' that represents geographical areas. And another 'Layer 2' contains some location-based information. I want to count/aggregate the tweets per geographical using QGIS. For example, in ...
user avatar
3 votes
1 answer
81 views

Retrieving attribute field from polygon feature containing point feature in QGIS

I am trying to populate a point layer's field attribute with values from polygon features' attributes that contain point features. The inverse is very simple: aggregate( layer:='point layer's name'...
user avatar
11 votes
1 answer
465 views

Applying labelling with obstacles in QGIS

I'm working with QGIS 3.16 Hannover and I'm quite confused with the option Features act as obstacles. According to QGIS documentation (13. The Style Library » 13.3. Setting a label » 13.3.2.3.4.4. ...
user avatar
  • 2,271
1 vote
1 answer
110 views

Generating random points in polygons to simulate population distribution

I have a spatialpolygondataframe that represents census tracts. I want to simulate different scenarios of population density or distribution to test a model. To do this, I want to generate random ...
user avatar
2 votes
1 answer
59 views

Calculating mean value of polygons based on attributes of point layer in QGIS

I am working with QGIS to compute the annual burned area of my study area in Chile. I have two different layers. One polygon layer which is a 1km x 1km grid of my study area. The only information ...
user avatar
3 votes
3 answers
99 views

Visualizing points with different colours based on field from polygon layer in QGIS

I am aiming to create a map showing species location records as points. I need to make the points different colours based on land type which is a polygon layer. So I want my species points to be a ...
user avatar
3 votes
1 answer
74 views

Creating different numbers of random points inside polygons using PyQGIS

I am developing a plugin using PyQGIS and PyQt5. I am calling qgis:randompointsinsidepolygons, where I am trying to give field input at VALUE parameter. It will take a variable number of points for ...
user avatar
0 votes
1 answer
50 views

Counting points in polygon using separate attribute values in ArcGIS Pro

I am trying to determine the different land surface types within a set of polygons. To do this I converted my land surface type raster layer to points. So now I have a polygon layer (hexbins across my ...
user avatar
  • 23
1 vote
1 answer
121 views

VB.NET - Point in Polygon From KML file

I have a big number of Polygons extracted from a KML file. The polygons represents "blocks" on the Earth surface. I can read the coordinates of the polygons and store their values, as well ...
user avatar
3 votes
1 answer
117 views

NULL values when using overlay_within function in Field Calculator

I have two layers, a point layer and a polygon layer ('Sektorplan'). The polygon layer attribute table has a "Sektor" column ('1','2', ...). The Goal I want to add a new column ("Sector&...
user avatar
2 votes
1 answer
53 views

Exporting points inside specific polygon to Excel spreadsheet using QGIS [duplicate]

I have two vector layers, one with points, and the other with catchment boundaries. This is showing where the points are in relation to catchment areas. I want to be able to export a Excel file that ...
user avatar
  • 23
8 votes
3 answers
433 views

Selecting and exporting points inside specific polygon using QGIS

I have a problem that is similar to Get Points in a selected polygon. I have a polygon layer (with +200 features) that represents a road (subdivided by every 100m) and a point layer of a GPS survey ...
user avatar
5 votes
1 answer
223 views

Equal distribution of points to regional hubs in QGIS

I have approximately 1,600 points plotted on a layer in QGIS. On another layer, I then have 8 regional hubs plotted. I am trying to distribute the 1,600 points among the 8 hubs, based on which hub ...
user avatar
3 votes
2 answers
105 views

Buffering around all borders of EEZ regions in QGIS

I have a layer containing points (in yellow) and a layer containing the Exclusive economic zones of all countries (as polygons, its geometry is MultiPolygon). See the image below: I would like to ...
user avatar
3 votes
1 answer
106 views

Labeling only subset of points inside polygons in QGIS

I would like to create a set of rule based label styles for a subset of points inside a particular polygon, with the ability to still quickly show/hide the labels using the button The situation: I ...
user avatar
  • 305
2 votes
1 answer
103 views

Counting points within polygon and extracting the data

I have been given a CSV file which contains the Longitude and Latitude data points for a number of mobiles that run our own internal app. The data includes the unique "ID" for the device ...
user avatar
2 votes
1 answer
257 views

Counting points in overlapping polygons using GeoPandas

I have converted a 200m x 200m point grid of Greater London into a multypolygon 500m radius buffer layer for each point in the grid. What this means is that I have over 100,000 overlapping polygons. I ...
user avatar
  • 123
3 votes
2 answers
86 views

Counting points within polygon by attribute using QGIS

I have one table ('TABLE A') with points of Data divided by Latitude, Longitude & Hour. On the other hand I have another table ('TABLE B') with County names. How do I count points (from 'TABLE A') ...
user avatar
2 votes
1 answer
64 views

GeoPandas within() not returning any records

I'm trying to create a layer of all cities with 100km of the coast of Australia. The following is returning coastCities as an empty DataFrame. I have performed the same operations in ArcGIS and it ...
user avatar
  • 117
5 votes
3 answers
185 views

Counting points in non-overlapping parts of polygon-buffers

I am trying to perform some calculations on a polygons layer I have, but there is a bit of complexity to it. I have this polygons layer, and underneath that layer, I have a population count data layer ...
user avatar
3 votes
1 answer
142 views

Creating unique ID for features that are within polygons with unique IDs

I need to create and "ID" for items within a polygon that also takes into account the name of the polygon that the item is within, so what I need is something along the lines of: poly_X_Item ...
user avatar
  • 101
3 votes
1 answer
62 views

Getting distance between two points within polygon in QGIS

In QGIS 3.10 I have two layers, first one is point layer and the second one is polygon layer. Every two points (with same "ID") in my point layer overlay with a single polygon in polygon ...
user avatar
  • 81
0 votes
0 answers
23 views

Calculating the percentage of different polygon/point layers inside of my main parcel Polygon

I am using Arcgis PRO for academic research. My problem is about counting and getting the percentage of different point/or polygon layers within the main polygon layer. I have 7 different polygon ...
user avatar
  • 1
3 votes
3 answers
150 views

Counting points in polygon and printing out each placing

Here is my sample table for further description: I have a original point layer: ID Name X(latitude) Y(longtitude) ID1 Dog A 1 ID2 Cat A 1 ID3 Bird B 1 ID4 Cat A 2 ID5 Cat B 1 ID6 Dog A 1 Those ...
user avatar
  • 131
2 votes
2 answers
140 views

How increase speed of counting CQL.toFilter("CONTAINS(the_geom, POINT (lat lon))") on GeoTools with Java

How can I increase speed of counting? I want to select points which is included by shape (GIS shapefile .shp). I have 5 million points and 10 shape files. qry="CONTAINS(the_geom, POINT (69....
user avatar
2 votes
0 answers
78 views

ArcGIS Pro count points from multiple features within polygon

I'm using ArcGIS Pro v2.8. I've created a Google Maps map, covering an area of farm land with different fields. Next, I created separate polygons to cover each field. I then created an X Y layer, ...
user avatar
  • 21

1
2 3 4 5
9