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

learn more… | top users | synonyms

0
votes
0answers
9 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
27 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 ...
0
votes
2answers
101 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 ...
0
votes
0answers
28 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
58 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, ...
0
votes
0answers
42 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 ...
0
votes
1answer
112 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 ...
2
votes
1answer
48 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 ...
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
138 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 ...
0
votes
2answers
137 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
21 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
33 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 ...
3
votes
2answers
102 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 ...
1
vote
1answer
148 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 ...
3
votes
2answers
47 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
186 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
100 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
60 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
77 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
198 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
116 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
101 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
43 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
28 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 ...
5
votes
2answers
250 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
0answers
60 views

Is there a way to copy attributes from a point layer in an overlaying polygon layer? in arcGIS10

I'm working with an agricultural experimental setup of 450 areas. Each area is represented of a Polygon in ArcGIS and additional with a point Layer. I determined the specific ID for each point but I ...
0
votes
0answers
47 views

If I use the summary statistics tool to get a count of points within a buffer, how come it provides a value of 1 when that table has no rows?

So I am running a model that provide the number of points within a network buffer. After using the Select Layer by Location tool to select the points, I use the Summary Statistics tool get the count. ...
12
votes
2answers
490 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
73 views

Convert polygons to optimized lat long radius

I have a research project where I need to search Instagram and Twitter for geo coded data. The APIs allow lat, long, and radius, but I have shape files with polygon shapes and some long lines (think ...
0
votes
0answers
28 views

Point data aggregation for choropleth

I have a sizeable amount of geotagged point data (>1M) and am looking to create a choropleth map of point data density based on boundaries I have in a shape file. I've added this to a fusion tables ...
2
votes
3answers
416 views

Counting points of specific type within polygon using ArcGIS ModelBuilder?

I'm analyzing wind farms and wind turbines within ArcGIS Desktop 10.2. My data consists of the locations of individual wind turbines that are associated with a wind farm (let's call it "Wind Farm ...
0
votes
1answer
113 views

List all Points within Polygon using QGIS? [duplicate]

Complete newbie to QGIS and can't seem to find how to do this. I have created a map with 84 different polygons. Then I've imported approx. 8000 points. What I want to do is now query my map and get ...
0
votes
2answers
200 views

Points within polygon in QGIS [duplicate]

I have a shapefile with polygons. And I have a csv file with points. Now I want to know for each point in which polygon it is situated. Every polygon has a number, so I want to create a file where you ...
1
vote
0answers
48 views

Sample points based on underlying polygon attributes

I have a point shapefile and I would like to sample those points (just like the "Sample" tool allows points to sample underlying raster) to receive a table with underlying polygon values (interested ...
2
votes
0answers
81 views

QGIS's “Points in Polygon” counts zero in every census tract

I am mapping the location of incidents of asthma using QGIS. I would like to count how many points are in census tracts to better understand the areas where asthma occurs most frequently. My map ...
1
vote
0answers
504 views

Geofencing: Query if a POINT is within a POLYGON

I am trying to use the following query to search if a point is within a defined POLYGON (aka a geofence I want to define): ...
2
votes
1answer
99 views

Points in Polygon results in PNTCNT=NULL

I am trying to use the QGIS (2.6.1) vector analysis tool "Points in Polygon". The points originally came from a KML file and the polygons I created new. I initially had a warning about different CRS ...
0
votes
1answer
67 views

cross referencing files question

This may be an easy question so please forgive me if it is (or if it makes no sense) as this is all very new to me. I have 3 files that I am trying to cross reference. One file has columns category, ...
2
votes
0answers
343 views

Speed up row-wise point in polygon with Geopandas

I have a geopandas GeoDataframe which contains some attributes and a geometry column which is filled with shapely Point(lon, lat) objects. Moreover, there is a GeoSeries which is equally indexed as ...
1
vote
0answers
47 views

Arcpy script or other method for points in polygon per participant

Is there an Arcpy script or another way that I could use to find out the number of GPS points falling within each participant’s home neighbourhood as defined by an 800 meter network buffer around the ...
2
votes
2answers
793 views

Determine which points are contained inside a given polygon

I have these database tables defined: CREATE TABLE regions ( id SERIAL PRIMARY KEY, name VARCHAR(150) NOT NULL ) CREATE TABLE region_points ( id SERIAL PRIMARY KEY, region_id SERIAL ...
0
votes
1answer
90 views

constrain random points with a polygon in R using sp library

I have a map of London's waterways, which I've grided into a raster dataset to enable me to measure proximity to water from randomly generated points. What I'd like to do please is to constrain the ...
4
votes
2answers
2k 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 ...
1
vote
1answer
254 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 ...
1
vote
2answers
244 views

Mean values of points within a polygon layer

I have 2 shape files (1x points and 1x polygons). The points have different values (soil sampling results). What I want to do is to calculate the mean values of the points inside the different ...
2
votes
2answers
64 views

Why do I get green crossed circles instead when I try to move a point?

It's really horrible I must say. I sometimes have geometry issues and then try to go one by one through them and fix these cases. Therefore I mark the area points and delete them for instance. After ...
2
votes
1answer
122 views

Why is Shapely and contains_point not detecting point being on land?

I'm using the world shape file that can be found at https://trac.openstreetmap.org/browser/applications/editors/merkaartor-branches/merkaartor-0.14-fixes/share/world_shp/world_adm0.shp?rev=17052. ...
2
votes
0answers
29 views

Aggregate nearby points to develop equally sized regions in QGIS

I have a list of 4,500 points (lat, long, unique id, attribute). I also have a service territory which all of the points fall into. I would like to break the service territory (polygon) into 6 ...
2
votes
0answers
20 views

How to find out to which polygon each points belongs to in ArcMap [duplicate]

I have got a shapefile consisting of a number of polygons, and another shapefile with a number of points. I want to add a column in the points shapefile. For each point, I want the column to contain ...