From 450ee8f963c929b566c9c3c1ac505a469e5c8bb2 Mon Sep 17 00:00:00 2001 From: jansule Date: Mon, 12 Feb 2024 13:45:58 +0100 Subject: [PATCH] fix: remove unnecessary ogc: prefix from filter --- data/slds/1.0/function_filter.sld | 2 +- data/slds/1.1/point_simplepoint_filter.sld | 4 ++-- data/slds/1.1/point_simplepoint_functionfilter.sld | 4 ++-- data/slds/1.1/point_simplepoint_nestedLogicalFilters.sld | 4 ++-- src/SldStyleParser.ts | 4 ---- 5 files changed, 7 insertions(+), 11 deletions(-) diff --git a/data/slds/1.0/function_filter.sld b/data/slds/1.0/function_filter.sld index 3b477fed..2c0942c3 100644 --- a/data/slds/1.0/function_filter.sld +++ b/data/slds/1.0/function_filter.sld @@ -8,7 +8,7 @@ Function Property Rule 0 - + testprop diff --git a/data/slds/1.1/point_simplepoint_filter.sld b/data/slds/1.1/point_simplepoint_filter.sld index e87aec82..14203147 100644 --- a/data/slds/1.1/point_simplepoint_filter.sld +++ b/data/slds/1.1/point_simplepoint_filter.sld @@ -7,7 +7,7 @@ Small populated New Yorks - + NAME @@ -54,7 +54,7 @@ - + 10000 20000 diff --git a/data/slds/1.1/point_simplepoint_functionfilter.sld b/data/slds/1.1/point_simplepoint_functionfilter.sld index 8e4c409d..82a010c9 100644 --- a/data/slds/1.1/point_simplepoint_functionfilter.sld +++ b/data/slds/1.1/point_simplepoint_functionfilter.sld @@ -7,7 +7,7 @@ Small populated New Yorks - + year @@ -15,7 +15,7 @@ true - + 10000 20000 diff --git a/data/slds/1.1/point_simplepoint_nestedLogicalFilters.sld b/data/slds/1.1/point_simplepoint_nestedLogicalFilters.sld index c4925241..027114bb 100644 --- a/data/slds/1.1/point_simplepoint_nestedLogicalFilters.sld +++ b/data/slds/1.1/point_simplepoint_nestedLogicalFilters.sld @@ -7,7 +7,7 @@ Test - + @@ -40,7 +40,7 @@ - + 10000 20000 diff --git a/src/SldStyleParser.ts b/src/SldStyleParser.ts index fb3299af..ec4aff4f 100644 --- a/src/SldStyleParser.ts +++ b/src/SldStyleParser.ts @@ -1174,10 +1174,6 @@ export class SldStyleParser implements StyleParser { * @returns The tagName as used by the configured sldVersion */ getTagName(tagName: string): string { - const ogcList = ['Filter']; - if (ogcList.includes(tagName)) { - return this.sldVersion === '1.1.0' ? `ogc:${tagName}` : tagName; - } if (tagName === 'CssParameter') { return this.sldVersion === '1.1.0' ? 'se:SvgParameter' : 'CssParameter'; }