Icon

Bearing and 8 Point Compass Direction

KNIME does not have a native method to find the bearing in degrees and cardinal direction betweentwo sets of Latitude and Longitude.Using a Java snippet we wrote the code that calculates this. The output is the bearing in degreesand the cardinal direction (N, NE, E, SE, S, SW, W, or NW) of your destination as it relates to theorigin point.There is no external package in use here, just base KNIME and the math to calulate it.You can easily scale this up for a large dataset by including the component in a loop.For simplicity, the columns are:Origin_LatOrigin_LngDest_LatDest Lng Bearing and 8 PointCardinal DirectionAuthors:John DenhamJ Albertson The results are read as:The Golden Gate Bride is 283degrees W of Denver, COSample Data Denver to Golden Gate BridgeBearing and 8 PointCardinal Direction Table Creator KNIME does not have a native method to find the bearing in degrees and cardinal direction betweentwo sets of Latitude and Longitude.Using a Java snippet we wrote the code that calculates this. The output is the bearing in degreesand the cardinal direction (N, NE, E, SE, S, SW, W, or NW) of your destination as it relates to theorigin point.There is no external package in use here, just base KNIME and the math to calulate it.You can easily scale this up for a large dataset by including the component in a loop.For simplicity, the columns are:Origin_LatOrigin_LngDest_LatDest Lng Bearing and 8 PointCardinal DirectionAuthors:John DenhamJ Albertson The results are read as:The Golden Gate Bride is 283degrees W of Denver, COSample Data Denver to Golden Gate BridgeBearing and 8 PointCardinal Direction Table Creator

Nodes

Extensions

Links