-
Notifications
You must be signed in to change notification settings - Fork 212
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
Showing
9 changed files
with
127 additions
and
49 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,48 @@ | ||
""" | ||
This module contains enumerations used in pyproj. | ||
""" | ||
from enum import Enum, IntEnum | ||
|
||
|
||
class WktVersion(Enum): | ||
""" | ||
Supported CRS WKT string versions | ||
""" | ||
|
||
#: WKT Version 2 from 2015 | ||
WKT2_2015 = "WKT2_2015" | ||
#: WKT Version 2 from 2015 Simplified | ||
WKT2_2015_SIMPLIFIED = "WKT2_2015_SIMPLIFIED" | ||
#: WKT Version 2 from 2018 | ||
WKT2_2018 = "WKT2_2018" | ||
#: WKT Version 2 from 2018 Simplified | ||
WKT2_2018_SIMPLIFIED = "WKT2_2018_SIMPLIFIED" | ||
#: WKT Version 1 GDAL Style | ||
WKT1_GDAL = "WKT1_GDAL" | ||
#: WKT Version 1 ESRI Style | ||
WKT1_ESRI = "WKT1_ESRI" | ||
|
||
|
||
class ProjVersion(IntEnum): | ||
""" | ||
Supported CRS PROJ string versions | ||
""" | ||
|
||
#: PROJ String version 4 | ||
PROJ_4 = 4 | ||
#: PROJ String version 5 | ||
PROJ_5 = 5 | ||
|
||
|
||
class TransformDirection(IntEnum): | ||
""" | ||
Supported transform directions | ||
""" | ||
|
||
#: Forward direction | ||
FORWARD = 1 | ||
#: Inverse direction | ||
INVERSE = -1 | ||
#: Do nothing | ||
IDENT = 0 |
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,13 @@ | ||
Enumerations | ||
============ | ||
|
||
.. autoclass:: pyproj.enum.WktVersion | ||
:members: | ||
|
||
|
||
.. autoclass:: pyproj.enum.ProjVersion | ||
:members: | ||
|
||
|
||
.. autoclass:: pyproj.enum.TransformDirection | ||
:members: |
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 |
---|---|---|
|
@@ -10,5 +10,6 @@ API Documentation | |
geod | ||
transformer | ||
list | ||
enum | ||
datadir | ||
exceptions | ||
exceptions |
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