Skip to content

Commit

Permalink
use correct initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseCrocker committed Nov 1, 2023
1 parent ea83cad commit 1fb0d99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/GISTools/GeoJson/BoundingBox.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ public struct BoundingBox:

self.projection = coordinates.first?.projection ?? .epsg4326

var southWest = Coordinate3D(latitude: .infinity, longitude: .infinity, projection: projection)
var northEast = Coordinate3D(latitude: -.infinity, longitude: -.infinity, projection: projection)
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
Expand Down

0 comments on commit 1fb0d99

Please sign in to comment.