Class CheckFlagTippecanoeProcessor

  • All Implemented Interfaces:
    Processor<CheckFlagEvent>

    public class CheckFlagTippecanoeProcessor
    extends FileProcessor<CheckFlagEvent>
    This class is similar to CheckFlagFileProcessor, except here we're making line-delimited GeoJSON that plays well with tippecanoe.
    • Constructor Detail

      • CheckFlagTippecanoeProcessor

        public CheckFlagTippecanoeProcessor​(org.openstreetmap.atlas.generator.tools.spark.utilities.SparkFileHelper fileHelper,
                                            java.lang.String directory)
        Default constructor
        Parameters:
        fileHelper - SparkFileHelper instance for I/O operations
        directory - The directory to write output
    • Method Detail

      • process

        public void process​(CheckFlagEvent event)
        Description copied from interface: Processor
        Method to process Event. If your method can process multiple events simultaneously, then mark your method with @AllowConcurrentEvents annotation.Please make sure to add @Subscribe annotation to the method that is implementing this method.
        Parameters:
        event - Event to process
      • process

        public void process​(ShutdownEvent event)
        Description copied from interface: Processor
        Method to process ShutdownEvent. This method will be called only once.
        Please make sure to add @Subscribe annotation to the method that is implementing this method.
        Parameters:
        event - ShutdownEvent to process
      • getFilename

        protected java.lang.String getFilename()
        Overrides:
        getFilename in class FileProcessor<CheckFlagEvent>
        Returns:
        the name of the file to be used in #write() method to write files