MCPcopy Create free account
hub / github.com/LAStools/LAStools / get_projString_representation

Method get_projString_representation

src/geoprojectionconverter.cpp:931–942  ·  view source on GitHub ↗

returns the PROj string representation of the PROJ crs IMPORTANT: the proj context and the PROJ crs object must have been created before calling the function

Source from the content-addressed store, hash-verified

929/// returns the PROj string representation of the PROJ crs
930/// IMPORTANT: the proj context and the PROJ crs object must have been created before calling the function
931const char* ProjParameters::get_projString_representation(bool source /*=true*/) const {
932 if (proj_ctx && ((proj_source_crs && source) || (proj_target_crs && !source))) {
933 // Retrieving and outputting the PROJ string representation
934 const char* projString = proj_as_proj_string_ptr(proj_ctx, source ? proj_source_crs : proj_target_crs, PJ_PROJ_5, nullptr);
935 if (!projString) {
936 laserror("The PROJ string representation of the PROJ CRS could not be generated.");
937 }
938 LASMessage(LAS_VERY_VERBOSE, "the PROJ string representation object was successfully created, PROJ string: '%s'", projString);
939 return projString;
940 }
941 return nullptr;
942}
943
944/// returns the epsg representation of the PROJ crs
945/// IMPORTANT: the proj context and the PROJ crs object must have been created before calling the function

Callers 1

runMethod · 0.80

Calls 2

laserrorFunction · 0.85
LASMessageFunction · 0.85

Tested by

no test coverage detected