Where features overlap

learn more… | top users | synonyms

1
vote
1answer
22 views

Updating table setting a case with ST_Intersection

I'm trying to update a geometry column using this command: UPDATE mad SET geom_p=CASE WHEN ST_CoveredBy(mad.geom,b.geom) THEN mad.geom ELSE ST_Multi(ST_Intersection(mad.geom,b.geom)) END AS ...
3
votes
2answers
65 views

GDAL/OGR ogr.Layer.Intersection fails when producing mixed geometry results

I am trying to intersect layers using the ogr.Layer.Intersection method, in Python. This works fine for pairs of polygons, but I have found intersecting two linestring layers containing matching ...
1
vote
2answers
47 views

Calculate area parts of polygon intersections

I have a problem of calculating area sizes of intersected polygons in postgis. I would represent the problem in an example (please see the picture). I have a gridsquare table with some attributes like ...
21
votes
6answers
5k views

PostGIS: Select features that do NOT intersect

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 ...
1
vote
1answer
23 views

Intersection with 2 KML files - newbie

I'm new to all this gis thing and I have this project for university where I'm trying to find the countries within a bounding box. So what I'm doing is, I have a set of coordinates that define a ...
-2
votes
1answer
32 views

Create a point at intersection

I want to create a point at the intersection of two lines as it appears on the attached image. The red line is the stream network, and the green line is the 600m contour. I use ArcGis 10.2.2
1
vote
2answers
43 views

Arcpy fail to loop between files in different directories

I want to perform a loop of intersections between different files in different directories. Here is my code: Intersects = ['Name1','Name2','Name3','Name4','Name5'] #Names of my files ...
17
votes
8answers
454 views

How to fix thousands of small overlapping polygons?

I'm using ArcMap 10.3. I have a layer of different land use types. I found out that many polygons overlap each other and as a result the same polygon have two different land use types. Thanks to ...
2
votes
1answer
43 views

QGIS: intersect on a single shape file

I am using QGIS version 2.14.1 (Essen). I'm trying to do some spatial analysis, including an intersect between the same shape file. Basically I have a shape file with the geometries of all the events ...
0
votes
0answers
23 views

How to use the “geometry generator” to intersect geometries with an entire layer in QGIS?

In the "geometry generator" style in QGIS, it's possible to define an intersection for a specific geometry of an other layer like this: intersection($geometry, geometry(get_feature( ...
2
votes
1answer
41 views

Get intersection of circles 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
0answers
14 views

Using Python to output table of intersecting polygons in ArcGIS for Desktop? [closed]

I have two polygon layers: routes in a transit system with a quarter-mile buffer draw for each route and the number of daily trips on that route, and Census data at the Block Group (BG) level. ...
1
vote
1answer
287 views

Using M 'Measure' value in SQL Server 2008

MS Sql Server 2008 geometry type supports adding Z and M values to geometry objects, including linestrings. However, I cannot find any way to make use of these values, since methods such as ...
3
votes
1answer
1k views

PostGIS intersection function

I have a problem with intersection function. I built my query following http://manual.linfiniti.com/en/postgis/geometry.html, 5.7 section. I made my clip object, a red linestring frame: But after ...
0
votes
4answers
78 views

Count Points on Points using arcpy

I have a point feature class which contains features scattered around the city, with some of the points intersecting other points. These intersecting features are correctly different features (they ...
1
vote
1answer
28 views

How to check point intersection with bbox made from two points?

I have two points which represents lower left and upper right point of BBOX. I have one point which SHOULD be somewhere inside and I want to test it. I have all of them as 'geometry(POINT, 4326)' ...
5
votes
4answers
15k views

QGis: Merge intersecting polygons into one which are part of the same feature

I'm not a GIS professional so I hope I use the correct wording, at least I hope you understand my question. Let's say there are 5 polygons in the feature A. In the shape file there are more ...
0
votes
1answer
24 views

Tabulate intersect in R

I would like to get the areas related to the polygons resulting from the intersection between two SpatialPolygonsDataFrames: 'A' and 'B'. SpatialPolygonsDataFrame 'B' has 3 different 'classes', which ...
0
votes
0answers
20 views

Can turf.js be used to find and repair bad geojson geometry?

Methods: I'm currently using turf.js for geoprocessing as part of a broader mapping project; my workflow looks like this: Pull geojson of census tracts for an entire county Pull geojson tiles of ...
3
votes
3answers
69 views

How to calculate the difference in area between two overlapping polygons?

I have two polygons that are overlapping each other. I need to calculate the area that's created in between these overlapping polygons. I used the "intersect" tool but it's not giving me the exact ...
1
vote
1answer
36 views

How to find the area with most intersection for buffer regions?

Find the area with the most intersection This question relates to previous question asked - How to find the intersection areas of overlapping buffer zones in single shapefile?. I tried to ...
2
votes
0answers
41 views

Identifying lines of one feature class that touch another feature class with their endpoints in ArcMap? [closed]

I want to find out and select the features of one feature class, which both endpoints touch another feature class. In the picture above it would be the left pink line which touches feature of ...
2
votes
1answer
95 views

How to find the intersection areas of overlapping buffer zones in single shapefile?

Find the intersections of the buffer zones I found an example where they tried finding the intersection of two different shapefiles -Intersect Shapefiles using Shapely. I've tried to adapt my code to ...
9
votes
4answers
5k views

Distinguishing lines that intersect from lines that touch?

How do I distinguish between these cases in ArcGIS 10? Case 1: Both endpoints of a line touch another line Case 2: Both endpoints dangle over the lines it intersects I am looking at the Trim Line ...
5
votes
1answer
102 views

How to get smallest line segments from intersection + difference of multiple overlapping lines?

Inspired by this question, and this excellent answer. I have multiple overlapping lines and want to extract the complete intersection of them. So from this sample data SELECT id, geom INTO stackex ...
1
vote
0answers
113 views

QGIS 2.8.2 - Using spatial expressions in labelling

I'm creating some hard copy map output from QGIS. I want to use an expression to suppress labels for some features on a layer when another feature from another layer intersects with those features. ...
1
vote
0answers
41 views

Select Layer By Location (Management) gives different result in ArcPy and ArcMap?

I have two line Shape files. When I use the Select layer by location tool to select two intersecting lines, it works fine and selects only lines which are actually intersecting. But when I use this ...
0
votes
0answers
14 views

Select simple intersection

Using PostGIS, I want to select avenues that intersect trajectories (linestrings, which I want to add a ST_Buffer). I'm thinking that maybe some syntax is incorrect... I tried this, but do not work: ...
2
votes
0answers
41 views

QGIS Atlas zoom to intersection between two different layers

I have two polygon layers, one is about different land owners boundaries and is used for atlas generation, and the other is about forests inside each property. In atlas generation sometimes i want to ...
2
votes
3answers
2k views

How to determine 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 ...
0
votes
0answers
39 views

Intersect two same extent shapefiles, but got error 000117

I have used intersect(Analysis Tool) to intersect two polygon layers. But I got error 000117 after ran intersect tool. Same error message happened when I use clip (Analysis Tool). The answer and two ...
0
votes
1answer
38 views

Unexpected results when using ST_Intersection for polygon features

I've to create a spatial intersection of two tables (poly_a and poly_b) containing polygon features. Is there any way to remove unexpected linestring results? CREATE VIEW poly_intersection AS SELECT ...
2
votes
1answer
27 views

Split No Longer Working When Creating Enclosed Polygons

I have been using ArcGIS Pro to create a large polygon feature class. Some of the polygons have enclosed areas I need to remove. I have been using the Split tool under Modify Features and it has ...
1
vote
0answers
19 views

How do I find whether a line is intersecting a circles with small radius on earth?

Algorithm mentioned in how-to-pick-up-line-segments-which-is-inside-or-intersect-a-circle seems to be working fine for circle with radius > 50 miles. But when coming to circles with radius < 50 ...
1
vote
1answer
20 views

Counting points on a line or polygon using join: number of points are calculated incorrectly [closed]

I am attempting to count the number of stream crossings within approx. 100m segments of a trail. I used this article to get quite close with join: ...
1
vote
2answers
73 views

How to find the intersection of three polygon layers in ArcGIS?

I have three data sets of San Francisco, TerraSAR-X, ALOS-PALSAR, Radarsat2. I have extracted KML files using Envi Sarscape. In order to find the intersection of these areas, I have converted ...
0
votes
1answer
52 views

Read SQL Server Geometry datatype in R

I have two datasets that come from ArcGis, stored in SQL Server. I have a column called - Shape which is a geometry data type and the value looks like this: ...
2
votes
1answer
36 views

edit vertices of intersections from multiple lines

I would like to edit the vertex where two lines intersect, but doing so makes me manually move each vertex of each line. I tried to merge the lines but it did not work. Is there an easier way to ...
2
votes
2answers
75 views

SQL Server - Select all polygons nested within a larger polygon

This is a seemingly simple SQL Server geometry question that I thought would have an out-of-the box solution, but I'm not having any luck finding one. My intent is to select all the records within ...
1
vote
1answer
142 views

How to use Intersect tool in ArcObjects

I'm trying to use the Intersect tool in ArcObjects SDK Java with two feature classes. Here is my code: public void intersectTwoFeatureClasses(Object in1, Object in2, Object out) throws ...
2
votes
1answer
29 views

Preprocess OSM streets to see if query points fall “on” them

I am interested in the following query: Given a set of query points ($\leq 10$), how many of them have distance at most $s$ meters to the closest point on the closest street. What's the most ...
3
votes
1answer
113 views

Strange behavior of of ST_Intersects in PostGIS

I'm quite new to GIS and PostGIS and, probably, this question has been already answered multiple times, but unfortunately I was not able to find an answer. I have few polygons and I want to find ...
1
vote
1answer
52 views

ST_Intersection between MultiPolygon tables leads to gaps, missing intersections

I am trying to intersect two MultiPolygon tables, which are in the same UTM projection, and calculate the area of their intersections. I am getting some surprising results when I examine the ...
1
vote
0answers
24 views

PostGIS Street Intersection Autocomplete with full text search

What I'm attempting to do is create a custom autocomplete for addresses, road intersections, POI's, etc. For now we are going to using Mapbox GL (we'll be creating a custom map at a later phase), ...
3
votes
2answers
3k views

OGR Layer Intersection

I am using what I would describe as the most primitive method of doing intersection with OGR. The short script below describes how I do it. Is there a best way of doing this? from osgeo import ...
2
votes
2answers
226 views

Using st_intersects caused mismatch when a marking (tagging) shape marked a polygon overlapping only on the edge

I have accidentally marked a landshape as being tagged "CU GO-M" because it seems to share an edge with a tagshape for "CU GO-M" but nothing else. I used the st_intersects method to join these shapes ...
7
votes
1answer
209 views

How to connect centroids of lines sharing the same intersection in QGIS?

I'm looking for a big help to accomplish the following task: I have this street network of the center of Turin (IT), composed by lines representing streets, and black points representing ...
1
vote
2answers
620 views

How to intersect FeatureCollections in turf.js efficiently?

I've been playing around with turf.js and I'd like to use turf.intersect to intersect two datasets. My raw data are two polygon shape files so I converted them to geojson. I then tried to use ...
3
votes
0answers
44 views

QgsSpatialIndex partial or complete overlap

I'm working on adding some functonality to a QGIS plugin. It currently uses a QgsSpatialIndex to efficiently compute whether the features of a vector layer intersect (potentially millions) of ...
4
votes
1answer
90 views

Find all intersections of a LineString and a Polygon and the order in which it intersects it

I would like to find out all intersections of a LineString (River) through Polygons (Municipalities). I would like to list the order of municipalities which the river crosses, using linear ...