[QGIS-Developer] v.net.centrality: Sorry, <points> is not a valid parameter

magerlin MAP at ramboll.dk
Thu Oct 31 01:57:56 PDT 2019


Yes you need to chose an output type yourself, but nomatter what I choose I
get the same error message.

I am running on windows and no matter what Grass procedure I run I get this
warning: 
WARNING: Concurrent mapset locking is not supported on Windows.
Do not know what it means or whether it is relevant in this case?


Error message from v.centrality.net:

QGIS version: 3.10.0-A Coruña
QGIS code revision: 6c816b4204
Qt version: 5.11.2
GDAL version: 2.4.1
GEOS version: 3.8.0-CAPI-1.13.1 
PROJ version: Rel. 5.2.0, September 15th, 2018
Processing algorithm…
Algorithm 'v.net.centrality' starting…
Input parameters:
{ '-a' : True, '-g' : False, 'GRASS_MIN_AREA_PARAMETER' : 0.0001,
'GRASS_OUTPUT_TYPE_PARAMETER' : 0, 'GRASS_REGION_PARAMETER' : None,
'GRASS_SNAP_TOLERANCE_PARAMETER' : -1, 'GRASS_VECTOR_DSCO' : '',
'GRASS_VECTOR_EXPORT_NOCAT' : False, 'GRASS_VECTOR_LCO' : '',
'arc_backward_column' : None, 'arc_column' : None, 'betweenness' : '',
'cats' : '', 'closeness' : 'closeness', 'degree' : 'degree', 'eigenvector' :
'', 'error' : 0.1, 'input' : 'C:\\@Temp\\net.shp|layername=net',
'iterations' : 1000, 'node_column' : None, 'output' :
'C:/@Temp/central.shp', 'points' : 'C:\\@Temp\\Poi.shp|layername=Poi',
'threshold' : 50, 'where' : '' }

Attempting to use v.external for direct layer read
Attempting to use v.external for direct layer read
g.proj -c proj4="+proj=longlat +datum=WGS84 +no_defs"
v.external input="C:\@Temp\net.shp" layer="net"
output="vector_5dba985f06fbb16" --overwrite -o
v.external input="C:\@Temp\Poi.shp" layer="Poi"
output="vector_5dba985f09e9b17" --overwrite -o
g.region n=9.327649580604518 s=9.271627488192191 e=38.7617967871377
w=38.74138436843244
v.net -s input=vector_5dba985f06fbb16 points=vector_5dba985f09e9b17
output=net5dba985f0b22318 operation=connect threshold=50.0
v.db.connect -o map=net5dba985f0b22318 table=vector_5dba985f09e9b17 layer=2
v.net.centrality input=net5dba985f0b22318 degree="degree"
closeness="closeness" iterations=1000 error=0.1 -a
output=output94c0c01b65de4586878116ac9fa984ae --overwrite
v.out.ogr type="point" input="output94c0c01b65de4586878116ac9fa984ae"
output="C:/@Temp/central.shp" format="ESRI_Shapefile" layer=1 --overwrite
Cleaning up temporary files...
Starting GRASS GIS...
WARNING: Concurrent mapset locking is not supported on Windows
Executing
<C:\Users\map\AppData\Local\Temp\processing_71c0848ce9e34603963223277d5e5a40\grassdata\grass_batch_job.cmd>
...
C:\Users\map\Documents>chcp 1252 1>NUL
C:\Users\map\Documents>g.proj -c proj4="+proj=longlat +datum=WGS84 +no_defs"
Default region was updated to the new projection, but if you have multiple
mapsets `g.region -d` should be run in each to update the region from the
default
Projection information updated
C:\Users\map\Documents>v.external input="C:\@Temp\net.shp" layer="net"
output="vector_5dba985f06fbb16" --overwrite -o
Over-riding projection check
Building topology for vector map <vector_5dba985f06fbb16 at PERMANENT>...
Using external data format 'ESRI Shapefile' (feature type 'linestring')
Registering primitives...
One primitive registered
43 vertices registered
v.external complete. Link to vector map <vector_5dba985f06fbb16> created.
C:\Users\map\Documents>v.external input="C:\@Temp\Poi.shp" layer="Poi"
output="vector_5dba985f09e9b17" --overwrite -o
Over-riding projection check
Building topology for vector map <vector_5dba985f09e9b17 at PERMANENT>...
Using external data format 'ESRI Shapefile' (feature type 'point')
Registering primitives...
334 primitives registered
334 vertices registered
v.external complete. Link to vector map <vector_5dba985f09e9b17> created.
C:\Users\map\Documents>g.region n=9.327649580604518 s=9.271627488192191
e=38.7617967871377 w=38.74138436843244
C:\Users\map\Documents>v.net -s input=vector_5dba985f06fbb16
points=vector_5dba985f09e9b17 output=net5dba985f0b22318 operation=connect
threshold=50.0
Copying features...
100
Building topology for vector map <net5dba985f0b22318 at PERMANENT>...
Registering primitives...
Copying attributes...
WARNING: Unable to create index
WARNING: Unable to copy table <net> for layer 1 from
<vector_5dba985f06fbb16 at PERMANENT> to <net5dba985f0b22318>
WARNING: Failed to copy attribute table to output map
Building topology for vector map <net5dba985f0b22318 at PERMANENT>...
Registering primitives...
v.net complete. 9 lines (network arcs) written to output.
C:\Users\map\Documents>v.db.connect -o map=net5dba985f0b22318
table=vector_5dba985f09e9b17 layer=2
WARNING: Table <vector_5dba985f09e9b17> does not exist in database
<$GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db>
The table <vector_5dba985f09e9b17> is now part of vector map
<net5dba985f0b22318> and may be deleted or overwritten by GRASS modules
WARNING: Cannot create index
Select privileges were granted on the table
C:\Users\map\Documents>v.net.centrality input=net5dba985f0b22318
degree="degree" closeness="closeness" iterations=1000 error=0.1 -a
output=output94c0c01b65de4586878116ac9fa984ae --overwrite
Building graph...
Registering arcs...
1..3..5..7..9..11..13..15..17..19..21..23..25..27..29..31..33..35..37..39..41..43..45..47..49..51..53..55..57..59..61..63..65..67..69..71..73..75..77..79..81..83..85..87..89..91..93..95..97..99..100
Flattening the graph...
Graph was built
Computing degree centrality measure
Computing betweenness and/or closeness centrality measure
0..9..18..27..36..45..54..63..72..81..90..Writing data into the table...
1..3..5..7..9..11..13..15..17..19..21..23..25..27..29..31..33..35..37..39..41..43..45..47..49..51..53..55..57..59..61..63..65..67..69..71..73..75..77..79..81..83..85..87..89..91..93..95..97..99..100
Building topology for vector map
<output94c0c01b65de4586878116ac9fa984ae at PERMANENT>...
Registering primitives...
C:\Users\map\Documents>v.out.ogr type="point"
input="output94c0c01b65de4586878116ac9fa984ae" output="C:/@Temp/central.shp"
format="ESRI_Shapefile" layer=1 --overwrite
Exporting 335 features...
5..11..17..23..29..35..41..47..53..59..65..71..77..83..89..95..100
v.out.ogr complete. 335 features (Point type) written to
<output94c0c01b65de4586878116ac9fa984ae> (ESRI_Shapefile format).
C:\Users\map\Documents>exit
Execution of
<C:\Users\map\AppData\Local\Temp\processing_71c0848ce9e34603963223277d5e5a40\grassdata\grass_batch_job.cmd>
finished.
Cleaning up default sqlite database ...
Cleaning up temporary files...
Execution completed in 12.81 seconds
Results:
{'output': <QgsProcessingOutputLayerDefinition {'sink':C:/@Temp/central.shp,
'createOptions': {'fileEncoding': 'UTF-8'}}>}

Loading resulting layers
Algorithm 'v.net.centrality' finished



-----
Regards Morten

Currently using Qgis 2.18.23 (OSGeo4) and Qgis 3.10.0 in parallel
Windows 7, 64bit
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html


More information about the QGIS-Developer mailing list