Class OpenStreetMapCheckFlagConverter


  • public final class OpenStreetMapCheckFlagConverter
    extends java.lang.Object
    Utility to convert a CheckFlag into an OpenStreetMap like CheckFlag. This currently means removing Point based FlaggedObjects and FeatureChange suggestions that are also flagged as a node, and merging the geometries of Edge based FlaggedObjects and suggestions that share an OSM ID.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Optional<CheckFlag> openStreetMapify​(CheckFlag flag)
      Attempt to create an OpenStreetMap CheckFlag by removing Points duplicatly flagged as Nodes, and merging Edges that share an OSM ID.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • openStreetMapify

        public static java.util.Optional<CheckFlag> openStreetMapify​(CheckFlag flag)
        Attempt to create an OpenStreetMap CheckFlag by removing Points duplicatly flagged as Nodes, and merging Edges that share an OSM ID.
        Parameters:
        flag - CheckFlag
        Returns:
        Optional OSM CheckFlag