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
1answer
29 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 ...
3
votes
1answer
72 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 ...
0
votes
0answers
12 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 ...
3
votes
3answers
125 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 ...
1
vote
2answers
64 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....
2
votes
0answers
38 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, ...
3
votes
3answers
135 views

Counting points dynamically while drawing line in QGIS 3.18

This question is continuing the discussion from here. Since I want to adopt another approach and see if it is feasible since I tried different approaches (K-means, Convex hulls, etc. and they didn't ...
1
vote
0answers
57 views

Aggregating points inside polygons using QGIS

I have two shapefiles: one with various points of Hospitals across Los Angeles another of the LA census tracts. I want to merge the two layers together to create one layer with all of that data ...
2
votes
1answer
73 views

Determine if approximate count of features in polygons is less than 100_000

Using PostgreSQL 12. I have a table of polygons, a table of points, and a table of lines. All tables have GIST indexes on the geometry column. There is a view that includes both the lines and points, ...
2
votes
1answer
50 views

Label every polygon with true/false if it contains point

I have large polygon data set and I want to label every one with true if polygon contains point or false if it does not. Polygon can contain multiple points, but if just one point fall into polygon it ...
3
votes
1answer
63 views

Autofilling polygon with semi-regular spaced points

I'm looking to fill a polygon with points with a regular spacing, but the points don't need to be in line vertically. So, in the image below, the points are all spaced out evenly on an x/y spacing, ...
4
votes
2answers
57 views

Keeping symbology for intersection in QGIS

I am doing a shapefile intersection (Vector > Geoprocessing Tools > Intersect) to keep only the points in a point layer that overlap with the polygons in a polygon layer. What I'd like to do is ...
0
votes
1answer
114 views

Error in poly[, 1] : incorrect number of dimensions

I'm trying to create random points using slpancs library in R. But I have this problem: random_points<- csr(poly = "zona", 1000) Error in poly[, 1] : incorrect number of dimensions
4
votes
1answer
120 views

Getting values from adjacent polygons or nearest point

I have joined temperature values from the point layer to intersecting polygons but I have few polygons (yellow in the image) that don't contain any point data. Can I somehow get average temperature ...
2
votes
0answers
56 views

Finding the nearest distance between points in a grid cell

I'm trying to find the distance between the nearest points in a grid-cell, such that there is no equivalence relation between these points. Meaning if there are three points {a, b, c}, then a = b; not ...
3
votes
2answers
95 views

Counting points in each polygon so that points do not repeat QGIS

I have a points layer and a polygon layer. I need to count points in each polygon/buffer so that points do not repeat. For instance, here is an example with 4 polygons and 8 points inside in total. ...
1
vote
2answers
55 views

Count how many new points are captured when a polygon buffers by x miles

I have a polygon and a layer of many points. How many more points would be captured if I expanded the polygon by x meters? I want to end up with values for x = 1 mile, 5 miles, 10 miles, and maybe a ...
0
votes
0answers
28 views

Drawing a square manually using coordinates

I've load points coordinates from a .csv file on QGIS. These points are the intersection of a regular grid. I would like to select manually four point of this .csv file to draw a square polygon. Also,...
2
votes
1answer
136 views

Identify if the point lies inside the polygon in QGIS

I created a polygon using Iso-Area as polygons algorithm in QGIS. I have a point's coordinates and added it as a vector layer into QGIS. It is shown on the map that the point lies within the polygon. ...
0
votes
0answers
49 views

Checking if the point lies within the polygon in R using sf package

I have a point's coordinates as well as an object with the class of sfc_polygon in R. I would like to check if this point lies inside that polygon or not. I created an object with the class of ...
3
votes
1answer
123 views

Counting points inside polygons by attribute using ArcMap

I am working with ArcMap 10.8 and extensions. I have a grid (polygons) and another shapefile of points. I need to generate a field in the grid that shows me how many points are inside each cell, but ...
-2
votes
1answer
42 views

Seeking Python solution for point, line, and poly in poly intersections [closed]

I'm just learning Python, and I need a little direction. I've been reading many of the posts on this site, but I haven't found one that puts me on the right path. These operations are trivial in GIS ...
2
votes
1answer
436 views

Picking up the coordinates inside this polygon draw

I already have a geojson being consulted and that is plotting these black dots. And then I inserted the leaflet-geoman plugin to give users the freedom to create polygons on the map. Basically draw ...
0
votes
0answers
36 views

What strategies exist to speed up point-in-multiple-polygon searches? [duplicate]

Consider a scenario where you have polygons representing the border of every country in Europe. You also have the Lat/Long of a user's mobile device. You now want to display which country that user is ...
0
votes
0answers
63 views

Why is 'Count Points in Polygon' returning zero values for all NUMPOINTS?

I'm using QGIS and I have a file of points (Coyote_Clipped). I'm trying to count the number of points in each grid cell. I ran "Count Points in Polygon" on the grid and it worked without ...
4
votes
3answers
294 views

Counting Points in Polygon to analyze data using QGIS

I am using QGIS, and I have a shapefile that has 23 different land classifications. I have another file that lists coyote observations as points. I would like to find out how many coyote observations ...
4
votes
2answers
98 views

Polygon to Point Grid with the same information

I want a grid of points (with defined spaces between them) inside a Polygon. All the points should contain the same information as the original Polygon did. I tried the centroid (only one point -> ...
0
votes
0answers
56 views

Why am I getting this error when using count points in polygon?

I'm using QGIS 3.16.1 and trying to work with the 'count points in polygon' feature. When I try to run it I get this error: *QGIS version: 3.16.1-Hannover QGIS code revision: b381a90dca Qt version: 5....
-1
votes
1answer
59 views

Create a table of points that intersect with polygons in ArcGIS Pro

I have a set of polygon and point data. Each polygon shares the same area with dozens of points. I want to create a table that shows which points intersect with which polygon. What is the best tool ...
1
vote
1answer
61 views

Calculating frequency of polygon types overlapping coordinate point

I have shapefiles of sea ice coverage for multiple days of the year. At each time-point (day) the sea ice is split into different polygons which corresponds to different ice types (i.e. fast ice, ...
4
votes
2answers
242 views

Combining CSV and shapefile to find area name where stations are located

I have one shapefile with marine areas. The other is a CSV file with some station names and coordinates. I would like to get table with stations names and corresponding marine area names, where the ...
0
votes
0answers
34 views

Generating random points with overlapping polygons in QGIS

The "Random points inside polygons" tool in QGIS works great to generate a fixed number or density of points within polygons; however, because QGIS does not link the polygon ID to the points,...
5
votes
1answer
213 views

Preventing labels from overlapping certain features using QGIS

I have two layers in my QGIS Project (QGIS 3.4.8). One in the foreground, which contains surfaces, and one in the background, which contains a point with labels, see image below: The problem is that ...
4
votes
1answer
84 views

How to choose limited number of points to represent a point grid

I need to choose a few points to represent the grid below, e.g: 8 points in the grid below. This point need to be geographic distributed This points needs to be geographic distributed. Lets see a bad ...
1
vote
2answers
53 views

Using QGIS to buffer attributes on map

This is my first experience of using GIS systems. Firstly, to give you an overview of my project, I am trying to analyze the obesity rates within the boroughs of London. I have gotten to the point now ...
2
votes
1answer
188 views

Calculating minimum distance between two point layers within polygons in QGIS

I have three vector layers two points and one polygon: Centroids (POINTS FROM) NUTS_ID | CNTR_CODE | NUTS_NAME | id Sorting_plants_2020 (POINTS TO) postcode | name | where | capacity | id ...
3
votes
3answers
66 views

Calculating value of unique points in polygon in PostGIS

I'm working with a spatial PostgreSQL database that contains species records, there is a point layer 'spp_points', each point has a "spp_ID" and "spp_score" field. I also have a ...
2
votes
0answers
14 views

Generating equidistant Points inside box which also contains MultiPolygon [duplicate]

I have a box bounded by min_x, min_y, max_x, max_y, I also have a multipolygon = poly contained in that box. I'm trying to equidistantly scatter points throughout that box, outside of that ...
1
vote
0answers
38 views

Getting attribute form data from another layer

I’m trying to use the attributes form in QGIS 3. Most of what I’m doing is relatively simple use of combo boxes but I’ve run up against a wall. The idea is that I’m trying to streamline how we notify ...
3
votes
1answer
125 views

Updating table from another table with function ST_CONTAINS in PostGIS

I tried to update an attribute 'solved' of a polygon table (table name: polygon) by using an attribute 'solved' of another point table (table name: point). What I want to do is that if ALL the points ...
2
votes
1answer
118 views

Spatial joins in ArcMap (points to polygons) - capturing points that are just outside of outer boundaries

I am working with geocoded crime event data, and attempting to join that point layer with a census block group layer in order to get a count for each census block group (and ideally sums/averages for ...
2
votes
1answer
68 views

Automatically output joined fields in input layer while using spatial join

For example, I have two layers: A polygon layer city block with a ID field city block index. A point layer parking lot with a field parking lot size. I want to know the total parking lot size for ...
0
votes
0answers
37 views

Returning all points within a polygon

I've been trying to figure out how to use ST_Contains to figure out what points are contained within a polygon. Here is my query. SELECT "userId", "firstName", "lastName",...
1
vote
0answers
95 views

Aggregating data and displaying counts with GeoPandas

I have two datasets that I want to use. The first is a shapefile of King County that has polygons broken up by school districts. It has boundaries saved as polygon features on a geo-dataframe. The ...
1
vote
1answer
69 views

How to generate a column with a count of number of points in a polygon AND have 0 for the rows where there are no points in the polygon?

I have two data sets with a large number of points that I’m organizing into a hexbin grid. I'm associating these points with the hexbin polygons by using PostGIS to determine if a point falls within a ...
1
vote
1answer
112 views

Count points within a polygon

I'm trying to count the number of points within a polygon of a fixed size in R. I'm planning to do it a few times so that I can eventually calculate average density of points with some measure of ...
1
vote
2answers
67 views

Spatial Join also Based on Attributes using QGIS

I have two data sets: points with a timestamp polygons representing neighbourhoods I need to compute how many points are in each neighbourhood polygon, based on a time range. So in other words, how ...
0
votes
0answers
42 views

Dividing country into regions based on some initial center point using ArcMap

I am new to GIS. I have some lat-long (say 5) spreads across a country and I want to make polygons around each point such that all the polygons cover the whole area of the country and within the ...
0
votes
0answers
38 views

st_intersection only if specific conditions are satisfied

I'm new to sf package. I have two sf files, one containing lat/long position of points (point_sf) and the other one containing sf polygon geometries (polygon_sf). I want to see which points belong to ...
2
votes
2answers
73 views

Determining how many of my coordinates overlap with layer in QGIS

I am working on a project about a certain animal species. I have gotten coordinates from where the species has been observed. Now I want to know what percentage of the observations are from gardens/...

1
2 3 4 5
8