Error in [step 2] hierarchical clustering and connecting GPON demand to route line

6 posts Page 1 of 1
Mehar Zulfiqar
Posts: 4
Joined: Sun Nov 19, 2017 12:23 pm


Hi everyone,
I have successfully completed first step.The error i am getting in second step is this:
Error executing algorithm Re project gpon network 'nonetype' object has no attribute 'crs'.Please help me to how to solve this.
Thanks in advance.
gni_support
Posts: 75
Joined: Wed Sep 20, 2017 1:05 pm


Hello,

Which operating system are you using?
Which version of QGIS, GRASS and QuickOSM are you using?

Could you provide full logs from algorithm window?
Mehar Zulfiqar
Posts: 4
Joined: Sun Nov 19, 2017 12:23 pm


QGIS ver 2.18.13
GRASS ver 7.2.1
Quick OSM ver 1.4.6

Full log is here:

Algorithm [step 2] hierarchical clustering and connecting GPON demand to route line starting...
Prepare algorithm: GNIPLANNERFTTHCHECKWORKCONTEXT_1
Running Check work context [1/9]
Parameters:
Converting outputs
OK. Execution took 0.000 ms (0 outputs).
Prepare algorithm: QGISSELECTBYEXPRESSION_1
Running Select by expression [2/9]
Parameters: LAYERNAME =dbname='C:/Users/Mehar/Desktop/FYP/GNI_FREE_(EN)_1_1_1/gni.db' table="pricing_line" (geom) sql=, EXPRESSION =highway in('primary','residential','track','secondary', 'tertiary','unclassified'), METHOD =0
Converting outputs
OK. Execution took 0.059 ms (1 outputs).
Prepare algorithm: GRASS7V.NET.CONNECT_1
Running v.net.connect - Connects points to nearest arcs in a network [3/9]
Parameters: input =dbname='C:/Users/Mehar/Desktop/FYP/GNI_FREE_(EN)_1_1_1/gni.db' table="pricing_line" (geom) sql=, points =dbname='C:/Users/Mehar/Desktop/FYP/GNI_FREE_(EN)_1_1_1/gni.db' table="pricing_point" (geom) sql=, threshold =100, -s =False, GRASS_REGION_PARAMETER =566729.663204,566981.78287,244702.501309,244859.255639, GRASS_SNAP_TOLERANCE_PARAMETER =-1, GRASS_MIN_AREA_PARAMETER =0.0001, GRASS_OUTPUT_TYPE_PARAMETER =0
g.proj -c proj4="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"
v.in.ogr min_area=0.0001 snap=-1 input="C:\Users\Mehar\AppData\Local\Temp\processing5423244814f8462c87f6faa9e7323dad" layer=1511518622.0810 output=tmp1511518622111 --overwrite -o
v.in.ogr min_area=0.0001 snap=-1 input="C:\Users\Mehar\AppData\Local\Temp\processing5423244814f8462c87f6faa9e7323dad" layer=1511518622.1112 output=tmp15115186221313 --overwrite -o
g.region n=244859.255639 s=244702.501309 e=566981.78287 w=566729.663204 res=100
v.net operation=connect input="tmp1511518622111" points="tmp15115186221313" threshold="100" output=output8331a04c59524256b2fa49eb5980489b --overwrite
v.out.ogr -c type=line layer=1 -e input=output8331a04c59524256b2fa49eb5980489b output="C:\Users\Mehar\AppData\Local\Temp\processing5423244814f8462c87f6faa9e7323dad\8dc59eae6cea44ce96fdc1ce253d0def" format=ESRI_Shapefile output_layer=output

C:\Users\Mehar\Desktop\FYP\GNI_FREE_(EN)_1_1_1>set HOME=C:\Users\Mehar

C:\Users\Mehar\Desktop\FYP\GNI_FREE_(EN)_1_1_1>set GISRC=C:\Users\Mehar\.qgis2\\processing\processing.gisrc7

C:\Users\Mehar\Desktop\FYP\GNI_FREE_(EN)_1_1_1>set WINGISBASE=C:\PROGRA~1\QGIS2~1.18\apps\grass\grass-7.2.1

C:\Users\Mehar\Desktop\FYP\GNI_FREE_(EN)_1_1_1>set GISBASE=C:\PROGRA~1\QGIS2~1.18\apps\grass\grass-7.2.1

C:\Users\Mehar\Desktop\FYP\GNI_FREE_(EN)_1_1_1>set GRASS_PROJSHARE=C:\PROGRA~1\QGIS2~1.18\apps\grass\grass-7.2.1\share\proj

C:\Users\Mehar\Desktop\FYP\GNI_FREE_(EN)_1_1_1>set GRASS_MESSAGE_FORMAT=plain

C:\Users\Mehar\Desktop\FYP\GNI_FREE_(EN)_1_1_1>if "" == "" set PATH=C:\PROGRA~1\QGIS2~1.18\apps\grass\grass-7.2.1\bin;C:\PROGRA~1\QGIS2~1.18\apps\grass\grass-7.2.1\lib;C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\Shapely-1.2.18-py2.7-win-amd64.egg\shapely\DLLs;C:\PROGRA~1\QGIS2~1.18\apps\Python27\DLLs;C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\numpy\core;C:\PROGRA~1\QGIS2~1.18\apps\qgis\bin;C:\PROGRA~1\QGIS2~1.18\apps\Python27\Scripts;C:\PROGRA~1\QGIS2~1.18\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBem

C:\Users\Mehar\Desktop\FYP\GNI_FREE_(EN)_1_1_1>if not "" == "" set PATH=C:\PROGRA~1\QGIS2~1.18\apps\grass\grass-7.2.1\bin;C:\PROGRA~1\QGIS2~1.18\apps\grass\grass-7.2.1\lib;;C:\PROGRA~1\QGIS2~1.18\apps\grass\grass-7.2.1\bin;C:\PROGRA~1\QGIS2~1.18\apps\grass\grass-7.2.1\lib;C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\Shapely-1.2.18-py2.7-win-amd64.egg\shapely\DLLs;C:\PROGRA~1\QGIS2~1.18\apps\Python27\DLLs;C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\site-packages\numpy\core;C:\PROGRA~1\QGIS2~1.18\apps\qgis\bin;C:\PROGRA~1\QGIS2~1.18\apps\Python27\Scripts;C:\PROGRA~1\QGIS2~1.18\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBem

C:\Users\Mehar\Desktop\FYP\GNI_FREE_(EN)_1_1_1>set GRASS_VERSION=7.2.1

C:\Users\Mehar\Desktop\FYP\GNI_FREE_(EN)_1_1_1>if not "" == "" goto langset

C:\Users\Mehar\Desktop\FYP\GNI_FREE_(EN)_1_1_1>FOR /F "usebackq delims==" %i IN (`"C:\PROGRA~1\QGIS2~1.18\apps\grass\grass-7.2.1\etc\winlocale"`) DO @set LANG=%i

C:\Users\Mehar\Desktop\FYP\GNI_FREE_(EN)_1_1_1>set PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY

C:\Users\Mehar\Desktop\FYP\GNI_FREE_(EN)_1_1_1>set PYTHONPATH=;C:\PROGRA~1\QGIS2~1.18\apps\grass\grass-7.2.1\etc\python;C:\PROGRA~1\QGIS2~1.18\apps\grass\grass-7.2.1\etc\wxpython\n

C:\Users\Mehar\Desktop\FYP\GNI_FREE_(EN)_1_1_1>g.gisenv.exe set="MAPSET=PERMANENT"

C:\Users\Mehar\Desktop\FYP\GNI_FREE_(EN)_1_1_1>g.gisenv.exe set="LOCATION=temp_location"

C:\Users\Mehar\Desktop\FYP\GNI_FREE_(EN)_1_1_1>g.gisenv.exe set="LOCATION_NAME=temp_location"

C:\Users\Mehar\Desktop\FYP\GNI_FREE_(EN)_1_1_1>g.gisenv.exe set="GISDBASE=C:\Users\Mehar\AppData\Local\Temp\processing5423244814f8462c87f6faa9e7323dad\grassdata"

C:\Users\Mehar\Desktop\FYP\GNI_FREE_(EN)_1_1_1>g.gisenv.exe set="GRASS_GUI=text"

C:\Users\Mehar\Desktop\FYP\GNI_FREE_(EN)_1_1_1>g.proj -c proj4="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +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\Mehar\Desktop\FYP\GNI_FREE_(EN)_1_1_1>v.in.ogr min_area=0.0001 snap=-1 input="C:\Users\Mehar\AppData\Local\Temp\processing5423244814f8462c87f6faa9e7323dad" layer=1511518622.0810 output=tmp1511518622111 --overwrite -o
Over-riding projection check
Check if OGR layer contains polygons...
100
Importing 0 features (OGR layer )...
100
-----------------------------------------------------
Building topology for vector map ...
Registering primitives...

0 primitives registered
0 vertices registered
Building areas...
100
0 areas built
0 isles built
Attaching islands...
Attaching centroids...
Number of nodes: 0
Number of primitives: 0
Number of points: 0
Number of lines: 0
Number of boundaries: 0
Number of centroids: 0
Number of areas: 0
Number of isles: 0

C:\Users\Mehar\Desktop\FYP\GNI_FREE_(EN)_1_1_1>v.in.ogr min_area=0.0001 snap=-1 input="C:\Users\Mehar\AppData\Local\Temp\processing5423244814f8462c87f6faa9e7323dad" layer=1511518622.1112 output=tmp15115186221313 --overwrite -o
Over-riding projection check
Check if OGR layer contains polygons...
100
Importing 0 features (OGR layer )...
100
-----------------------------------------------------
Building topology for vector map ...
Registering primitives...

0 primitives registered
0 vertices registered
Building areas...
100
0 areas built
0 isles built
Attaching islands...
Attaching centroids...
Number of nodes: 0
Number of primitives: 0
Number of points: 0
Number of lines: 0
Number of boundaries: 0
Number of centroids: 0
Number of areas: 0
Number of isles: 0

C:\Users\Mehar\Desktop\FYP\GNI_FREE_(EN)_1_1_1>g.region n=244859.255639 s=244702.501309 e=566981.78287 w=566729.663204 res=100

C:\Users\Mehar\Desktop\FYP\GNI_FREE_(EN)_1_1_1>v.net operation=connect input="tmp1511518622111" points="tmp15115186221313" threshold="100" output=output8331a04c59524256b2fa49eb5980489b --overwrite
Copying features...
Building topology for vector map ...
Registering primitives...

0 primitives registered
0 vertices registered
Number of nodes: 0
Number of primitives: 0
Number of points: 0
Number of lines: 0
Number of boundaries: 0
Number of centroids: 0
Number of areas: -
Number of isles: -
ERROR: Layer index out of range

C:\Users\Mehar\Desktop\FYP\GNI_FREE_(EN)_1_1_1>v.out.ogr -c type=line layer=1 -e input=output8331a04c59524256b2fa49eb5980489b output="C:\Users\Mehar\AppData\Local\Temp\processing5423244814f8462c87f6faa9e7323dad\8dc59eae6cea44ce96fdc1ce253d0def" format=ESRI_Shapefile output_layer=output
ERROR: option : exists. To overwrite, use the --overwrite flag

C:\Users\Mehar\Desktop\FYP\GNI_FREE_(EN)_1_1_1>exit
Converting outputs
OK. Execution took 12.125 ms (1 outputs).
Prepare algorithm: GNIPLANNERFTTHREPROJECTTOINTERMEDIATECRS_1
Running Reproject gpon network [4/9]
Parameters: INPUT =C:\Users\Mehar\AppData\Local\Temp\processing5423244814f8462c87f6faa9e7323dad\8dc59eae6cea44ce96fdc1ce253d0def\output.shp
Failed

Error executing algorithm Reproject gpon network 'NoneType' object has no attribute 'crs' See log for more details
gni_support
Posts: 75
Joined: Wed Sep 20, 2017 1:05 pm


It is a problem with output command for GRASS7 tools, it was fixed in QGIS 2.18.14.
Please, update QGIS to version 2.18.14.
Mehar Zulfiqar
Posts: 4
Joined: Sun Nov 19, 2017 12:23 pm


Thanks for your prompt response.
FREENEUTS
Posts: 78
Joined: Sun Aug 25, 2024 2:12 pm


She finally gathered up her courage <a href=https://enhanceyourlife.mom/>buying priligy online</a>
6 posts Page 1 of 1
ekskluzywne stoły stoły włoskie nowoczesne