diff --git a/packages/geo/src/lib/query/shared/query.service.ts b/packages/geo/src/lib/query/shared/query.service.ts index 078716d267..3884f26287 100644 --- a/packages/geo/src/lib/query/shared/query.service.ts +++ b/packages/geo/src/lib/query/shared/query.service.ts @@ -568,6 +568,9 @@ export class QueryService { delete properties.boundedBy; delete properties.shape; delete properties.SHAPE; + delete properties.SHAPE_S; + delete properties.SHAPE_L; + delete properties.SHAPE_P; delete properties.the_geom; delete properties.geom; diff --git a/packages/geo/src/lib/search/shared/search.utils.ts b/packages/geo/src/lib/search/shared/search.utils.ts index ef64cded32..0d99ceda47 100644 --- a/packages/geo/src/lib/search/shared/search.utils.ts +++ b/packages/geo/src/lib/search/shared/search.utils.ts @@ -41,6 +41,18 @@ export function featureToSearchResult( feature: Feature, source: SearchSource ): SearchResult { + if (feature.properties) { + delete feature.properties.geometry; + delete feature.properties.GEOMETRIE; + delete feature.properties.boundedBy; + delete feature.properties.shape; + delete feature.properties.SHAPE; + delete feature.properties.SHAPE_S; + delete feature.properties.SHAPE_L; + delete feature.properties.SHAPE_P; + delete feature.properties.the_geom; + delete feature.properties.geom; + } feature.sourceId = source.getId(); return { source,