Skip to content

Commit

Permalink
fix 'Operation on mixed SRID geometries'
Browse files Browse the repository at this point in the history
Signed-off-by: qGYdXbY2 <[email protected]>
  • Loading branch information
qGYdXbY2 committed May 6, 2024
1 parent b0c8b7e commit 10172a3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ private static SQLQuery buildGeoFragment(SpatialFilter spatialFilter) {
.withNamedParameter("wktGeometry", WKTHelper.geometryToWKB(spatialFilter.getGeometry()))
.withNamedParameter("radius", spatialFilter.getRadius());
else
return new SQLQuery("ST_Intersection(ST_MakeValid(geo), ST_GeomFromText(#{wktGeometry}) ) as geo")
return new SQLQuery("ST_Intersection(ST_MakeValid(geo), st_setsrid( ST_GeomFromText( #{wktGeometry} ),4326 )) as geo")
.withNamedParameter("wktGeometry", WKTHelper.geometryToWKB(spatialFilter.getGeometry()));
}
else
Expand Down

0 comments on commit 10172a3

Please sign in to comment.