We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 124e910 commit ac476c3Copy full SHA for ac476c3
arho_feature_template/project/layers/plan_layers.py
@@ -70,12 +70,12 @@ class PlanLayer(AbstractPlanLayer):
70
71
@classmethod
72
def feature_from_model(cls, model: Plan) -> QgsFeature:
73
- feature = cls.initialize_feature_from_model(model)
74
-
75
if not model.geom:
76
message = "Plan must have a geometry to be added to the layer"
77
raise ValueError(message)
78
+ feature = cls.initialize_feature_from_model(model)
+ feature.setGeometry(model.geom)
79
feature["name"] = {LANGUAGE: model.name}
80
feature["description"] = {LANGUAGE: model.description}
81
feature["permanent_plan_identifier"] = model.permanent_plan_identifier
0 commit comments