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

learn more… | top users | synonyms

0
votes
1answer
29 views

Point in Overlapping Polygons using R

I have shape file with about 15,000 polygons. Some polygons overlap with other polygons. Most of them don't overlap with any other polygon. I also have a points data set with about 100 Mil points (lat/...
0
votes
0answers
32 views

Optimizing placement of several points enclosed by polygon from certain features?

I wish to find a way to optimize the placement of 5 points which are enclosed by a polygon. The optimization should be in a way that there is a minimum distance between the 5 points. 300 meters ...
1
vote
0answers
36 views

Creating random points using density-QGIS

I'm trying to generate random points at a specific density within a polygon layer. The polygon layer has 1850 features and I'm looking to have random points within each feature at 1/meter. Going ...
0
votes
0answers
12 views

How to give component restriction using Google Maps API?

I am using google maps API for an application which has Address form. After filling the form person has to click on map. I want to restrict the user to click only on India/Hyderabad. He should be able ...
6
votes
2answers
9k views

Createing polygon layer from point data using QGIS?

I'm currently using QGIS 1.8.0 I would like to create a polygon layer from a point dataset, where the size of the polygons relates to the resolution of the grid reference. The ultimate aim would be ...
1
vote
1answer
35 views

Creating boundary for multiple point shapefiles that overlay base polygon shapefile?

I have several point .shp files that were geocoded using OpenStreetMap. I located a base map to overlay the point files. I would like to create an artificial boundary based on an 80/20 rule for each ...
2
votes
1answer
23 views

Dealing with spatio-temporal data: sp::over function in R

I have a dataset called carcass, which contains occurrences of livestock carcasses in Norway in the last 5 years (each raw corresponds to a single carcass, which has an ID number, along with longitude,...
4
votes
1answer
129 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. ...
1
vote
0answers
25 views

SRIDs do not match for the two geometries in oracle spatial

I am trying to resolve where some points from Point Geometry lying outside the Polygon geometry. I want to filter those points which are lying outside the polygon geometry. I am getting error where ...
0
votes
1answer
37 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 : ...
2
votes
3answers
178 views

Counting number of points within a grid

I'm trying to count how many floods occur within a given grid cell in ArcMap and I can't figure it out. I've been reading some other posts on here but I haven't been able to find an answer. I have ...
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
109 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 https://www.ecse.rpi.edu/~wrf/Research/Short_Notes/pnpoly....
6
votes
4answers
13k 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
50 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
66 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
52 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
33 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 ...
5
votes
2answers
279 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!
1
vote
1answer
264 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
76 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 200,...
2
votes
2answers
3k 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
94 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
50 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
59 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
64 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
107 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
79 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
68 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
384 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
1k 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
383 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
951 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
34 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
110 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
60 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 ...
7
votes
2answers
4k 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
65 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
903 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
29 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
418 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
436 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 OpenLayers....
0
votes
2answers
512 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
73 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
51 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
11k 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
254 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
69 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 ...