Questions tagged [intersect]
Use for questions about the ArcGIS Intersect tool
232
questions
8
votes
1
answer
6k
views
Generate rectangular fishnet or vector (grid cells) shapefile in R?
I would like to create a polygon of 20 x 10 degree graticules from 180, -180 to 90, -90 degrees.
To do this in QGIS, I followed:
Vector creation tools > Create grid
[Grid extent: -180, 180, -90, 90]...
6
votes
0
answers
66
views
Adding raster value with specific equation using ArcMap
I am trying to develop a raster layer with the interference of streetlight in this example:
As you can see, there are multiple buffer rings around a point layer. I actually want to transform this ...
5
votes
1
answer
226
views
Disjoint is very slow in Virtual Layer but fast on symbology
In QGIS, take a polygon grid (named 'grid') and a multipolygon layer (named 'surfaces').
For each feature in surfaces, I want to union all features of the grid that are disjoint (not intersected) with....
5
votes
2
answers
895
views
Intersecting area between two polygons in the same shapefile in QGIS
I have a shapefile with two polygons in it. I would like to be able to generate the intersecting area between the two polygons.
Please note, I have tried using the intersect tool, however this does ...
5
votes
1
answer
1k
views
GDAL Intersects() not working as it should?
Doing a topological analysis in GDAL/OGR returned an unexpected result. When I started investigating, it seems possible that the Intersects() method is badly implemented. Specifically, points along a ...
4
votes
3
answers
682
views
Extracting polygons from layer crossed by lines layer
I'm looking for a way to only select entities crossed by a lines layer from a polygons layer. I've unsuccessfully tried the Intersect function with lines layer overlay. I'm mentioning that I have used ...
4
votes
3
answers
2k
views
Intersect multiple layers at once QGIS
I'm very new to QGIS and am just learning the intersect function. I have about 10 polygons that overlap (not perfectly) and one layer of about say 15 points. I want to know with which of the polygons ...
4
votes
1
answer
2k
views
What is the algorithm that Shapely used to check if two polygons intersect?
What is the algorithm that Shapely used to check if two polygons intersect?
from shapely.geometry import Polygon
p1 = Polygon([(0,0), (3,0), (3,1), (1,1), (1,2), (3,2), (3,3), (0,3)])
p2 = Polygon([(4,...
4
votes
2
answers
15k
views
Merging Attributes of points into polygon using ArcMap?
I am using ArcMap 10.
I have points layer which the attribute looks like this:
FID Shape ID Lat Long
0 Point 2065 -5.51666 106.48333
1 Point 2319 21.93333 120.73366
I also have ...
4
votes
1
answer
134
views
Label neighbouring features in QGIS
In QGIS I'm trying to label the neighbouring features of a certain polygon but not getting much success. All the features are inside the same layer named MG_Municipios_2020. I'm using the Rule-Based ...
4
votes
3
answers
505
views
Using postgis to flatten all polygons in table
I have a table with many polygons. The polygons all have a name and a value.
I want to flatten these polygons so that each polygon border remains as border to the resulting polygons. Instead of ...
4
votes
1
answer
165
views
Calculating common length of two lines using ArcGIS Desktop
I have a shapefile that consists of around 800 different lines.
Now I have another shapefile which also consists line data.
Is there a method which can help me calculate the shared length in the ...
4
votes
2
answers
92
views
Selecting only the first row of polygons around polygons
I am currently working on my thesis and after trying for a few days I decided to ask this questions since I guess I'm stuck. I'm working on ArcGIS PRO 2.7.0 with datasets obtained via Esri (online) ...
4
votes
2
answers
456
views
Calculating number of polygons or points that a set of polygons intersect with in ArcGIS
I have a set of ~100 polygons in ArcMap 10.2.2 that were generated using the minimum bounding geometry tool.
I have a second set of ~800 polygons generated the same way. What I need to know is for ...
4
votes
1
answer
835
views
Checking if two WGS84 lines intersect in JavaScript
I am trying to work out given two GeoJSON lines (WGS84), if they intersect (i.e. cross one another). Let me give some pseudocode to illustrate:
// Providing Line 1 = lon1, lat1 and Line 2 = lon2, ...
4
votes
0
answers
391
views
Counting nodata and data pixels using PostGIS
I'm using PostgreSQL 9.2.4 and PostGIS 2.0.3.
I have some raster layer and I'm trying to get the count of all pixels (including nodata), cliped by polygon.
Raster was imported by raster2sql:
...
3
votes
1
answer
11k
views
Difference between Crosses & Intersects - Shapely (Python)
I have two questions :
I have some lines (eg: road network). I want to find coordinates of each junction.
Should i use crosses or intersects function from python's Shapely module? They are giving ...
3
votes
1
answer
2k
views
Speeding up intersect query in PostGIS?
I would like to count the number of points that intersect with a list of polygons.
The polygons are very complex (county/state boundaries).
I'm using this query:
SELECT gid, county_name,
(...
3
votes
1
answer
458
views
Calculating final polygon after subtracting all intersecting polygons using shapely [closed]
I have a list of centroids that I buffer to 5000 meters radius. I need to take each resulting circle and run it against the remaining centroids(also buffered to 5000 m) and find the final shape after ...
3
votes
1
answer
160
views
Area of intercepted geometry
I have a polygon layer and a point layer (which was created by obtaining the centroid of each polygon in the polygon layer). I have tried to use the aggregate expression to automatically fill a field ...
3
votes
1
answer
4k
views
Buffer and intersect using turf.js and leaflet
I have 2 geojson feature collections in leaflet. One of them is road and the other one is parcels. I want to calculate buffer for road and then intersect this buffer layer with parcels. How can I do ...
3
votes
1
answer
890
views
Assigning Values from Raster Layer to Vector Layer in ArcGIS Desktop?
I'm using ArcGIS Desktop 10.3.
I have two layers. The first is a raster layer representing density of birds over a given area. The second layer is a polygon layer representing property boundaries, of ...
3
votes
1
answer
305
views
Count the number of buffers intersecting with zip code polygons
I have a short R script in which I read two sets of data:
a shapefile showing the zip codes of a European country
an Excel showing multiple points coordinates throughout the country
I used the ...
3
votes
1
answer
145
views
Buffer 1 to 1 relation in QGIS?
I have 2 layers ( geometric type - point), let's name it layer A and layer B. I need to find which points from layer B don't have their equivalents points from layer A. So i`ve made 10 meter buffer ...
3
votes
1
answer
12k
views
Intersection of a raster and polygon in ArcGIS 10.3
I have two data sets one raster and one polygon. I am interested to see learning the area where the two overlap. I was thinking that I could use the intersect function, but since one of the layers are ...
3
votes
1
answer
400
views
Selecting points within fishnet grid cell with criteria of at least 3 unique values using ArcGIS Desktop?
My goal is to create a raster from points with values based on at least 3 unique IDs within a cell. Cells that had fewer than 3 points with unique IDs will have value NA. See below for clarification. ...
3
votes
2
answers
238
views
Merging attributes from point with containing polygon?
I need to develop a process for merging the attributes of each point in a SDE feature class with a polygon in a SDE feature class that contains the point to create a third feature class. The third ...
3
votes
0
answers
54
views
Specific intersections [closed]
I have a polygon layer that looks like this i.e. they overlap.
When I run an intersection between the layers, I get more polylines i.e. for the circle on the top, the three lines get split because of ...
3
votes
1
answer
243
views
Determining validity of odd polygon using ArcObjects?
Using ArcGIS 10.4.1 a user in our department created a polygon and saved it to a feature class as shown below. The area covered is correct as at times it could overlap itself. I have calculated the ...
3
votes
0
answers
85
views
Dynamic filtering based on selected Layer in ArcGIS Desktop?
I am not sure this is even possible, I have about 38 geographical polygon layers showing areas of the UK, I also have a query (point layer) that shows all of the offices around the uk. What I am ...
3
votes
1
answer
701
views
Pyshp draws polygons out of order after intersection of two shapefiles
I have two shapefiles. One contains electoral borders but not coastline and the other contains provinces and coastlines. I am plotting the electoral districts using Python's pyshp and filling in the ...
3
votes
0
answers
3k
views
Clip shapefile with shapefile
There are two shapefiles. One is a compilation of municipalities on the coast with borders extending into ocean. The second shapefile is a coastal border.
I'm trying to clip the municipality ...
2
votes
4
answers
171
views
QGIS: Calculating the area of category overlay between 2 shapefiles
I have 2 shapefiles (A & B). The polygons in layer "B" are categorized into 8 categories (1-8) and I want to add 8 columns in layer "A" with the areal distribution of the ...
2
votes
4
answers
3k
views
Using Intersect to find where line crosses itself in ArcGIS Desktop?
Can I not generate point features where a line feature intersects itself by using the Intersect tool?
I try using it with just one line input but when I run it I get a warning saying the output ...
2
votes
2
answers
229
views
Checking intersection between two layers with different projection using PyQGIS
I have a point layer and polygon layer
polygon layer contains espg:6344
point layer contains espg:4326
project Crs is espg: 4326
polygon Layer contains rectangles and points are the centroids of ...
2
votes
1
answer
588
views
OpenLayers : intersect between polygon and circle not accurate
When I look for intersect between circle and polygon. He finds intersect between these two, who are not visually intersected.
Everything should have the same projection ('EPSG:3857'). But I don't know ...
2
votes
1
answer
99
views
How to get a list of lines, with a list of polygons that they intersect? [closed]
I am a new user in a PostGIS environment and don't even know where to start.
I have two tables, one storing lines and the other storing polygons.
I to create a query that can be used to get a separate ...
2
votes
2
answers
1k
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
1
answer
67
views
How to automatically count intersecting geometries by excluding a layer and adding new layers with any layer name
I am using the following expression to count and label the number of geometries of a layer (POINTS1_TO_INCLUDE) that intersect with polygons of another layer (POLYGONS):
to_string(
round(array_length(
...
2
votes
1
answer
2k
views
Intersect line with raster QGIS
I am looking to replicate a tool that is available in Geospatial Modelling Environment (GME) within QGIS, preferably not using GRASS. The tool is isectlinerst (Intersect Lines With Raster) http://www....
2
votes
1
answer
5k
views
Raster intersect and gIntersection give different results in R
I'm trying to clip a polygon shapefile (species distribution) with another polygon grid. The goal is to calculate the area occupied by the species within each grid cell. I was able to do it with ...
2
votes
2
answers
2k
views
Intersecting linestrings with polygons in Python [closed]
I have two shapefiles, one is a 1x1 km grid displayed as polygons and the other one is a street network displayed as linestrings. I want to cut the linestrings where they intersect the boundaries of a ...
2
votes
2
answers
813
views
Easiest fix for polygon corner error in QGIS?
I am new to QGIS. What would be the easiest way to fix this apparent boundary error in a shapefile that I have downloaded?
I believe it was intended for these lines to intersect as a 4-way corner, ...
2
votes
1
answer
553
views
Cluster analysis using buffers and polygon features (NOT layer)
I have a point-based vector layer, where each point represents a road accident. I am trying to write a function that:
Loops through my accident layer
creates a buffer, of a given radius, around each ...
2
votes
2
answers
2k
views
Intersect with Raster data
I have ArcGIS 10.2.2
I have raster data over a whole state but am looking at just analyzing a specific county. I downloaded county polygons to overlay over the raster data to determine the area I ...
2
votes
3
answers
816
views
Clip/Intersect but not split features that are on the border
When I use the clip or intersect tools in QGIS it splits the polygon clipper features that are on the border of the clipper, which produces polygons that are only part of the real polygons.
Is there ...
2
votes
1
answer
35
views
QGIS 3.6 on Mac: Extracting attribute value of polygon from another layer when it overlay
I have a layer labeled "Boundaries" with a set of polygons. I have another layer with a set of points labelled "Locations". The "Boundaries" polygons have an attribute ...
2
votes
1
answer
38
views
Assign grid squares to polygons that most contain them
I have a featureclass that is a grid of the countries of the world (88,110 squares).
I am trying to assign all the grid cells to the country that each cell MOST contains (from a shapefile of country ...
2
votes
1
answer
293
views
Intersect overlapping entities and their attributes
I have a shapefile containing 6 classes of polygons on QGis 3.14. Some of these polygons overlap each others, but they're not geometry errors or duplicates, just polygons with different attributes. ...
2
votes
1
answer
194
views
Identifying intersections in ArcPy?
I have two shapefiles: one containing a single polyline feature, and the other containing a number of polygons. I'm trying to use ArcPy to identify which polygons are crossed by the line, and then ...