No layer to generalizer
Hi I have a vector layer of lines, they are level curves. When opening the plug, an error comes out that says there are no layers to generalize Thank's
Luca Bellani

Please send me a sample of this geometry. This error will raise when there is no line or polyline geometry in the project, but maybe the check procedure is not correct. QGIS classes changes quite a lot and maybe I missed something.
Kind regards, Drazen Tutic
---- bellanz80 wrote ----
Hi I have a vector layer of lines, they are level curves. When opening the plug, an error comes out that says there are no layers to generalize Thank's
Luca Bellani
[sin titulo]https://user-images.githubusercontent.com/38449926/45921159-e3f90900-be75-11e8-9033-672c169336ab.png
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/GEOF-OSGL/CartoLineGen/issues/2, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AP5MuGp9Qm7j1lePBNbDjdUOPNwraEdAks5udpMJgaJpZM4W1adY.
Thank you for letting me know of this error. I have mixed up with geometry type check.
Install plugin form this ZIP file in attachement. (Plugins -> Install from ZIP)
The modified line in cartolinegen.py now look like: if layer.type() == QgsMapLayer.VectorLayer and (layer.wkbType() == QgsWkbTypes.LineString or layer.wkbType() == QgsWkbTypes.Polygon or layer.wkbType() == QgsWkbTypes.MultiLineString or layer.wkbType() == QgsWkbTypes.MultiPolygon):
Many thanks again.
Drazen
From: bellanz80 [email protected] Sent: Sunday, September 23, 2018 06:53 To: GEOF-OSGL/CartoLineGen Cc: Dražen Tutić; Comment Subject: Re: [GEOF-OSGL/CartoLineGen] No layer to generalizer (#2)
Thank you very much. Luca
Nueva carpeta.ziphttps://github.com/GEOF-OSGL/CartoLineGen/files/2408414/Nueva.carpeta.zip
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/GEOF-OSGL/CartoLineGen/issues/2#issuecomment-423791917, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AP5MuFnWXzxHQHp_hO_0a62A-9ocKPX7ks5udxPYgaJpZM4W1adY.
I have uploaded new version to QGIS plugin repository, with this fix.
Thank you once again.
Drazen
From: bellanz80 [email protected] Sent: Sunday, September 23, 2018 06:53 To: GEOF-OSGL/CartoLineGen Cc: Dražen Tutić; Comment Subject: Re: [GEOF-OSGL/CartoLineGen] No layer to generalizer (#2)
Thank you very much. Luca
Nueva carpeta.ziphttps://github.com/GEOF-OSGL/CartoLineGen/files/2408414/Nueva.carpeta.zip
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/GEOF-OSGL/CartoLineGen/issues/2#issuecomment-423791917, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AP5MuFnWXzxHQHp_hO_0a62A-9ocKPX7ks5udxPYgaJpZM4W1adY.
Thank you very much for your increible support! :) Ciao
Luca Bellani