Class MultiPointHandler

java.lang.Object
armyc2.c5isr.web.render.MultiPointHandler

public class MultiPointHandler extends Object
  • Constructor Details

  • Method Details

    • NormalizeGECoordsToGEExtents

      public static void NormalizeGECoordsToGEExtents(double leftLongitude, double rightLongitude, ArrayList<Point2D> pts2d)
      GE has the unusual distinction of being an application with coordinates outside its own extents. It appears to only be a problem when lines cross the IDL
      Parameters:
      pts2d - the client points
    • NormalizeCoordToGECoord

      protected static Point2D NormalizeCoordToGECoord(Point2D pt2d)
      GE recognizes coordinates in the range of -180 to +180
      Parameters:
      pt2d -
      Returns:
    • ShouldClipSymbol

      public static Boolean ShouldClipSymbol(String symbolID)
      Checks if a symbol is one with decorated lines which puts a strain on google earth when rendering like FLOT. These complicated lines should be clipped when possible.
      Parameters:
      symbolID -
      Returns:
    • RenderSymbol

      public static String RenderSymbol(String id, String name, String description, String symbolCode, String controlPoints, Double scale, String bbox, Map<String,String> symbolModifiers, Map<String,String> symbolAttributes, int format)
      Parameters:
      id - - For the client to track the symbol, not related to rendering
      name - - For the client to track the symbol, not related to rendering
      description - - For the client to track the symbol, not related to rendering
      symbolCode -
      controlPoints -
      scale -
      bbox -
      symbolModifiers - keyed using constants from Modifiers. Pass in comma delimited String for modifiers with multiple values like AM, AN & X
      symbolAttributes - keyed using constants from MilStdAttributes. pass in double[] for AM, AN and X; Strings for the rest.
      format -
      Returns:
    • RenderSymbolAsMilStdSymbol

      public static MilStdSymbol RenderSymbolAsMilStdSymbol(String id, String name, String description, String symbolCode, String controlPoints, Double scale, String bbox, Map<String,String> symbolModifiers, Map<String,String> symbolAttributes)
      Parameters:
      id -
      name -
      description -
      symbolCode -
      controlPoints -
      scale -
      bbox -
      symbolModifiers -
      symbolAttributes -
      Returns:
    • RenderSymbol2D

      public static String RenderSymbol2D(String id, String name, String description, String symbolCode, String controlPoints, int pixelWidth, int pixelHeight, String bbox, Map<String,String> symbolModifiers, Map<String,String> symbolAttributes, int format)
      Multipoint Rendering on flat 2D maps
      Parameters:
      id - A unique ID for the symbol. only used in KML currently
      name -
      description -
      symbolCode -
      controlPoints -
      pixelWidth - pixel dimensions of the viewable map area
      pixelHeight - pixel dimensions of the viewable map area
      bbox - The viewable area of the map. Passed in the format of a string "lowerLeftX,lowerLeftY,upperRightX,upperRightY." example: "-50.4,23.6,-42.2,24.2"
      symbolModifiers - Modifier with multiple values should be comma delimited
      symbolAttributes -
      format - An enumeration: 0 for KML, 1 for JSON.
      Returns:
      A JSON or KML string representation of the graphic.
    • RenderSymbol2DX

      public static String RenderSymbol2DX(String id, String name, String description, String symbolCode, String controlPoints, int pixelWidth, int pixelHeight, String bbox, Map<String,String> symbolModifiers, Map<String,String> symbolAttributes, ArrayList<ShapeInfo> shapes, ArrayList<ShapeInfo> modifiers, int format)
      Deprecated.
      For Mike Deutch testing
      Parameters:
      id -
      name -
      description -
      symbolCode -
      controlPoints -
      pixelWidth -
      pixelHeight -
      bbox -
      symbolModifiers -
      shapes -
      modifiers -
      format -
      Returns:
    • bitmapToString

      protected static String bitmapToString(Bitmap bitmap)
    • canRenderMultiPoint

      public static String canRenderMultiPoint(String symbolID, Map<String,String> modifiers, int numPoints)