diff --git a/remocra/src/main/java/fr/sdis83/remocra/repository/HydrantPibiRepository.java b/remocra/src/main/java/fr/sdis83/remocra/repository/HydrantPibiRepository.java index 934799f1..50f13aa4 100755 --- a/remocra/src/main/java/fr/sdis83/remocra/repository/HydrantPibiRepository.java +++ b/remocra/src/main/java/fr/sdis83/remocra/repository/HydrantPibiRepository.java @@ -201,7 +201,7 @@ public JSONObject findJumelage(String geometrie) { .where( "ST_DISTANCE({0}, {1}) < {2}", HYDRANT.GEOMETRIE, - parametreProvider.get().getSridInt() + geometrie, + "SRID=" + parametreProvider.get().getSridInt() + ";" + geometrie, DISTANCE_MINIMAL_JUMELAGE) .and(TYPE_HYDRANT_NATURE.CODE.eq(BI)) .and(HYDRANT_PIBI.JUMELE.isNull())