diff --git a/Sources/GISTools/GeoJson/BoundingBox.swift b/Sources/GISTools/GeoJson/BoundingBox.swift index 29eaf79..4e71413 100644 --- a/Sources/GISTools/GeoJson/BoundingBox.swift +++ b/Sources/GISTools/GeoJson/BoundingBox.swift @@ -47,8 +47,8 @@ public struct BoundingBox: self.projection = coordinates.first?.projection ?? .epsg4326 - var southWest = Coordinate3D(latitude: .infinity, longitude: .infinity) - var northEast = Coordinate3D(latitude: -.infinity, longitude: -.infinity) + var southWest = Coordinate3D(x: .infinity, y: .infinity, projection: projection) + var northEast = Coordinate3D(x: -.infinity, y: -.infinity, projection: projection) for currentLocation in coordinates { let currentLocationLatitude = currentLocation.latitude