Class GoogleEarthService

java.lang.Object
org.deltava.service.WebService
org.deltava.service.acars.GoogleEarthService
Direct Known Subclasses:
EarthMapPlanService, EarthMapService, FlightDataEarthService

abstract class GoogleEarthService extends WebService
An abstract class to support Web Services rendering ACARS data in Google Earth.
Since:
1.0
Version:
8.3
Author:
Luke
  • Field Details

  • Constructor Details

    • GoogleEarthService

      GoogleEarthService()
  • Method Details

    • createAirport

      protected static Element createAirport(Airport a, String desc)
      Helper method to generate an airport Placemark element.
      Parameters:
      a - the Airport to render
      desc - the placemark description
      Returns:
      a KML Placemark element
    • createAircraft

      protected static Element createAircraft(String name, RouteEntry entry)
      Helper method to generate an aircraft Placemark element.
      Parameters:
      name - the entry title/name
      entry - the position/flight data
      Returns:
      a KML Placemark element
    • createProgress

      protected static Element createProgress(Collection<RouteEntry> positions, GoogleEarthColor routeColor)
      Helper method to render flight progress as a KML Placemark / LineString element.
      Parameters:
      positions - a Collection of RouteEntry beans
      routeColor - the line/fill color
      Returns:
      a KML Placemark element containing the flight progress
    • createPositionData

      protected static Element createPositionData(Collection<RouteEntry> positions, boolean isVisible)
      Helper method to generate flight position data as a KML Folder element.
      Parameters:
      positions - a Collection of PositionEntry beans
      isVisible - TRUE if the data points should be visible, otherwise FALSE
      Returns:
      a KML Folder element
    • createAirspace

      protected static Element createAirspace(Airspace a, boolean isVisible)
      Renders an Airspace boundary into Google Earth KML.
      Parameters:
      a - an Airspace bean
      isVisible - TRUE if the element is visible, otherwise FALSE
      Returns:
      a KML element containing the Airspace entry
    • createFlightRoute

      protected static Element createFlightRoute(String name, Collection<NavigationDataBean> waypoints, boolean isVisible)
      Renders the flight plan to Google Earth KML.
      Parameters:
      name - the Flight Plan KML folder name
      waypoints - a Collection of NavigationDataBeans
      isVisible - TRUE if the element is visible, otherwise FALSE
      Returns:
      a KML Folder element containing the flight plan route