We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [intersection]

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

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

Projecting Cross-Track distance on great Circle?

I have a route formed by some waypoints (black path) and I would like to project it over the great circle (blue path) connecting the starting and ending waypoint. With the work "project" I mean to ...
1
vote
0answers
44 views

Which polygons intersect rectangle in PHP/Linux GDAL?

I'm developing a website where I want to test which polygons from a shapefile intersect a given rectangle. Using PHP, I thought about using exec() function, calling a GDAL program, like ogrinfo. ...
1
vote
1answer
89 views

Creating a new shapefile from points which are overlapped by polygons PyQGIS3

I want to extract points which are overlapped by polygons to a shapefile with PyQGIS. I typed the code below, I don't get an error, but I get points that I have on the beginning. So my intersection ...
0
votes
1answer
38 views

Adding field of intersected polygons in points using ArcGIS Desktop? [duplicate]

I have some points and polygons in an area. I want to add a field in those points that tell what polygons have been intersected by those points and not only what polygons but a specific attribute of ...
-2
votes
1answer
80 views

Calculating wetland coverage/overlay over parcels of land? [duplicate]

I have two layers. Layer 1 has features that are property/parcels with area in acres. Layer 2 has features that are wetlands/bodies of water with area in acres. I want to calculate the percentage of ...
5
votes
1answer
492 views

Get intersecting and overlapping point between two lines in ArcGIS?

I have a line feature class that contains two lines with an overlap and intersecting points. The overlap is circled in the picture. Intersection tool in ArcGIS returns the intersecting point, where ...
2
votes
1answer
370 views

Slow PostGIS line intersection even with indexes

I have line data contained in different graphs. Querying data over multiple graphs and using st_intersects results in slow queries. All lines are represented as geometry(LineString). I am querying ...
9
votes
5answers
14k views

Intersect (analysis) of polygons generating empty output

I have previously asked a question on determining the area of polygons with another polygon boundary. Determining the area of each polygon within a polygon boundary? I came to the conculsion that ...
3
votes
1answer
91 views

How to flatten spatially equal polygons in PostGIS?

I have the following dataset of polygons. All the pieces are broken based on their borders. I added some transparency to better understand what's going on. The pieces that have stronger colors, means ...
0
votes
1answer
252 views

Using Intersect result

I have working Java code for an intersect: gp = new GeoProcessor(); gp.setOverwriteOutput(true); Intersect newintersect = new Intersect(); String in = "(" + srcShapefilePath + "\\polygon.shp; ...
3
votes
3answers
1k views

Query to find the Intersection coordinates of multiple Polyon

I am using the query below to find out the intersection coordinates of 2 Polygons and it's working fine, but how can I use or modify the query to find the intersection area coordinates for multiple (...
0
votes
2answers
622 views

Get features inside a polygon from a WMS Layer in OpenLayers2

i have found some answers for this and that and the most promising approach seems to be this one here: OpenLayers - Get features inside a polygon But i have no clue how to rewrite this to suite a ...
0
votes
0answers
111 views

Shapely intersection operation gives non-intersecting results

I generated two lines by calculating the intersection of each of two overlapping Polygon objects with an overlapping LineString object that goes through both. In pictures: Here is the code: src = ...
1
vote
2answers
43 views

Breaking lines in PostGIS?

I have a roads table and I want to break the lines in the intersections like the v.clean tool from GRASS (I'm talking about how the break tool in the parameters works). How can I do the same process ...
3
votes
3answers
6k views

Determining intersection between GeoJSON feature and given coordinates?

I'm overlaying a Leaflet map with features of GeoJSON, fetched with D3 and added as SVG elements to the DOM. My GeoJSON contains too many features to render at once, so my goal is to add to the map ...
41
votes
8answers
16k views

Select features that do NOT intersect in PostGIS

This seems to me like such a simple question (and it probably is) yet I cannot seem to find an example that gives me the answer. Using PostGIS, I just want to select points that fall outside of ...
6
votes
1answer
137 views

PostGIS slow intersection

Yet another intersection issue. I'm working with OSM database in PostGIS. Now trying to count all buildings that fall into a countries bounding box. This is my query (bbox for Germany). SELECT ...
2
votes
1answer
94 views

Intersecting to vector layers when there is no common attribute [duplicate]

I am trying to join two vector layers into one, the first is a road noise barrier shapefile, the second is a vectorised DEM. The road barriers have a relative height attribute for each section of ...
1
vote
2answers
68 views

Python script tool to make intersection points not working?

A colleague made a ArcPy tool for me which worked last year, but now it wont complete. I don't know what's different except maybe I moved the tool or it's output to a new location. It say's it get ...
3
votes
1answer
191 views

QGIS autopopulate attribute table with spatial intersection

I am working with QGIS. The aim of the task is to label (auto populate) the 'Road From' and 'Road To' columns in the attribute table based on which roads the street intersects with. Looking at the ...
2
votes
0answers
190 views

How to speed up 'intersection' tool for big amount of data?

I can't figure out how to work with a large dataset. The problem is: I want to know how many points (over 700 000 adresses) are within a polygon layer (it's made out of 5 layers, train noise)(they are ...
2
votes
0answers
207 views

Finding the closest points to a line with only one point from each subset of points

I have a set of data points that represent many paths for different journeys, where each journey has its own identifier (Operation No). The data for all journeys is in a single table but in effect has ...
9
votes
1answer
2k views

Performance in calculating raster statistics in PostGIS

I'm trying to calculate raster statistics (min, max, mean) for each polygon in a vector layer using PostgreSQL/PostGIS. This GIS.SE answer describes how to do this, by calculating the intersection ...
2
votes
2answers
65 views

Performing multiple intersections between two polygon tables and one raster table in PostGIS?

Trying to perform an intersection of an intersection in PostGIS. Its an intersection between a point table, polygon table and a raster table with different number of rows. The polygon table is the ...
13
votes
2answers
4k views

Clip polygon and retain data?

I have these two polygons: library(sp); library(rgeos); library(maptools) coords1 <- matrix(c(-1.841960, -1.823464, -1.838623, -1.841960, 55.663696, 55.659178, 55.650841, 55....
1
vote
0answers
138 views

Collecting values from iterated intersections in ModelBuilder? [closed]

I have a points feature class which I am intersecting with a number of polygon feature classes, one at a time (i.e. points AND polygons1, points AND polygons2, etc...). Each time I do an ...
0
votes
1answer
47 views

ArcGIS model tries to tabulate the number of rows from multiple table intersections

I'm trying to generate a table that captures the number of rows, and the source feature class, from the intersection of several FCs against one common layer. My expected output is one row per ...
1
vote
1answer
292 views

True GIS clip of polygons + attribute table

How can a true intersection/clipping of polygons be done in R? Problem description: Shapefile1 contains only one feautre without attributes (or - at least - attibutes don't matter). Shapefile2 ...
0
votes
1answer
121 views

Find the intersecting polygons between 2 tags in OpenStreetMap using Overpass API?

I need to find in Italy all the intersecting polygons of: all airport terminals of the tag["aeroway"="terminal"] that are inside only international airports of the tag["aerodrome"="international"] I ...
1
vote
0answers
205 views

r - intersection of 3D objects

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 ...
3
votes
2answers
1k views

mongo geoIntersects with Spring Data

I created a collection that contains a multipolygon document. I want to write a query in spring data that tells me if a point (lon, lat) intersects the multipolygon. The query in mongoDb is as ...
1
vote
1answer
29 views

How to find if a pixel is entirely within another pixel when comparing for example two GeoTIFF raster maps? [closed]

Using GDAL and/or Python Red: GeoTIFF raster Map layer 1 Blue: GeoTIFF raster Map layer 2
0
votes
1answer
125 views

Getting attributes from intersecting lines to label generated intersection point? [closed]

I have an urban road network (as a feature class), consisting of only polylines. I have to make a database of all the intersections between the streets. As I generate those intersection points, I ...
0
votes
1answer
54 views

Intersecting polygons from different layers based on common values using ArcPy? [closed]

I have two polygon shapefiles (ShapeA and ShapeB) that share some areas. The shapefiles have one attribute in common (CODE) and I would like to do a selection, where I select all the polygons in one ...
0
votes
1answer
118 views

r - turn off automatic ordering of linestrings when applying sf::st_intersection

This question is about how while using sf::st_intersection on a LINESTRING and a set of POLYGONs to get several LINESTRINGs in the CORRECT order. sf::st_intersection automatically orders the newly ...
0
votes
1answer
532 views

Intersecting great circle arcs and polygons

I am trying to find the point of intersection between a great cirle arc and a polygon. I am working in long/lat, where I am given the endpoints of the great circle arc, A and B, and the vertices, C, ...
3
votes
1answer
119 views

PostGIS trigger does not work as expected while checking intersections

I'm trying to write a trigger that should prevent saving lines which do not end at building boundaries. ( A PostGIS-Solution for something like the topology-rule "Must be covered by boundary of" in ...
3
votes
2answers
324 views

Line/Polygon intersection with a tolerance in QGIS

I have a layer with Polygon and a layer with Polylines. I am looking for the list of Polygons crossed by the Polylines. Just here it's relatively simple: intersection function. That said, the ...
3
votes
1answer
155 views

Syntax for “fields to keep” of Intersection tool in graphical modeler

I'm working with QGIS 3.2 Bonn and try to set up a workflow with the graphic modeler. The model uses the Intersection Tool from the QGIS Geoprocessing Tools. The model works, but I don't want to ...
3
votes
4answers
3k views

Produce a list of polygons that a line crosses

I have a polyline feature class and a polygon feature class. What I want to do is add a field to the lines that lists all polygons that touch the line. This is effectively performing a select-by-...
0
votes
1answer
60 views

Count how many times an attribute in a polyline intersects a polygon in QGIS

I am trying to count how many times a polyline with a specific attribute intersects a polygon in QGIS. For example, I have a polyline with a feature class called "size", this contains a text value i.e....
2
votes
1answer
96 views

Read a Raster Band Value inside of a VectorLayer in QGIS [closed]

How to read pixel values in RasterLayer that intersects line features of VectorLayer, applying Python in QGIS?
3
votes
0answers
191 views

Create lines to connect vertices in QGIS

I have a file that marks street edges and want to connect "crossing" points automatically. Image 1 shows the street edge, Image 2 shows the desired result. Is there a plugin or method I can use to ...
4
votes
1answer
143 views

Finding combinations of polygons in PostGIS

all, I have found something that has made me a bit curious about how to correctly use ST_INTERSECTION(A,B). I am looking for every combination of two political district boundary sets in California, ...
1
vote
1answer
53 views

Why do these coordinates not display correctly (or intersect correctly) with this boundary file?

This is a follow up to my previous question. I wrote code that imports the boundaries of a few US states, and, for some arbitrary point within those boundaries, buffers a circle around that point and ...
3
votes
1answer
350 views

Project a point onto a profile tool graph in QGIS

I'm using the Profile Tool add-on in QGIS to extract a profile of a raster data layer. Along this profile there are a series of points which I'd like to project onto the Profile Tool graph so that I ...
2
votes
2answers
570 views

Finding overlay percentage between two polygon shapefiles

I have two layers that I am currently working with: 1. Parcels/property boundaries and 2. Wetlands I am trying to determine the parcels that have 0 wetlands and then for the parcels that do have ...
2
votes
1answer
52 views

Labelling polygons intersecting another polygon file

I have a series of polygons representing land packages and another shapefile representing contour polygons of flood elevations in steps i.e 2-5m 5-10m >10m. I am wanting to label a polygon with the ...
1
vote
1answer
568 views

Error when intersecting large spatial polygons data in R : rgeos_binpredfunc_prepared: maximum returned dense matrix size exceeded

I am trying to intersect two polygons that are SpatialPolygonsDataFrame. I am finally getting output after intersecting a small subset of the data frames. But when i run this on the entire dataset ...
-1
votes
1answer
65 views

Finding and labeling intersections between polygons on a shapefile

I have two shapefiles-- one is labeled islands, the other is unlabeled parcels of land on some of the islands. My issue is that I need to label the islands that have parcels of land. My instinct is to ...