Skip to content

Commit

Permalink
Debugging aid
Browse files Browse the repository at this point in the history
  • Loading branch information
trasch committed Mar 19, 2024
1 parent 4e74243 commit bf1d5a0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Sources/GISTools/GeoJson/GeoJsonConvertible.swift
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,16 @@ extension Sequence where Self.Iterator.Element: GeoJsonWritable {
}

}

// MARK: - Debugging

extension GeoJsonWritable {

/// Prints the receiver to the console.
public func dump() {
guard let stringified = asJsonString(prettyPrinted: true) else { return }

print(stringified, separator: "")
}

}

0 comments on commit bf1d5a0

Please sign in to comment.