Package armyc2.c5isr.web.render
Class MultiPointHandler
java.lang.Object
armyc2.c5isr.web.render.MultiPointHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static String
bitmapToString
(Bitmap bitmap) static String
canRenderMultiPoint
(String symbolID, Map<String, String> modifiers, int numPoints) protected static Point2D
GE recognizes coordinates in the range of -180 to +180static void
NormalizeGECoordsToGEExtents
(double leftLongitude, double rightLongitude, ArrayList<Point2D> pts2d) GE has the unusual distinction of being an application with coordinates outside its own extents.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) 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 mapsstatic 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.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) 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.
-
Constructor Details
-
MultiPointHandler
public MultiPointHandler()
-
-
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
GE recognizes coordinates in the range of -180 to +180- Parameters:
pt2d
-- Returns:
-
ShouldClipSymbol
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 renderingname
- - For the client to track the symbol, not related to renderingdescription
- - For the client to track the symbol, not related to renderingsymbolCode
-controlPoints
-scale
-bbox
-symbolModifiers
- keyed using constants from Modifiers. Pass in comma delimited String for modifiers with multiple values like AM, AN & XsymbolAttributes
- 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 currentlyname
-description
-symbolCode
-controlPoints
-pixelWidth
- pixel dimensions of the viewable map areapixelHeight
- pixel dimensions of the viewable map areabbox
- 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 delimitedsymbolAttributes
-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
-
canRenderMultiPoint
-