diff --git a/Assets/Scripts/Layers/Adapters/DataTypeAdapters/WFSGeoJSONImportAdapter.cs b/Assets/Scripts/Layers/Adapters/DataTypeAdapters/WFSGeoJSONImportAdapter.cs index cbce7902..ee40c71f 100644 --- a/Assets/Scripts/Layers/Adapters/DataTypeAdapters/WFSGeoJSONImportAdapter.cs +++ b/Assets/Scripts/Layers/Adapters/DataTypeAdapters/WFSGeoJSONImportAdapter.cs @@ -358,8 +358,14 @@ private XmlNamespaceManager ReadNameSpaceManager(XmlDocument xmlDocument) { XmlNamespaceManager namespaceManager = new(xmlDocument.NameTable); XmlNodeList elementsWithNamespaces = xmlDocument.SelectNodes("//*"); - namespaceManager.AddNamespace("wfs", "http://www.opengis.net/wfs"); - namespaceManager.AddNamespace("ows", "http://www.opengis.net/ows"); + if (namespaceManager.HasNamespace("wfs") == false) + { + namespaceManager.AddNamespace("wfs", "http://www.opengis.net/wfs"); + } + if (namespaceManager.HasNamespace("ows") == false) + { + namespaceManager.AddNamespace("ows", "http://www.opengis.net/ows/1.1"); + } if (elementsWithNamespaces != null) {