Class GoogleEarthService
java.lang.Object
org.deltava.service.WebService
org.deltava.service.acars.GoogleEarthService
- Direct Known Subclasses:
EarthMapPlanService
,EarthMapService
,FlightDataEarthService
An abstract class to support Web Services rendering ACARS data in Google Earth.
- Since:
- 1.0
- Version:
- 8.3
- Author:
- Luke
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static Element
createAircraft
(String name, RouteEntry entry) Helper method to generate an aircraft Placemark element.protected static Element
createAirport
(Airport a, String desc) Helper method to generate an airport Placemark element.protected static Element
createAirspace
(Airspace a, boolean isVisible) Renders an Airspace boundary into Google Earth KML.protected static Element
createFlightRoute
(String name, Collection<NavigationDataBean> waypoints, boolean isVisible) Renders the flight plan to Google Earth KML.protected static Element
createPositionData
(Collection<RouteEntry> positions, boolean isVisible) Helper method to generate flight position data as a KML Folder element.protected static Element
createProgress
(Collection<RouteEntry> positions, GoogleEarthColor routeColor) Helper method to render flight progress as a KML Placemark / LineString element.
-
Field Details
-
COLORS
-
-
Constructor Details
-
GoogleEarthService
GoogleEarthService()
-
-
Method Details
-
createAirport
-
createAircraft
Helper method to generate an aircraft Placemark element.- Parameters:
name
- the entry title/nameentry
- 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 beansrouteColor
- the line/fill color- Returns:
- a KML Placemark element containing the flight progress
-
createPositionData
Helper method to generate flight position data as a KML Folder element.- Parameters:
positions
- a Collection of PositionEntry beansisVisible
- TRUE if the data points should be visible, otherwise FALSE- Returns:
- a KML Folder element
-
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 namewaypoints
- a Collection of NavigationDataBeansisVisible
- TRUE if the element is visible, otherwise FALSE- Returns:
- a KML Folder element containing the flight plan route
-