Tag Info

New answers tagged

0

I don't know for sure, but I think something like this might solve your problem (this wont work on multilines, but you could stdump them or squish them) : SELECT ID, COUNT(*) AS theCOunt FROM ( SELECT id, ST_Intersection(A.geom, B.geom) AS geom FROM ( SELECT xx.id, xx.id2, st_makeline(xx.l_start, ...


0

Adapting my answer to this question: First make ~/.qgis2/python/mytools.py : from qgis.core import (QgsFeature, QgsGeometry, QgsVectorLayer, QgsMapLayerRegistry, QgsField) from PyQt4.QtCore import QVariant from qgis.utils import iface import math def redistribute_geometry_vertices(geom,dist): ...


1

Since the version 2.x, PyQGIS has an has an interpolate function similar to that of Shapely : for distance in xrange(0,lenght_line,20): point = line.interpolate(distance) look at How to create points in a specified distance along the line in QGIS?


1

You can use the Dissolve tool from QGIS: Vector > Geoprocessing Tools > Dissolve


0

Given the nature of the lines you're trying to create versus the geometry you have, I think it will probably be fastest/simpler to just create new features as in the tutorial you have linked to. Any method that actually converts the polygons to lines will involve splitting the lines at certain points and/or deleting a lot of extra nodes/lines/etc. There is ...


0

Use the polygon to lines tool and then remove those parts of the line layer which you don't want to keep.


1

You could use the Distance to nearest hub algorithm from the Processing plugin which you could add your points and your lines layer instead of going through a query. From a couple of example layers that I have, you can get something like this: Then when you open up the Attributes Table for the output layer, you will be given the HubName and HubDist in ...


0

I seems very similar to post "postgis, extrapolate a line". If I avoid repetition of cited post, I think you just need to extrapolate beyond your extreme points. In a query you get something like this should work: SELECT ST_MakeLine(ST_TRANSLATE(a, sin(az1) * len, cos(az1) * len),ST_TRANSLATE(b,sin(az2) * len, cos(az2) * len)) FROM ( SELECT a, b, ...



Top 50 recent answers are included