Replies: 1 comment 1 reply
-
I see no problems with calling the C++ code; while at it, we may want to allow for setting the epoch. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
st_crs(epsg)
callsOGRSpatialReference::importFromEPSG()
by way ofOGRSpatialReference::SetFromUserInput()
and therefore can handle either a projected EPSG or a vertical EPSG, but not both at the same time. There doesn't seem to be a way to callOGRSpatialReference::SetCompoundCS()
from R.Cleanest workaround I've found for this using R code is to create both components and glue their wkts together. Function below seems to work fine but comparative testing against layers generated by code compiled against GDAL 3.10.2 APIs shows differences in whether or not the geoid gets included in the vertical CRS's name. While this appears to be of little functional importance (and is maybe just inconsistent behavior between
SetCompoundCS()
andimportFromEPSG()
), I'm wondering if there's a better approach short of dropping into C++.Beta Was this translation helpful? Give feedback.
All reactions