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

learn more… | top users | synonyms

0
votes
1answer
22 views

Assign similar ID to points inside a polygon

I have 3 input datasets of points. What I'm trying to do is to assign a common ID code to the points that are close to each other (no specific distance). I'm using a ModelBuilder to achieve this : ...
1
vote
0answers
5 views

Mapping shapefile attributes to raw data [duplicate]

I have raw address data stored in a sql server database (2012) which comprises address, city/suburb, state and generally country (Australia). I would like to take this address data and following ...
1
vote
1answer
28 views

Checking if point is inside irregular polygon?

I'm using Javascript (https://github.com/substack/point-in-polygon) to test if a point is inside polygon, however I think it's adapted from ...
6
votes
4answers
12k views

Check if lat/long point is within a set of polygons using google maps

I know how to do the above using Esri (Query task on shapefile), but can this also be done using Google Maps? Do I have to query each polygon or is there one method to query a set of polygons?
1
vote
0answers
41 views

Calculating the spatial variance of well density? [closed]

I have wells as a point shapefile and have calculated the spatial density of these wells in 400+ basins (polygons) by dividing the number of wells in each basin (found by doing a spatial join) by the ...
1
vote
1answer
45 views

Postgre/PostGIS - How to find points inside an area

I have a database of clients/users with their coordinates. I would like to select all clients within the marked area. Query: SELECT * FROM clients INNER JOIN polygons ON polygons.polygon @> ...
1
vote
1answer
32 views

Postgis bounding box intersect vs polygon intersect

I am running a point in polygon test for close to one billion points. The size of my polygons are very small (at about 12 vertices each polygon). Therefore, I would be satisfied even with a bounding ...
1
vote
1answer
24 views

Mapping Longitude and Latitude to US state

Is there any database (Gov data or private) or web service that map Longitude and Latitude to US state? I have the specific Longitude and Latitude of a location and would want to identify the state ...
4
votes
1answer
83 views

QGIS Points in Polygon Crashes (with data)

New to QGIS, using 2.14.0 on Windows 7 I am trying to run Vector -> Analysis Tools -> Points in Polygon... on these data. I want to get the PNTCNT and summary statistics on the Amount attribute. ...
5
votes
2answers
270 views

Boundary from Points

I have a point cloud and need to process a very detailed boundary around the outer points. Is there a tool in QGIS? Convex hull is not detailed enough. Thank you!
0
votes
1answer
183 views

Spatial Join in R

I'm fairly new to using R for spatial work so bear with me. I have found questions similar to this but nothing that answers this question specifically enough for me to implement it. I have point data ...
3
votes
1answer
62 views

Optimising a very large point in polygon query

I have a national dataset of address points (37 million) and a polygon dataset of flood outlines (2 million) of type MultiPolygonZ, some of the polygons are very complex, max ST_NPoints is around ...
2
votes
2answers
2k views

Select points within a polygon and update attributes

This seems really simple but I can't get it to work. I have two feature classes, a polygon of sales areas for a city, and point layer of addresses. I want to select the addresses based on the sales ...
2
votes
1answer
63 views

Bulk loading into pyrtree index

I'm using pyrtree to create an index for a point in polygon operation. I am currently trying to insert 1.8 million rows into the index and it takes more than an hour to do so. I am unable to use rtree ...
3
votes
1answer
28 views

Total of several values in field for points within polygons

I have ~4000 insurance claims for a city. I have made a fishnet and would like to count the number of claims within each polygon. It is easy to count the total number of claims, but I would like to ...
1
vote
0answers
42 views

Need to highlight required area using leaflet [closed]

I need to display a polygon and highlight a city, I added the link bellow https://nominatim.openstreetmap.org/search.php?q=Bambalapitiya&polygon=1&viewbox= as nominant search I need to ...
4
votes
1answer
57 views

Add column to point data of whether point falls inside polygon

This seems like it should be fairly simple, but have been having quite a bit of trouble. I am no expert in ArcGIS for Desktop I have: one layer of points, and 4 polygons, which partly overlap I can ...
2
votes
4answers
1k views

How to create random point in according polygon for each dataset entry in a list (with R)

I have an area divided into polygons, and a dataset of observations which has a common field with the polygon layer. I now would like to generate a random point for each dataset entry within the ...
0
votes
0answers
93 views

How to find a polygon from coordinates provided

I am really new with PostGIS, and I need to find a polygon providing (lat - long) coordinates. My goal is, get the coordinates x and y passed by parameters, and find the polygon which where this ...
0
votes
0answers
38 views

How to get all postal code using polygon mapping

I am working with polygon mapping in GOOGLE MAPS API 3. in my application i need to get all postal code (Singapore) between the boundaries which i mapped. can anyone suggest me for any possibilities.
1
vote
1answer
52 views

Point in Polygon: Aggregation does not work

I'm working with these data: click here. The task is actually pretty simple but somehow it won't work properly. I have a point and a polygon layer. In most polygons there are a couple of points. The ...
2
votes
1answer
260 views

Can a CartoDB-Torque map be used for polygon instead of a point data?

Can you use Torque for country data - polygons instead of points? Make animated maps with polygon data instead of point data? I would like the color of countries to change over time as a particular ...
10
votes
2answers
857 views

Update database row with points that fall within polygons

I have a PostGIS/Postgresql DB that has two tables in it. One with point geometries and the other that represents country boundaries as polygons. I would like to add the country name that each point ...
0
votes
2answers
229 views

Point in Polygon - geojson - using Shapely / Python returning incorrect results

I'm trying to test if a point is inside a polygon using this example: http://stackoverflow.com/questions/20776205/point-in-polygon-with-geojson-in-python However, my output says that none of the ...
12
votes
2answers
770 views

How does spatial polygon %over% polygon work to when aggregating values in r?

I'm working on an environmental epidemiology project where I have point exposures (~ 2,000 industrial hog operations - IHOs). These IHOs spray on nearby fields, but the feces water droplets and smell ...
0
votes
0answers
32 views

Spatial Query - Select features within

Is it possible to know which Point In Polygon algorithm is used when we select points within a polygon? Is it for example the ray-casting algorithm? In addition, is there a definition of the operation ...
4
votes
1answer
80 views

How to get the list of QgsPoint from a polygon Layer in pyqgis

I have a little question about how to manage the points in a layer. from qgis.core import * def run_script(iface): layer = QgsVectorLayer(layerType.Polygon+'?'+crs.psg_4326, ...
6
votes
2answers
1k views

Creating polygons from one to many relationship of points using QGIS or PostGIS?

I have a set of polygons that are in a one to many relationship with points. The polygons are administrative boundaries and the points have information on companies and percentage of ownership . I ...
0
votes
0answers
53 views

Number of polygons in shapefile too high

I downloaded administrative shapefiles from www.gadm.com/country (China). The Python (Basemap) code below tells me that there are 2365 polygons in it. However the .csv and .dbf files included with the ...
6
votes
2answers
3k views

Join spatial point data to polygons in R

I am trying to perform a spatial join between point data and polygon data. I have data that indicate the spatial coordinates of an event in my csv file A and have another file, shapefile B, that ...
2
votes
1answer
61 views

Count unique features of points in polygon

I have a series of points with various fields in the attribute table such as car_id, time etc., I've created a hexagon vector grid, I want to count how many unique car_id's occur in one of the ...
4
votes
2answers
786 views

Find all street names or addresses within a polygon

I have a geojson list of lat/long coordinates that make up a custom polygon of a section of my county. Ideally I would like to be able to find all the addresses that are within the polygon boundaries. ...
2
votes
0answers
26 views

Tool to help us re-district?

I work for a mid-sized school district and we unfortunately have to close one of our school buildings. That means that the neighborhoods who've been sending their children to the school that is ...
0
votes
1answer
249 views

Python: Point in polygon, boundary and vertex check (ray casting)

So I have written some code to check whether a point [(x,y)] lies within a polygon [(x,y), (x,y), (x,y), (x,y)] but the code fails if the point lies on a boundary or a vertex, I need this to be ...
1
vote
1answer
349 views

Checking if point is inside area using OpenLayers?

I have a map and one point. I want create an area and check if a point is inside the area. map = new OpenLayers.Map("map"); map.addLayer(new OpenLayers.Layer.OSM()); var lonLat = new ...
0
votes
2answers
335 views

How to extract all the polygon coordinates from a SpatialPolygonsDataframe?

I want to do something relatively simply but it seems to be very difficult to do, though I am very new to using R for spatial data so apologies if I've missed something obvious. I have a list ...
0
votes
1answer
51 views

cannot get properties of multipolygon - mapbox/leaflet

I'm currently using mapbox with natural earth and geojson to populate a map with multipoygons and custom markers. Each of these has a set of properties and information that I need to display on click ...
1
vote
1answer
39 views

How can I count points from several buffer distances in PostGIS updating the table?

I have a problem regarding a calulation on PostGIS. I have to calculate how many facilities fall within a given distance. This is not really a problem though, but updating my table is. I have this ...
4
votes
3answers
10k views

Solving the Point in Polygon Problem Using Google Maps and Fusion Tables

The Point-In-Polygon problem is fairly well documented on this forum. My question is if there is a way to use Google's free tools, i.e. Google Maps, Fusion Tables, and possibly Google Refine, to solve ...
3
votes
2answers
164 views

Deleting line vertices inside polygon using ArcPy?

Is there a way to automatically delete vertices in line features using a polygon file in ArcGIS so that it wouldn't cut up the line but just straightens the line inside the polygon? The lines are ...
3
votes
2answers
56 views

How do I generate grid square polygons from a 5m DTM file?

For my dissertation I have collected point features as coordinates and want to relate their distribution around a lake to elevation to see if there is any pattern/relationship between them. I have ...
6
votes
2answers
209 views

Create large amount of random points in binary raster

I want to create a point vector dataset of 10000 points (or larger) within a binary raster, where the points should be constrained to areas where the raster value is 1. I tried the following steps. ...
1
vote
2answers
133 views

What algorithm allows me to calculate the set of all points inside a polygon?

Imagine I have a polygon, which represents the countours of a building on an integer 3D map (everything is a 1 meter by 1 meter block in that map). In the image below, you see several buildings ...
0
votes
1answer
98 views

Finding which points from dataset within specified boundary using CartoDB?

I'm a non-coder using Cartodb. I've uploaded a dataset that has longitudinal and latitudinal coordinates, and overlayed that with a map with neighborhood boundaries. Is there a way to easily compare ...
1
vote
2answers
82 views

Switch selection of specific polygon

I'm using ArcGIS 10 desktop version. I have a number of polygons, let's say 300, in a layer. Each polygon contains information of schools, ranging from 100 to 250 points, in a separate point layer. ...
4
votes
5answers
326 views

Is there any simple integration for counting points in polygon using python qgis?

Is there any simple integration for calculating count of points in polygon using QGIS-Python integration? In other words, are there any pre-defined functions for points in polygon of QGIS using ...
1
vote
1answer
191 views

Can we count the points in polygon using pyqgis code? [duplicate]

Does anyone know how to calculate the point in polygon from the given points and the buffer output using python qgis. I have every thing loading the data and retrieving the output. But now I want to ...
0
votes
2answers
141 views

Help finding point in polygon via Spatialite with example karst zones data

I'm working on a school project involving Spatialite and point in polygon queries. I've successfully followed this example: http://blog.crazystyle.net/?p=255 I am now trying the same sequence of ...
2
votes
0answers
45 views

split points evenly to neighboring polygons?

I have a crime location data set, containing geocoded crime location points that have been geocoded to streets and street interactions. I also have a census tract shpfile. What I would like to do is ...
1
vote
0answers
43 views

How to join points into overlapping polygons layer?

I'm using QGIS and I am relatively new to it. I have a points layer. Each point is the location of a conflict event and the attributes are the type of conflict, year of the event, number of deaths ...