Skip to content
Permalink
Browse files

[processing] fix v.net,centrality

  • Loading branch information
alexbruy authored and nyalldawson committed Jan 5, 2020
1 parent 432a8a5 commit b5118417751a2df5af29d98e4e5f10600b4214e5
@@ -2,19 +2,17 @@ v.net.centrality
Computes degree, centrality, betweenness, closeness and eigenvector centrality measures in the network.
Vector (v.*)
QgsProcessingParameterFeatureSource|input|Input vector line layer (network)|1|None|False
QgsProcessingParameterFeatureSource|points|Centers point layer (nodes)|0|None|False
QgsProcessingParameterNumber|threshold|Threshold for connecting centers to the network (in map unit)|QgsProcessingParameterNumber.Double|50.0|False|0.0|None
QgsProcessingParameterString|degree|Name of output degree centrality column|degree|False|True
QgsProcessingParameterString|closeness|Name of output closeness centrality column|closeness|False|True
QgsProcessingParameterString|betweenness|Name of output betweenness centrality column|None|False|True
QgsProcessingParameterString|eigenvector|Name of output eigenvector centrality column|None|False|True
QgsProcessingParameterString|betweenness|Name of output betweenness centrality column|betweenness|False|True
QgsProcessingParameterString|eigenvector|Name of output eigenvector centrality column|eigenvector|False|True
*QgsProcessingParameterNumber|iterations|Maximum number of iterations to compute eigenvector centrality|QgsProcessingParameterNumber.Integer|1000|True|1|None
*QgsProcessingParameterNumber|error|Cumulative error tolerance for eigenvector centrality|QgsProcessingParameterNumber.Double|0.1|True|0.0|None
*QgsProcessingParameterString|cats|Category values|None|False|True
*QgsProcessingParameterString|where|WHERE conditions of SQL statement without 'where' keyword|None|True|True
*QgsProcessingParameterField|arc_column|Arc forward/both direction(s) cost column (number)|None|input|0|False|True
*QgsProcessingParameterField|arc_backward_column|Arc backward direction cost column (number)|None|input|0|False|True
*QgsProcessingParameterField|node_column|Node cost column (number)|None|points|0|False|True
*QgsProcessingParameterField|node_column|Node cost column (number)|None|input|0|False|True
*QgsProcessingParameterBoolean|-a|Add points on nodes|True|True
*QgsProcessingParameterBoolean|-g|Use geodesic calculation for longitude-latitude locations|False|True
QgsProcessingParameterVectorDestination|output|Network Centrality
Binary file not shown.
@@ -1 +1 @@
PROJCS["WGS_1984_UTM_Zone_35S",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",27],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",10000000],UNIT["Meter",1]]
PROJCS["unknown",GEOGCS["GCS_wgs84",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",10000000.0],PARAMETER["Central_Meridian",15.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]
Binary file not shown.
Binary file not shown.
@@ -192,37 +192,33 @@ tests:
type: vector

- algorithm: grass7:v.net.centrality
name: v.net.centrality
name: Test (grass7:v.net.centrality)
params:
-a: true
-g: false
GRASS_MIN_AREA_PARAMETER: 0.0001
GRASS_OUTPUT_TYPE_PARAMETER: 0
GRASS_SNAP_TOLERANCE_PARAMETER: -1.0
GRASS_VECTOR_DSCO: ''
GRASS_VECTOR_EXPORT_NOCAT: true
GRASS_VECTOR_LCO: ''
betweenness: ''
betweenness: btw
cats: ''
closeness: closeness
degree: degree
eigenvector: ''
closeness: cls
degree: dgr
eigenvector: eig
error: 0.1
input:
name: custom/grass7/network.shp
name: roads.gml|layername=roads
type: vector
iterations: 1000
points:
name: custom/grass7/network_points.shp
type: vector
threshold: 50.0
where: ''
results:
output:
name: expected/grass7/v_net_centrality.shp
type: vector
compare:
geometry:
precision: 3
ignore_crs_check: true

- algorithm: grass7:v.net.distance
name: v.net.distance

0 comments on commit b511841

Please sign in to comment.
You can’t perform that action at this time.