Tag Info

New answers tagged

2

areas = [] for line_feature in line_layer.getFeatures(): cands = area_layer.getFeatures(QgsFeatureRequest().setFilterRect(line_feature.geometry().boundingBox())) for area_feature in cands: if line_feature.geometry().intersects(area_feature.geometry()): areas.append(area_feature.id()) area_layer.select(areas)


2

Perhaps you can do it with some of the CAD plugins of QGIS. For sure you can do it with Kosmo GIS http://opengis.es/ Select to linestrings which should be extended and use the Expand lines until crossing tool from the CAD toolbox. CAD Tools extension must be activated first from the Extension manager. Click on the map. For the second case use another ...


1

CREATE TABLE test_points as SELECT ST_Intersection(a.geom, b.geom), Count(Distinct a.gid) FROM roads as a, roads as b WHERE ST_Touches(a.geom, b.geom) AND a.gid < b.gid /* !!! Changed "!=" for "<" */ GROUP BY ST_Intersection(a.geom, b.geom) ; If line A (id 1) ...



Top 50 recent answers are included