Tag Info

New answers tagged

0

I have a processing model for that: https://github.com/falu/qgis-split-lines-by-polygons. It works only with qgis 2.4


1

EDIT : The default output of line density is in kilometer per square kilometer. So the output of the tool is already what you are looking for (you don't need to divide it again by the size of the circle, this is done automatically). Note that the vector-based approach from @Anggik will be more precise, however you will not have overlapping window analysis.


1

in my point of view, you should decide your unit area (it could be county boundary or certain grid). after that, do some geoprocessing to divide roads in each unit area. Then you calculate each of roads length in each unit area and divide with the hectarage (or km2).


0

The accepted answer in fact lacks covering the second part, splitting lines (i.e., more than one line feature). Another approach would be using "Densify" with DISTANCE parameter in Editing Tools, which again requires at least a Standard licence, and then "Split Line At Vertices" tool in Data Management>Features toolset. This approach however does not keep ...


2

Using the Dissolve (Data Management) tool on your ID field for your lines, you can specify whether the resultant lines will be multi-part or single-part via the multi-part parameter. You can also dissolve or unsplit lines via the unsplit parameter.


0

The script below assumes there are 3 feature layers: Point layer - nodes or street junctions Polyline layer - street segments. Associated table has 2 fields of integer type to store sequential number of from and to node. Polyline layer called 'connections' to store results. Only essential part of the script shown below, i.e. no error handling, parameters ...


4

As a starting point, you don't need to use geodjango for this! You could simply return unique_line_id, line_start_point_lat, line_start_point_lon, line_end_point_lat, line_end_point_lon as a json object and display these using Leaflet. You will need to structure the data to match the format required - here's an answer that explains how to load a polyline. ...


2

For anybody who's interested, here's a modified version of JamesS code creating perpendicular lines using numpy and osgeo libraries only. Thanks to JamesS, his answer helped me a lot today! import osgeo from osgeo import ogr import numpy as np # ############################################################################## # User input # Input shapefile. ...


0

Came across this looking for the same answer. The best way I found is to add a \n, in the attribute text, where you want your break. Billy Joes \n Dry Cleaners LLC = Billy Joes Dry Cleaners LLC



Top 50 recent answers are included