New answers tagged

1

pgRouting functions return an ordered list of nodes that describe the route. When you join the result with your network table to retrieve the geometry of the route, the linestring geometries are not necessarily in the correct direction. To bring them in the right direction, you need to compare the route's node ID's with the source and target value of the ...


2

It looks like the orange linestring crosses itself, which is related to issues #600 and #1068 in the shapely github repository. The problem is that shapely's split function splits complex (i.e. self-intersecting) linestrings at their self-intersection points in addition to the points where they intersect the splitter geometry. Here is a solution that I ...


0

My take on smoothing - Smoothing Iterative Averaging (SIA) + ST_SimplifyPreserveTopology using PostGIS: Keep in mind for good results: ss < si, sl = 0 if ss > 1 sl is my addition to algorithm to not change longer segments as I use it for smoothing out GPS accuracy issues in line tracks. After SIA I also use St_SimplifyPreserveTopology to remove tiny ...


Top 50 recent answers are included