Where features overlap

learn more… | top users | synonyms

28
votes
4answers
9k views

Separate polygons based on intersection using PostGIS

I have a PostGIS table of polygons where some intersect with one another. This is what I'm trying to do: For a given polygon selected by id, give me all of the polygons that intersect. Basically, ...
22
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 ...
18
votes
8answers
660 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 @...
14
votes
3answers
4k views

Identifying road intersections using PostGIS

I'm trying to identify where roads intersect each other, and to make a point at this intersection, with the number of roads that form the intersection listed. I was wondering if there was some way ...
13
votes
6answers
11k views

How to use ST_Intersection?

Here's a quick summary about what I'm trying to do: I have 3 tables in Postgres, 'a' and 'b', each have a Polygon column, and 'c' has a Point column. What I'm trying to do here is to get the ...
10
votes
2answers
16k views

How to create a new layer from overlap between two layers?

I'm new to desktop GIS, and will try to ask while lacking the proper terms from the GIS lingo: If QGIS was like Photoshop I would like to make a selection from one layer, and then match that ...
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 ...
9
votes
1answer
2k views

Find Nearest Line Segments to Point

Background From a known Point, I require to establish the nearest surrounding "visible perimeter" against a table of MultiLineStrings, as shown on the diagram. I've searched this site with a number ...
8
votes
7answers
3k views

Intersection algorithm that correctly handles the 180° meridian and poles?

Is there a well known intersection algorithm that correctly handles 180 meridian and poles? For example, let's say we have a list of latitude and longitude values that represent Antarctica. Let's ...
8
votes
4answers
2k views

Best way to find the polygons crossed by a line

I'm trying to find all the polygons crossed by a single line (a GPS track). I'm using the OGR library (from python) for computing this, but it's currently a bit 'brute-force' (and slow). For every ...
8
votes
1answer
1k 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 ...
8
votes
2answers
7k views

Calculate area of intersecting polygons in QGIS

I have two collections of shapefiles: 1 - postal codes, administrative and political areas 2 - various land use categories like parks & allotments, and points like trees I want to produce ...
8
votes
2answers
1k views

Rgeos drops associated values when intersecting polygons

I am trying to intersect two SpatialPolygonsDataFrames and get a SpatialPolygonsDataFrame as the result. Unfortunately, using the gIntersection function from rgeos (which works impressively quickly ...
7
votes
3answers
9k views

How to find if two polygons Intersect in python?

I'm looking for an algorithm, high level solution, or even a library which can help me determine if two polygons intersect, in Python. I have the vertices of the two polygons (These are single part ...
7
votes
2answers
9k views

Differences Between the Clip Tool and the 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 ...
7
votes
3answers
6k views

Extract Overlapping Polygon Data to Points

I have a polygon data set of corn yield collected by a combine. However, as the combine drove through the field, there was slight overlap between passes, leading to overlapping polygons within the ...
7
votes
1answer
373 views

What is the difference between Spatial predicates “Covers” and “Contains”?

I try to understand the Spatial predicates of the DE-9IM Intersection matrix. I don't get the difference between predicates Covers (respective CoveredBy) and Contains (resp. Within). I try to draw ...
7
votes
2answers
80 views

Tool that modifies number of vertices but not the feature itself

Do you know the reason, why some ArcGIS tools (like Clip and Intersect) modifies number of vertices, even if the feature is not modified itself? Like on the picture, I use Clip and Intersect on line ...
7
votes
1answer
206 views

Visualizing road Intersections & connections in ArcGIS

I am working with polylines (roads) in ArcGIS and I was wondering if there is a possibility to somehow show intersections as well as connecting parts of all the different road-segments. Also, would ...
7
votes
1answer
1k views

Intersection of multiple layers in PostGIS

I need to write PL/pgSQL stored procedure for calculation of intersection of multiple layers. For example, for three layers A, B, C this function should return ABC geometry: Function takes as input ...
7
votes
1answer
219 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 ...
6
votes
4answers
18k 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 features....
6
votes
1answer
11k views

Create point in intersections of two layers

I have two layers. One of them is 'Road_line' and another one is 'forest_shape'. I want to create a point layer that has points in intersection of that layers. I couldn't find any tools for it.
6
votes
2answers
8k views

How to repair topology of a shapefile?

I performed an object-based image analysis using ENVI EX, and each of the classified features were exported as a shapefile. I transferred those shapefiles into ArcMap 10, and tried to intersect them ...
6
votes
1answer
3k views

How to get the intersecting polygon of two polygons? (using JSTS intersection)

I want to intersect two polygons within an OpenLayers layer. I found the JSTS library, which should be able to intersect two polygons, and return the new created polygon of the intersection. The ...
6
votes
1answer
2k views

Line vs. Polygon Intersection Coordinates

I am working with Python, Shapely and Fiona... Is there any way where I can give in an input of a line shapefile and a polygon shapefile, and get a result of the intersection points and their ...
6
votes
2answers
1k views

Split lines at intersection points

I've got some linestrings covering a road network, and need to split them at the crossroads. Does anybody have any idea on how to do it? I'm using QGIS 2.4, with a Postgis 2.1.3.
6
votes
1answer
8k views

can I extract overlap of polygons within the same layer?

I am trying to extract the overlap of polygons that are within the same layer in 10. The layer came from a buffered street centerline and I'm trying to extract and delete the intersections from the ...
6
votes
2answers
459 views

Clipping vs Intersecting

I was curious why clipping shapefiles was just so difficult and whether it was different to intersecting shapefiles? You will see from one my questions that I gave up trying to clip a polyline with a ...
6
votes
1answer
2k views

Obtain voronoi polygons which extend till the boundary of another polygon

I have certain hubs (coloured yellow) in a district (coloured light blue). I need to find polygons indicating the closest hub to every point in the district. The voronoi polygons that I obtained ...
6
votes
1answer
663 views

Apportioning Points at a street intersection (arcgis or mapinfo)

I can't seem to find any evidence of this question, but I'm surprised by that, so pardon if this has been asked. If one is mapping crime location reports, by XY coordinates to streets, to create "...
6
votes
0answers
389 views

Performing buffering and intersection with script in PyQGIS [closed]

I wrote a script that performs the intersection of two layers: The first Layer -> layer1, represents the rivers The second Layer -> layer2, represents a set of circular dots distributed in a ...
5
votes
3answers
163 views

Finding redundancy between two layers

Let's say I have two point layers that contain locations of wells on a property. layer A has 50 points. layer B has 35 points. Some of layer B's points already exist on layer A, and some of them ...
5
votes
2answers
2k views

Is there a way to get at C's OGRLayer.Intersection() or OGRLayer.Clip() in Python?

I am working with OGR in Python and noticed that the C libraries have useful Intersection() and Clip() functions as part of the Layer class. Is there any way to get at these functions in Python? I ...
5
votes
2answers
469 views

How to extract value from a raster based on lat and lon?

I have several netcdf files that I can read using the netCDF4 library in python. The data is gridded in 4320 rows and 2160 columns. I also have a list of lat/lon (in decimal degrees) and I am trying ...
5
votes
1answer
3k views

Extracting intersection areas in R

I have two polygons. One contains fields(X,Y,Z) and the other contains soil types (A,B,C,D). I want to know what area of every field contains which type of soil. I tried the following: library(...
5
votes
3answers
5k 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 ...
5
votes
2answers
627 views

Best strategy for polygon search?

I have a fairly simple question. What is the best strategy to do the following scenario? I think this is a very common scenario: I have a several thousands of dataset with polygon/points. Each ...
5
votes
2answers
7k views

How to delete overlapping polygon features from one of two layers?

I really need your help! I have two overlapping layers of polygons, and i need to somehow erase the areas the overlaps. -This way i should end up with two layers of non overlapping polygons. Sounds ...
5
votes
3answers
586 views

Trying to combine nearby points into a polygon

We have collected millions of cell phone strength readings. I am trying to group points of the same strenght that are within a distance of each other in to a polygon. I asked on the postgis mailing ...
5
votes
1answer
378 views

Intermediate points on a small circle

I need to interpolate lat/lon points along a small circle, with a given centre and radius. I've successfully used these formulas for great circles. What is the equivalent for small circles?
5
votes
1answer
113 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 ...
5
votes
1answer
142 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 referencing....
5
votes
1answer
2k views

Split polylines at polygon boundaries in QGIS

I have a set of contour lines and a polygon set containing glaciers. Because I want the glaciers to have blue contours, I need to split the contour lines at the glacier boundaries. I can achieve this ...
5
votes
2answers
897 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....
5
votes
1answer
1k views

ArcGIS Intersect using Geometry Service [closed]

I am using the intersect service from the ArcGIS Geometry service. referring : http://help.arcgis.com/en/webapi/sil....htm#Intersect I have modified it to make it work with polylines it works fine ...
5
votes
1answer
2k views

How to find all intersections and count lines arriving at each intersection?

I'm having a hard time getting off the ground with this, and am trying to move away from ArcGIS / arcpy. I have a shapefile with a network of polylines. I want to find/count all 2-way intersections, ...
5
votes
2answers
425 views

Counting self intersections of linestring using PostGIS?

Is there a way of using PostgreSQL + PostGIS for finding the number of self intersections in a linestring? I have a linestring that goes forward but in circles, and I need to find the number of times ...
5
votes
1answer
231 views

Simulating Random Agent Movements along Roads on Map

I need to simulate agent movements on map as follows: Agent starts a known location and moves along a road. At each road intersection, the agent uniformly chooses one possible road and moves along ...
5
votes
1answer
665 views

adding multiple points to a linestring in PostGIS

Though a newbie to PostGIS, I'm having trouble solving something that I think should be farily straightforward. I have two linestring tables, both consisting of simple, 2-node line objects: one has ...