-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
060bf64
commit 430f050
Showing
7 changed files
with
37 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,30 @@ | ||
namespace USACE.HEC.Geography; | ||
public class BoundingBox | ||
{ | ||
private Location _upperLeft; | ||
private Location _lowerRight; | ||
public Location UpperLeft { get; } | ||
public Location LowerRight { get; } | ||
|
||
public BoundingBox(Location upperLeft, Location lowerRight) | ||
{ | ||
_upperLeft = upperLeft; | ||
_lowerRight = lowerRight; | ||
UpperLeft = upperLeft; | ||
LowerRight = lowerRight; | ||
} | ||
|
||
public Location GetUpperLeft() { return _upperLeft; } | ||
public Location GetLowerRight() { return _lowerRight; } | ||
|
||
public string NSIFormat() | ||
{ | ||
return string.Format("{0},{1},{2},{3},{4},{5},{6},{7},{8},{9}", | ||
_upperLeft.X, _upperLeft.Y, | ||
_lowerRight.X, _upperLeft.Y, | ||
_lowerRight.X, _lowerRight.Y, | ||
_upperLeft.X, _lowerRight.Y, | ||
_upperLeft.X, _upperLeft.Y); | ||
UpperLeft.X, UpperLeft.Y, | ||
LowerRight.X, UpperLeft.Y, | ||
LowerRight.X, LowerRight.Y, | ||
UpperLeft.X, LowerRight.Y, | ||
UpperLeft.X, UpperLeft.Y); | ||
} | ||
|
||
// not sure about this functionality right now, just a placeholder | ||
public string GDALFormat() | ||
{ | ||
return string.Format("{0}{1}{2}{3}", | ||
_upperLeft.X, _upperLeft.Y, | ||
_lowerRight.X, _lowerRight.X); | ||
UpperLeft.X, UpperLeft.Y, | ||
LowerRight.X, LowerRight.X); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters