Topocentric to geographic projection #1348
Replies: 6 comments 2 replies
-
I don't know enough about PROJ pipelines to give a good answer, but does this operation work with PROJ's command line tools? It seems to be an error with the definition and not pyproj itself so I'm wondering if PROJ's documentation can shed more light on the problem...at least until someone who has more experience with this type of definition can answer. |
Beta Was this translation helpful? Give feedback.
-
The PROJ mailing list is a good resource for a question like this: https://lists.osgeo.org/mailman/listinfo/proj/ |
Beta Was this translation helpful? Give feedback.
-
Related: #863 |
Beta Was this translation helpful? Give feedback.
-
Has your issue been resolved? I'm experiencing the same problem. |
Beta Was this translation helpful? Give feedback.
-
Converting from a topocentric to EPSG:4326 (geographic lat-lon in degrees) is
The conversion from EPSG:4326 (geographic) to topocentric is
|
Beta Was this translation helpful? Give feedback.
-
Thank you very much, it works. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to convert a topocentric coordinate to a geographic one.
Referring to other posts, I found that the inverse of this transformation (i.e., geographic to topocentric) can be made by making a Transformer from a pipeline as the following:
pipe_trans = pyproj.Transformer.from_pipeline("+proj=pipeline +step +proj=cart +ellps=WGS84 +step +proj=topocentric +ellps=WGS84 +lon_0=136 +lat_0=33 +h_0=0)
I expected that the other way around, as
pipe_trans_inv = pyproj.Transformer.from_pipeline("+proj=pipeline +step +proj=topocentric +ellps=WGS84 +lon_0=136 +lat_0=33 +h_0=0 +step +proj=cart +ellps=WGS84")
works for my target transformation, but actually does not work and gives an error as follows.
ProjError: Invalid projection +proj=pipeline +step +proj=topocentric +ellps=WGS84 +lon_0=136 +lat_0=33 +h_0=0 +step +proj=cart +ellps=WGS84.: (Internal Proj Error: proj_create: Error 1025 (Invalid PROJ string syntax): pipeline: Pipeline: Mismatched units between step 1 and 2)
How should I fix this error? I don't persist on using the pipeline if I can make the transformation using pyproj.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions