From cd11e207c36fc547f13893105be9f820e3750f61 Mon Sep 17 00:00:00 2001 From: alainbodiguel Date: Thu, 27 May 2021 11:05:19 +0200 Subject: [PATCH] Fix shape export --- .../server/impl/elastic/services/ElasticExploreService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arlas-core/src/main/java/io/arlas/server/impl/elastic/services/ElasticExploreService.java b/arlas-core/src/main/java/io/arlas/server/impl/elastic/services/ElasticExploreService.java index a8e61d5da..9b0f0871d 100644 --- a/arlas-core/src/main/java/io/arlas/server/impl/elastic/services/ElasticExploreService.java +++ b/arlas-core/src/main/java/io/arlas/server/impl/elastic/services/ElasticExploreService.java @@ -447,6 +447,8 @@ private AggregationResponse formatAggregationResult(MultiBucketsAggregation aggr geometryGeoJson = geometry != null ? GeoTypeMapper.getGeoJsonObject(geometry, geometryType) : null; if (geometryGeoJson != null) { + // "old-style crs member is not recommended" so we remove it + geometryGeoJson.setCrs(null); returnedGeometry.geometry = geometryGeoJson; returnedGeometry.isRaw = true; returnedGeometry.sort = sort;