From 047ab2c4dff015b6909c0ed447150ca51845ddda Mon Sep 17 00:00:00 2001
From: Miikka Kallio <miikka@gispo.fi>
Date: Wed, 22 Jan 2025 12:59:23 +0200
Subject: [PATCH] Corrected plan outline JSON

Removed type and and properties from plan outline JSON.
---
 arho_feature_template/core/lambda_service.py | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/arho_feature_template/core/lambda_service.py b/arho_feature_template/core/lambda_service.py
index e0649e6..c32171a 100644
--- a/arho_feature_template/core/lambda_service.py
+++ b/arho_feature_template/core/lambda_service.py
@@ -9,7 +9,6 @@
 from qgis.PyQt.QtNetwork import QNetworkAccessManager, QNetworkProxy, QNetworkReply, QNetworkRequest
 from qgis.PyQt.QtWidgets import QMessageBox
 
-from arho_feature_template.project.layers.plan_layers import PlanLayer
 from arho_feature_template.utils.misc_utils import get_active_plan_id, get_settings
 
 
@@ -114,10 +113,7 @@ def _process_json_reply(self, response_json: dict):
         if plan_json:
             geographical_area = plan_json.get("geographicalArea")
             if geographical_area:
-                outline_name = PlanLayer.get_plan_name(plan_id)
                 outline_json = {
-                    "type": "Feature",
-                    "properties": {"name": outline_name},
                     "srid": geographical_area.get("srid"),
                     "geometry": geographical_area.get("geometry"),
                 }