CartoLineGen icon indicating copy to clipboard operation
CartoLineGen copied to clipboard

No layer to generalizer

Open bellanz80 opened this issue 7 years ago • 5 comments

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

bellanz80 avatar Sep 22 '18 19:09 bellanz80

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.

dtutic avatar Sep 23 '18 04:09 dtutic

Thank you very much. Luca

Nueva carpeta.zip

bellanz80 avatar Sep 23 '18 04:09 bellanz80

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.

dtutic avatar Sep 23 '18 05:09 dtutic

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.

dtutic avatar Sep 23 '18 06:09 dtutic

Thank you very much for your increible support! :) Ciao

Luca Bellani

bellanz80 avatar Sep 23 '18 16:09 bellanz80