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

Function UnitValueToEpsg

src/wktparser.cpp:40–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38#include <math.h>
39
40int UnitValueToEpsg(double val) {
41 if (val == 1.0) {
42 return EPSG_METER;
43 } else if (fabs(val - 0.3048006096012192) < 0.000000001) {
44 return EPSG_SURFEET;
45 } else {
46 return EPSG_FEET;
47 }
48}
49
50WktParser::WktParser() {
51}

Callers 1

Vert_Unit_EpsgMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected