Class MultiPointHandler

java.lang.Object
sec.web.render.MultiPointHandler

public class MultiPointHandler extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • getModififerKML

      public static String getModififerKML(String id, String name, String description, String symbolCode, String controlPoints, Double scale, String bbox, SparseArray symbolModifiers, SparseArray symbolAttributes, int format, int symStd)
    • 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:
    • ShouldClipSymbol

      public static Boolean ShouldClipSymbol(String symbolID, boolean useDashArray, boolean useFillPattern)
      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 -
      useDashArray - default true, some symbols don't need to be clipped if using dash array MilStdAttribute
      useFillPattern - default true, some symbols don't need to be clipped if using fill pattern MilStdAttribute
      Returns:
    • RenderSymbol

      public static String RenderSymbol(String id, String name, String description, String symbolCode, String controlPoints, Double scale, String bbox, SparseArray<String> symbolModifiers, SparseArray<String> symbolAttributes, int format)
      Parameters:
      id -
      name -
      description -
      symbolCode -
      controlPoints -
      scale -
      bbox -
      symbolModifiers -
      symbolAttributes -
      format -
      Returns:
    • RenderSymbol

      public static String RenderSymbol(String id, String name, String description, String symbolCode, String controlPoints, Double scale, String bbox, SparseArray<String> symbolModifiers, SparseArray<String> symbolAttributes, int format, int symStd)
      Parameters:
      id -
      name -
      description -
      symbolCode -
      controlPoints -
      scale -
      bbox -
      symbolModifiers - SparseArray, keyed using constants from ModifiersTG. Pass in comma delimited String for modifiers with multiple values like AM, AN & X
      symbolAttributes - SparseArray, keyed using constants from MilStdAttributes. pass in double[] for AM, AN and X; Strings for the rest.
      format -
      symStd - 0=2525Bch2, 1=2525C
      Returns:
    • RenderSymbolAsMilStdSymbol

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

      public static String RenderSymbol2D(String id, String name, String description, String symbolCode, String controlPoints, int pixelWidth, int pixelHeight, String bbox, SparseArray<String> symbolModifiers, SparseArray<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.
    • RenderSymbol2D

      public static String RenderSymbol2D(String id, String name, String description, String symbolCode, String controlPoints, int pixelWidth, int pixelHeight, String bbox, SparseArray<String> symbolModifiers, SparseArray<String> symbolAttributes, int format, int symStd)
      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.
      symStd - An enumeration: 0 for 2525Bch2, 1 for 2525C.
      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, SparseArray<String> symbolModifiers, SparseArray<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:
    • RenderSymbol2

      public static IPointConversion RenderSymbol2(String symbolCode, String controlPoints, Double scale, String bbox, ArrayList<ShapeInfo> shapes, ArrayList<ShapeInfo> modifiers)
      Deprecated.
      to make sure no one else is using it.
      FOR DEUTCH USE ONLY
      Parameters:
      symbolCode -
      controlPoints -
      scale -
      bbox -
      shapes -
    • bitmapToString

      protected static String bitmapToString(Bitmap bitmap)