What's the expected user input for CoordinateSystem.from_user_input #1485
-
Hi, I'm trying to create a custom 3D CRS with the elevation defined as the ellipsoid height. As the is no existing Cartesian 3D CS, I try to build one with wkt string, but I don't know what's the right format it should be, even the wkt string generated directly from a existing CRS does not work. Did I miss something?
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
You can easily create it via the command line.
See that the Z is generated in meters, regardless the horizontal unit. You can easily change it. |
Beta Was this translation helpful? Give feedback.
-
The method CRS.to_3d will likely be helpful for you to get started. from pyproj import CRS
cs_wkt = CRS("EPSG:4326").to_3d().coordinate_system |
Beta Was this translation helpful? Give feedback.
-
The coordinate system API may be a helpful resource as well: from pyproj.crs.coordinate_system import Ellipsoidal3DCS
from pyproj.crs.enums import Ellipsoidal3DCSAxis
vcs = Ellipsoidal3DCS(axis=Ellipsoidal3DCSAxis.LATITUDE_LONGITUDE_HEIGHT) |
Beta Was this translation helpful? Give feedback.
-
Should probably document this better, but WKT & coordinate systems don't mix well together: OSGeo/PROJ#1819 I recommend using |
Beta Was this translation helpful? Give feedback.
Should probably document this better, but WKT & coordinate systems don't mix well together: OSGeo/PROJ#1819
I recommend using
to_json
/from_json
instead.