Skip to content

Commit

Permalink
M3-140 Refactor : SRID 상수화
Browse files Browse the repository at this point in the history
  • Loading branch information
qjvk2880 committed Jun 26, 2024
1 parent 2c9feeb commit e7a2a1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/m3pro/groundflip/service/PixelService.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@
public class PixelService {
private final GeometryFactory geometryFactory;
private final PixelRepository pixelRepository;
private static final int WGS84_SRID = 4326;

public List<IndividualPixelResponse> getNearIndividualPixelsByCoordinate(double currentLatitude,
double currentLongitude, int radius) {
Point point = geometryFactory.createPoint(new Coordinate(currentLongitude, currentLatitude));
point.setSRID(4326);
point.setSRID(WGS84_SRID);

return pixelRepository.findAllIndividualPixelsByCoordinate(point, radius).stream()
.map(IndividualPixelResponse::from)
Expand Down

0 comments on commit e7a2a1d

Please sign in to comment.