From bd55787b540973e75496bc688377cf5addb0a12a Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Thu, 10 Jun 2021 07:23:20 +0200
Subject: [PATCH] [GL/IO] Print a warning for a unnamed polyline in gml.

---
 GeoLib/IO/XmlIO/Boost/BoostXmlGmlInterface.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/GeoLib/IO/XmlIO/Boost/BoostXmlGmlInterface.cpp b/GeoLib/IO/XmlIO/Boost/BoostXmlGmlInterface.cpp
index 6ce739ce342..e85a2a7f2dc 100644
--- a/GeoLib/IO/XmlIO/Boost/BoostXmlGmlInterface.cpp
+++ b/GeoLib/IO/XmlIO/Boost/BoostXmlGmlInterface.cpp
@@ -194,6 +194,9 @@ void BoostXmlGmlInterface::readPolylines(
         {
             // polyline has no name, ignore it.
             pl.ignoreConfigParameterAll("pnt");
+            WARN(
+                "Polyline name is required! Polylines without a name are "
+                "ignored.");
         }
     }
 }
-- 
GitLab