diff --git a/src/main/java/com/kamco/cd/kamcoback/postgres/repository/layer/MapLayerRepositoryImpl.java b/src/main/java/com/kamco/cd/kamcoback/postgres/repository/layer/MapLayerRepositoryImpl.java index a99a2a0a..9d752480 100644 --- a/src/main/java/com/kamco/cd/kamcoback/postgres/repository/layer/MapLayerRepositoryImpl.java +++ b/src/main/java/com/kamco/cd/kamcoback/postgres/repository/layer/MapLayerRepositoryImpl.java @@ -107,7 +107,7 @@ public class MapLayerRepositoryImpl implements MapLayerRepositoryCustom { mapLayerEntity.minZoom, mapLayerEntity.maxZoom, Expressions.stringTemplate( - "ST_AsGeoJSON(ST_MakeEnvelope({0}, {1}, {2}, {3}, 5186))", + "ST_AsGeoJSON(ST_Transform(ST_MakeEnvelope({0}, {1}, {2}, {3}, 4326), 5186))", mapLayerEntity.minLon, mapLayerEntity.minLat, mapLayerEntity.maxLon, @@ -137,7 +137,7 @@ public class MapLayerRepositoryImpl implements MapLayerRepositoryCustom { mapSheetMngTileEntity.minZoom, mapSheetMngTileEntity.maxZoom, Expressions.stringTemplate( - "ST_AsGeoJSON(ST_MakeEnvelope({0}, {1}, {2}, {3}, 5186))", + "ST_AsGeoJSON(ST_Transform(ST_MakeEnvelope({0}, {1}, {2}, {3}, 4326), 5186))", mapSheetMngTileEntity.minLon, mapSheetMngTileEntity.minLat, mapSheetMngTileEntity.maxLon, @@ -161,7 +161,7 @@ public class MapLayerRepositoryImpl implements MapLayerRepositoryCustom { mapSheetMngTileEntity.minZoom, mapSheetMngTileEntity.maxZoom, Expressions.stringTemplate( - "ST_AsGeoJSON(ST_MakeEnvelope({0}, {1}, {2}, {3}, 5186))", + "ST_AsGeoJSON(ST_Transform(ST_MakeEnvelope({0}, {1}, {2}, {3}, 4326), 5186))", mapSheetMngTileEntity.minLon, mapSheetMngTileEntity.minLat, mapSheetMngTileEntity.maxLon, @@ -189,7 +189,7 @@ public class MapLayerRepositoryImpl implements MapLayerRepositoryCustom { mapSheetMngTileEntity.minZoom, mapSheetMngTileEntity.maxZoom, Expressions.stringTemplate( - "ST_AsGeoJSON(ST_MakeEnvelope({0}, {1}, {2}, {3}, 5186))", + "ST_AsGeoJSON(ST_Transform(ST_MakeEnvelope({0}, {1}, {2}, {3}, 4326), 5186))", mapSheetMngTileEntity.minLon, mapSheetMngTileEntity.minLat, mapSheetMngTileEntity.maxLon,