Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [within]

The tag has no usage guidance.

0
votes
0answers
34 views

Locating observations that lies within a collection of Polygons (Python)

I'm trying to locate the observations that lie within a collection of Polygons but my current implementation takes forever, and I suspect that it is because the 'within' method needs to check all ...
0
votes
1answer
56 views

What algorithm is used by the $geowithin operator of Mongodb

MongoDB can perform geospatial query such as finding restaurants inside region with the operator $geowithin. For example: db.places.find( { loc: { $geoWithin: { $geometry: { ...
0
votes
1answer
28 views

MSSQL performance with Geography (point within polygon)

I have a query, below, that works - however its very slow, looping through roughly 24,000 points per second. This is a rather high end production DB server with MSSQL and SDE, and in other instances a ...
0
votes
1answer
47 views

Polyline length within corresponding polygon

ArcGIS Pro 2.3: I have a feature class of polylines and for each polyline I want to analyze against its corresponding polygon. The link is the FLIGHTID field and it is a 1-to-1 relationship. I am ...
0
votes
1answer
68 views

With Spatialite, how do I run PtDistWithin with meters?

So the problem is that I have a set of multipolygons and points and I need to be able to query the data with a given point to check which ones are within 'x' km. Initially my SRID was 4283 but I ...
1
vote
1answer
189 views

How to select features which overlap one geometry but are disjoint from another?

Given a point layer and a polygon layer (P1) in GeoServer, the following CQL Filter selects points which intersect the polygon P1: CQL_FILTER = "Within(geom,POLYGON((P1_coordinates)))"; The ...
0
votes
0answers
146 views

geopandas geometry.within problem ValueError: Geometry column cannot contain mutiple geometry types

I'm trying to do an overlap of some lines with polygons with geopandas. For a reason I don't understand, gpd.overlay(grid, hel, how='intersection') is not made for lines and polygons, so I'm trying ...
3
votes
1answer
315 views

r - sf::st_within output is sparse geometry binary predicament format. How to convert to character or logical vector

The same question is asked here: https://stackoverflow.com/questions/49294933/r-convert-output-from-sfst-within-to-vector but I thought this might be a more suitable place for GIS related questions. ...
0
votes
1answer
565 views

geopandas + shapely. Point within a shape

I am using geopandas to import a shapefile and then check if a point is within that shape. I am using the shapefile found in http://opendata.atlantaregional.com/datasets/cities-georgia?geometry=-87....
1
vote
2answers
232 views

Counting number of points differing in specific attribute within polygon in ArcGIS Desktop?

I have a grid of polygons and a shapefile with several types of points (POIs). Now I would like to count the number of POI classes lying within each polygon? With spatial join I only managed to get ...
0
votes
1answer
83 views

Identifying multiple polygon features that contain point features and adding attributes to table in ArcGIS Desktop?

I have a point layer and a polygon layer, both containing hundreds of records. Each point feature can be within multiple polygon features (max. 4), and each polygon feature can contain multiple point ...
-1
votes
2answers
380 views

Determining if polygon falls within another polygon using QGIS?

How can I determine if a certain polygon falls within another separate polygon using QGIS?
1
vote
1answer
436 views

Count the length of all polylines from one shapefile within the segments of polygon of another shapefile

I have polylines with counted lengths. And i have the polygon shapefile (fishnet). I want to calculate the sum af lengh of polylines and amount of lines that are within the border of each segment of ...
2
votes
1answer
829 views

Searching for a point within a multipolygon

I'm performing a mySQL query to check if a point is within a multipolygon field. I've got a database field storing a multipolygon and I want to check if a point is within any of those polygons. ...
2
votes
0answers
159 views

How to find shortest line from a point on a polygon boundary to a multilinestring, but the line is inside polygon (PostGIS)

I have 3 geometries 1 polygon 1 point on boundary 1 multilinestring In this image you can see the problem. I need to find shortest line from point (green square) to line (red), but the line must be ...
1
vote
1answer
672 views

Select all points that fall within any polygon from multiple layers

I'm using MapInfo and would like to achieve the following: Find out all the points that fall within any of the polygons on screen, and which polygons they are contained within. The data I am working ...
2
votes
1answer
4k views

Getting intersection of circles using shapely?

I have a List of Points which I transform to circles. Code from here circles = [Point(random.random(), random.random()).buffer(random.random() * 0.1) for i in range(3)] I want to know which circles ...
0
votes
1answer
32 views

Documentation on spatial queries [duplicate]

Is there any documentation / definition of the operations within, crosses, intersects etc that can be found on the spatial query just like ArcGIS provide?
3
votes
2answers
582 views

Optimisation of MySQL JOIN based on a Within match

I have a table of points and boundaries, and am trying to add the boundary ID which a point is within. However, using a LEFT JOIN ON Within(location, boundary) it is taking about 3.5 hours match 450,...
22
votes
3answers
9k views

How to refer to another layer in the field calculator?

Is there a way to select an attribute from a polygon layer and insert the value into a virtual field of a point layer using "within" in the field calculator? CASE WHEN within($geometry, ...
3
votes
1answer
365 views

Using arcpy to find geometry within another feature

In Arcpy, I would like to start with a point and then using its geometry method to find out if it is inside my polygon feature (Urban Areas) deeper than the buffer distance. This is a follow up to ...
2
votes
1answer
1k views

Invalid join selectivity error in postgis 2.1.3

I have 2 tables, one for points and one for polygons. I want to find points falling within theese polygons, so I quered: select p.id, l.id from points p inner join polys l on st_contains(l.geom, p....
2
votes
1answer
201 views

Finding point within box using MongoDB?

Suppose the point has coordinates for a search within the box: (long:-155, lat:19) If we have the box: SW - (-170, 10), NE (29,69) that everything is fine and we can find this point because it's ...
3
votes
1answer
4k views

WFS filter for point in polygon (PIP) query

I am trying to construct a WFS request. I want to determine if a certain point is within a polygon. The point coordinates I want to send via the WFS request. The polygon is saved as a layer on my ...
4
votes
2answers
466 views

Alternative to Spatial Query on large data

I have around 110000 points data spread around the world. the shapefile size is 116 Mb. I want to select points which are inside asia. I have been using qgis but this time qgis is not being able to ...