Questions tagged [intersection]

Use this tag when asking questions related to where features overlap.

Filter by
Sorted by
Tagged with
2 votes
2 answers
1k views

Python GeoPandas - if distance between each point and its neighbor(s) is less than 20m, delete all but the most recent point

I have a GeoDataframe that contains thousands of points with a corresponding timestamp (milliseconds), which is an amalgamation of many gps trajectories. I must check the distance between each point ...
0 votes
1 answer
1k views

Finding percentage of raster contained in shapefile using ArcGIS Pro

Using ArcGIS Pro, I have a raster that shows tree height and a shapefile that contain parcels of land. I am trying to find out the percentage of the raster that intersects with the shapefile for each ...
4 votes
1 answer
11k views

Using GeoPandas buffer function to get buffer zones in kilometers

I am having trouble with using GeoDataFrame.buffer function. That is probably because of my lack of understanding crs. Here is the case: I have events dataset (points longs & lats) and locations ...
0 votes
0 answers
60 views

Selecting polygon features that intersect another polygon feature using PyQGIS

I'm new to PyQGIS, I'm trying to select all polygons in my map layer (Crops) that are intersected by my radius polygon layer (buff), However every time I run the below code, polygons that are not ...
4 votes
1 answer
706 views

GeoPandas cumulative value sum for intersecting polygons

I have a GeoJSON file for all of the tax areas in the state of Utah. I read it into a GeoPandas dataframe. Now each row represents a tax area polygon. Many of the tax area polygons overlap each other....
2 votes
3 answers
298 views

QGIS: How to only get the intersection part of self-intersecting polygons?

I am trying to find places where different features in one layer intersect. An example picture of the layer: And the result I would want from it: However, at best, using Intersection, Clip or SAGA ...
1 vote
2 answers
96 views

Adding vertices (in QGIS) on segments where other nodes (from same layer) snap to it

I've started drawing a routing network but realised after finishing it that it doesn't work without nodes at all intersections. "shortcut" lines were used to join the main routes together, ...
5 votes
4 answers
3k views

Intersection point (coordinates) of two paths given start points (coordinates) and bearings (degrees) in Python

I'm dealing with geographic coordinates and geographic bearings (true north) and I want to get the intersection point of two points with different coordinates based on their azimuths (True north ...
3 votes
3 answers
63 views

Intersection without cutting off whole polygon using QGIS

I am trying to intersect a larger map of MSOAs with a 50km ring to create a set of MSOAs within the ring. However, I would like to keep the MSOAs whole, even if not all of it lies within the 50km ring....
2 votes
1 answer
421 views

Compute the distance from a point to polygon given the point and direction

I want to compute the distance from a point to a polygon given the point and direction. Currently I am using shapely and defining a "somewhat" infinite line string. This is not ideal as I ...
1 vote
1 answer
210 views

Slow processing in ArcMap

I am working with the vector files: Landuse classification shapefile for a certain area with 4 landuse categories - builtup, vegetation, water and open spaces. (area bounds = 95sqkm). I classified a ...
3 votes
2 answers
298 views

Query Z at intersecting point locations from a MultiPolygonZ?

I create a MultiPolygonZ geometry with ST_DelaunayTriangles(). select st_setsrid( ST_CollectionExtract( ST_DelaunayTriangles( ST_GeomFromText('MULTIPOINT ...
0 votes
1 answer
8k views

Convert lat/lon into meters

I have a database of latitude, longitude and radius in the following form: 48180759,11518950,19.0 Both latitude and longitude are expressed in degrees but then multiplied by 1e6 (or 1000000). ...
0 votes
1 answer
488 views

Using st_intersects to classify points in a multi polygon

I have a list of lat/lons and want to determine which county they belong to, by intersecting them with multi polygon dataset using sf::st_intersect. I can successfully perform the intersection and get ...
0 votes
1 answer
664 views

Extract Points by Attribute for each Intersecting Polygon in ArcGIS Pro

I have a points shapefile and a polygon shapefile, each with millions of features. All points lie spatially within polygons so that there is one or more points within each polygon. The points have an ...
1 vote
0 answers
436 views

Calculating intersection of two 3D vector polygons [closed]

I have not found a solution yet to intersect two 3d vector layers. The solution is to calculate the intersection of the two polygonal 3d surfaces. Does anyone know a solution to intersect two vector ...
0 votes
3 answers
4k views

How to produce a 'count' of points intersecting lines?

Within ArcMap, I have a point dataset representing accident data, and a road dataset. My goal is to attribute the road dataset with a count of how many particular accidents occurred on each road ...
2 votes
3 answers
101 views

Identifying which points belong to which part of the Multipolygon after extracting vertices in QGIS

I currently have a layer which is composed of different areas. I want to extract the coordinates of the vertices of the shape to CSV in QGIS, which I successfully am able to do by using extract ...
0 votes
0 answers
42 views

Area of intersection between two polygons: TopologyException: Input geom 0 is invalid

I am trying to compute the area of the intersection of two polygons as follows: inter = geomap_ilot.sjoin(df_final_quartiers_arrond) def f(frame): """A function to calculate ...
0 votes
0 answers
33 views

Intersection of polygons [duplicate]

I have a brown polygon which intersects two purple polygons: I d like to make sure that the brown polygon (64981Cas) is allocated to the purple polygon with the highest intersection area (the polygon ...
2 votes
1 answer
61 views

Generating centerline of a polygon feature, extending line feature - ArcGIS Pro

I am attempting to generate centerlines of polygon features using Polygon to Centerline in ArcGIS Pro. My goal in this effort is to create a straight line directly through the center of the feature. I ...
1 vote
1 answer
976 views

How to efficiently get the intersection between vector and raster in R?

What is an effective way to clip (intersect) a vector layer by raster values? Assume we have the following two layers: vec - a large vector dataset with polygons ras - a raster dataset which works as ...
2 votes
1 answer
71 views

Incorrect output when smoothing line that intersects multiline with PyQGIS

I wrote a such script to smooth my line. It checks whether a line of two points intersects the border of a polygon and, if not, then draws a line. This script works well for a simple example, but bad ...
1 vote
1 answer
416 views

GDAL: Get feature names of intersecting shapefiles

I am looking for all Featurenames in a shapefile (shp2) which intersect with a given Featurename ('MyFeatureName') in another shapefile (shp1). The following code works (Python), however I am ...
1 vote
2 answers
84 views

Find points x meters from a center in a specific direction (or line)

I just started to work with POSTGIS and I am currently working with signalised intersections. I have the center of the intersection as a point and the connecting roads as linestrings. I need to find ...
1 vote
2 answers
62 views

Intersecting a circle and a geodataframe

I have created a circle which I am trying to intersect with a geodataframe as follows: circle_gdf=gpd.GeoDataFrame(geometry= [circle]) joinCircle = gpd.sjoin(left_df=circle_gdf, right_df=transactions,...
0 votes
2 answers
1k views

Clip an image with a shapefile in Google Earth Engine

I have an image collection in which I mapped a function to clip all images with a shapefile. The shapefile is a buffer of linear vector, and my goal is getting all areas that are outside the buffer. ...
5 votes
2 answers
5k views

geopandas.intersects() over each row

In trying to answer Writing selected features to shapefile using OGR and Python? I ran into problems with geopandas.GeoSeries intersects methods. I have the following line and polygon: import pandas ...
4 votes
3 answers
3k views

Dividing Polygon into parts which have equal area using R

I have a Multipolygon and want to split it into parts with an equal area. How can I do it using R? my data: pol <-readOGR("/Users/Desktop/test.shp") pol_wkt <- wicket::sp_convert(pol) ...
0 votes
2 answers
112 views

Shapely intersection cuts LineString into MultiLineString instead of LineString

I ran into a problem where shapely.intersection cuts a LineString into a MultiLinestring with lots of short lines instead of a simple LineString. The intersection is made between a circle (Polygon) ...
0 votes
0 answers
61 views

Combining data using QGIS

I have a background in GIS but haven't worked with it in years, and QGIS isn't my strong suit. I have two shapefile layers: Layer 1 is polygon, for provincial basemap. I also joined a lot of other ...
0 votes
0 answers
62 views

Python Geopandas: Dissolve function does not dissolve overlapping polygons

I have developed a Python program using GeoPandas to handle overlapping polygons. The program first dissolves these overlapping polygons and then applies an overlay operation (specifically, ...
1 vote
1 answer
251 views

Areas of polygon within different buffer overlaps using ArcMap

I have two shapefiles, one with some 100 buffers and one with polygons of which I want to calculate the areas within the buffer overlap areas, but with regards to the adjacent buffers. E.g. the area ...
18 votes
3 answers
37k views

Differences Between Clip Tool and Intersect Tool

How is the clip tool different from the intersect tool in terms of how it works or the result? I don't have a specific situation in mind. I was learning about each of these tools and was curious about ...
0 votes
1 answer
96 views

Finding all boundaries with x meters clearance

My goal is to find all possible "walls" (the parts of the initial polygon boundary) where I have at least x meters clearance. Here is the full area I'm working with, but heres a short ...
3 votes
2 answers
80 views

QGIS Single sided buffer value of specific area and line length on 90 degrees lines

I need to Single Sided Buffer a specific surface based on a line length, on QGIS. Example: line length: 60.367 meters. area needed from single sided buffer: 452.4 square meters. theoretic Single ...
0 votes
1 answer
748 views

How to determine the order of shapely's intersection function between two LineStrings

I want to find all the Point intersections between two shapely LineStrings. It is possible that there are multiple intersections and hence the output can be a MultiPoint. How do I know that the output ...
3 votes
2 answers
722 views

Query similar Linestrings (running workouts) using PostGIS

I track my running workouts using GPS and I have the coordinates for each of them I create a table to save each workout CREATE TABLE runnings (id SERIAL PRIMARY KEY, userId ...
2 votes
1 answer
350 views

How to add intersection vertices to a ShapelyLinestring?

Assume that I have two shapely LineStrings. I want to find their intersection and then add the intersection point as vertices into the respective LineStrings. from shapely.geometry import LineString #...
0 votes
1 answer
35 views

How would I go about efficiently digitizing intersecting polygons from a georeferenced map by snapping vertices in QGIS?

I have a map I've georeferenced in QGIS that has a lot of intersecting and adjacent polygons. I want to efficiently snap the vertices together as I draw the polygons because I don't want overlaps and ...
0 votes
0 answers
54 views

How to make a list of pixels which intersect with my points?

I have: a series of rasters which are cut to the same dimensions with the same resolution (1km by 1 km). I also have a series of points of bird observations. I want to create a data frame which ...
5 votes
2 answers
4k views

Line intersection with circle on a sphere (globe or earth)

How can I find the intersection point of a line and a circle on a sphere (earth surface) Please, if any one knows a good solution help.
0 votes
1 answer
539 views

Extract by location works improperly in PyQGIS standalone script

I have been trying to extract polygons from one layer that intersect a polygon in another layer, and another extract that is disjointed, and looping this over several files organized by date. When ...
1 vote
2 answers
1k views

How to speed up the intersection of two large shapefiles in R with sf (or any other way)

I have two large-ish shapefiles. Shapefile 1: One can be downloaded from here: https://data.statistik.gv.at/data/OGDEXT_DSR_1_STATISTIK_AUSTRIA_20111031.zip It is ~20 MB in size Seems to be super ...
0 votes
0 answers
28 views

Calculating intersection of a line segment with a circle on Earth's surface from latitude and longitude coordinates

I'm working on a problem where I need to determine if a line segment between two geographical points on the Earth's surface, intersects with a circle on the Earth's surface, defined by a central point ...
1 vote
1 answer
2k views

Finding shortest distance from point(s) to number of polygons at varying angles using shapely?

My aim is to calculate the distance a point is from land in Python, trying to replicate the functionality of fetchR. Given an origin and distance, I create shapely LineStrings which radiate out from ...
2 votes
4 answers
2k views

ST_Intersection point of two 3D linestrings - how is the Z value calculated?

I have two 3D linestrings (geometry type LINESTRING Z) in a PostGIS database that intersect in 2D space, but not in 3D space. Given that there is technically no 'shared portion' of geometry in 3D, how ...
6 votes
1 answer
270 views

Finding number of lines touching intersection point in polyline layer using QGIS

I am trying to calculate the number of lines touching an intersection point to calculate the number of 3-way, 4-way (etc) intersections within my polyline layer. E. g. when 4 lines are connected to an ...
0 votes
0 answers
68 views

Calculating from GPS time duration of a linestringM within a polygon

I am analyzing trajectories from GPS points, including timestamp (Linestring M). I need to clip trajectories that cross polygons, and calculate time spent within those polygons. However, I have 2 ...
3 votes
0 answers
460 views

r - intersection of 3D objects [closed]

How can an intersection of 3D object with 3D object be done in R, for example a 3D line with 3D polygon? Saw that "sf" provides some possibilities but didn't get the desired result. What was ...

1
2 3 4 5
24