-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
define Coord in new file, rename PJ_COORD to it
and leave out the unusable structs PJ_XY from proj_common.jl
- Loading branch information
Showing
6 changed files
with
41 additions
and
36 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
""" | ||
Coord <: FieldVector{4, Float64} | ||
General purpose coordinate type, applicable in two, three and four dimensions. This is the | ||
default coordinate datatype used in PROJ. | ||
Elements can be retrieved either by index 1-4, or by field x, y, z, t. If a Coord does not | ||
represent a cartesian coordinate, using the index may be more clear, as the other coordinate | ||
types listed in the [PJ_COORD docs](https://proj.org/development/reference/datatypes.html#c.PJ_COORD) | ||
are not addressable by name. | ||
""" | ||
struct Coord <: FieldVector{4, Float64} | ||
x::Float64 | ||
y::Float64 | ||
z::Float64 | ||
t::Float64 | ||
end |
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