Where features overlap

learn more… | top users | synonyms

22
votes
4answers
7k 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, ...
18
votes
5answers
4k 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 ...
14
votes
3answers
3k 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
9k 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 ...
9
votes
2answers
10k 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 ...
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
4answers
4k views

Lines that intersect vs. Lines that touch - how to distinguish?

How do I distinguish between these cases in ArcGIS 10? I am looking at the Trim Line function but that's not what I want (destructive). Case 1: Both endpoints of a line touch another line Case 2: ...
7
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 ...
7
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 ...
7
votes
3answers
4k 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
2answers
5k 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 ...
7
votes
1answer
704 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 ...
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 ...
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
116 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 ...
6
votes
2answers
601 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
5k 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
1answer
1k 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 ...
5
votes
1answer
6k 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.
5
votes
3answers
8k 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 ...
5
votes
2answers
6k 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 ...
5
votes
2answers
533 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
3answers
503 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
321 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
57 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 ...
5
votes
2answers
717 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 ...
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
1answer
1k 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
1answer
169 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
526 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 ...
5
votes
2answers
2k views

Need help calculating forest cover within a buffer when it overlaps with other buffers

I'm new to ArcGIS and having real trouble getting this done… Hopefully someone can help. Thanks in advance! I have a layer showing forest cover in a landscape. I'm trying to create a 5km buffer ...
5
votes
1answer
397 views

Intersect between Surface and Ray

I am interested in finding the intersection of a Ray and a Surface in ArcObjects. I already know of two solutions. First solution is to use the Locate method of ISurface: Dim intersectionPoint As ...
5
votes
1answer
1k views

How do I find the intersections of 2 circles on earths surface?

I have the circles' center in lat & long, as well as the radius in meters. How do I find the circles intersections? Edit: EXAMPLE: Circle 1: Center on Earth's surface (43.564627,-116.220524) ...
5
votes
1answer
131 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 ...
5
votes
1answer
93 views

Intersection of a vector linestring and underlying DEM

Following is an screen-shot where ASTER DEM raster layer has been overlaid by a road linestring vector layer. I want to extract those DEM pixels which are lying exactly beneath the linestrings. I want ...
5
votes
1answer
593 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 ...
4
votes
3answers
5k 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 ...
4
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 ...
4
votes
2answers
131 views

Creating space at intersection of two links

I have a shapefile consisting of two links which are crossing over each other. I want to create an empty space at the point of intersection of the two links. As of now, I have been manually doing ...
4
votes
2answers
5k 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 ...
4
votes
3answers
245 views

Is the Intersection Operation Commutative?

In map overlay, is intersection of map layers a commutative operation ie layer_A intersection layer_B = layer_B intersection layer_A? If layer A is a square and layer B is a triangle. In this case, (A ...
4
votes
2answers
772 views

How to select features that intersect but don't touch (using ArcObjects)?

So how do I do that? ArcMap's Select By Location selects also all features that touch, but I only need the ones that actually intersect the area. I currently use ...
4
votes
3answers
79 views

How to find intersections of lines less than 45° in FME

I'm trying to identify intersections of electrical transmission lines that are less than 45° in FME. While, in theory, this doesn't seem like such a daunting task, in practice, it's proving quite ...
4
votes
2answers
384 views

No intersection found between polygons I know intersect!

I'm using two geographies: one is made up of small areas (about 2200), the other large areas (about 70). Both cover all of Australia, and the small areas are not necessarily nested inside large areas. ...
4
votes
1answer
2k views

PostGIS geometry intersection test results different for Point and Linestring

Can anyone please tell me what I'm doing wrong, and how do I avoid the problem? I'll attempt to clarify what I'm doing as things go along. The geom column is a multipolygon column, all values are ...
4
votes
1answer
115 views

How to check if line goes through point with PostGIS

I have a line representing a bus line and a stop representing a bus stop The following sample data represents the problem LINESTRING(-70.65357957000000511 -33.42323483999999922, ...
4
votes
1answer
1k views

How to use the Intersects function in the Field Calculator of QGIS?

I would like to have an example on how to use the Intersects function in the Field Calculator of QGIS. Basically, I want to know which feature from a polylines layer intersects a polygons layer and ...
4
votes
2answers
2k views

How to Intersect between a vector (administrative areas) and a raster layer (slope)?

What I've got: 1: A vector-layer with administrative areas of my country 2: A raster-layer with the slope of the terrain of the same country (it is derived from SRTM elevation data with QGIS) What ...
4
votes
1answer
664 views

Spatial Join in PostGIS according to Line Attribute

I am in the process of building a data warehouse in PostGIS, that will store the length of the road network of a country (Lines) per Administrative Area (i.e. Province or State, referred to as AA ...
4
votes
1answer
47 views

Slow Planning for Postgis ST_Intersects

I am trying to run the following query: SELECT * FROM fences where ST_Intersects(geom, ST_GeomFromText('POINT(-73.990452 40.994184)', 4326)) When I run Explain Analyze I get the following: "Index ...