7 using System.Collections.Generic;
12 public class VisualizeImageRequest : KineticaData
14 public struct Projection
16 public const string EPSG_4326 =
"EPSG:4326";
17 public const string PLATE_CARREE =
"PLATE_CARREE";
18 public const string _900913 =
"900913";
19 public const string EPSG_900913 =
"EPSG:900913";
20 public const string _102100 =
"102100";
21 public const string EPSG_102100 =
"EPSG:102100";
22 public const string _3857 =
"3857";
23 public const string EPSG_3857 =
"EPSG:3857";
24 public const string WEB_MERCATOR =
"WEB_MERCATOR";
27 public struct StyleOptions
29 public const string DO_POINTS =
"do_points";
30 public const string TRUE =
"true";
31 public const string FALSE =
"false";
32 public const string DO_SHAPES =
"do_shapes";
33 public const string DO_TRACKS =
"do_tracks";
34 public const string DO_SYMBOLOGY =
"do_symbology";
35 public const string POINTCOLORS =
"pointcolors";
36 public const string POINTSIZES =
"pointsizes";
37 public const string POINTOFFSET_X =
"pointoffset_x";
38 public const string POINTOFFSET_Y =
"pointoffset_y";
39 public const string POINTSHAPES =
"pointshapes";
40 public const string NONE =
"none";
41 public const string CIRCLE =
"circle";
42 public const string SQUARE =
"square";
43 public const string DIAMOND =
"diamond";
44 public const string HOLLOWCIRCLE =
"hollowcircle";
45 public const string HOLLOWSQUARE =
"hollowsquare";
46 public const string HOLLOWDIAMOND =
"hollowdiamond";
47 public const string SYMBOLCODE =
"symbolcode";
48 public const string DASH =
"dash";
49 public const string PIPE =
"pipe";
50 public const string PLUS =
"plus";
51 public const string HOLLOWSQUAREWITHPLUS =
"hollowsquarewithplus";
52 public const string DOT =
"dot";
53 public const string SYMBOLROTATIONS =
"symbolrotations";
54 public const string SHAPELINEWIDTHS =
"shapelinewidths";
55 public const string SHAPELINECOLORS =
"shapelinecolors";
56 public const string SHAPELINEPATTERNS =
"shapelinepatterns";
57 public const string SHAPELINEPATTERNLEN =
"shapelinepatternlen";
58 public const string SHAPEFILLCOLORS =
"shapefillcolors";
59 public const string HASHLINEINTERVALS =
"hashlineintervals";
60 public const string HASHLINECOLORS =
"hashlinecolors";
61 public const string HASHLINEANGLES =
"hashlineangles";
62 public const string HASHLINELENS =
"hashlinelens";
63 public const string HASHLINEWIDTHS =
"hashlinewidths";
64 public const string TRACKLINEWIDTHS =
"tracklinewidths";
65 public const string TRACKLINECOLORS =
"tracklinecolors";
66 public const string TRACKMARKERSIZES =
"trackmarkersizes";
67 public const string TRACKMARKERCOLORS =
"trackmarkercolors";
68 public const string TRACKMARKERSHAPES =
"trackmarkershapes";
69 public const string ORIENTED_ARROW =
"oriented_arrow";
70 public const string ORIENTED_TRIANGLE =
"oriented_triangle";
71 public const string TRACKHEADCOLORS =
"trackheadcolors";
72 public const string TRACKHEADSIZES =
"trackheadsizes";
73 public const string TRACKHEADSHAPES =
"trackheadshapes";
78 public const string ALPHA_BLENDING =
"alpha_blending";
79 public const string ANTIALIASING =
"antialiasing";
80 public const string FEATHER =
"feather";
81 public const string ORDER_CLASSES =
"order_classes";
82 public const string ORDER_LAYERS =
"order_layers";
83 public const string POINTCOLOR_ATTR =
"pointcolor_attr";
84 public const string SHAPE_RENDERER =
"shape_renderer";
85 public const string SHAPEFILLCOLOR_ATTR =
"shapefillcolor_attr";
86 public const string TRACK_ID_COLUMN_NAME =
"track_id_column_name";
87 public const string TRACK_ORDER_COLUMN_NAME =
"track_order_column_name";
88 public const string TRACK_SIMPLIFICATION_THRESHOLD =
"track_simplification_threshold";
89 public const string USE_POINT_RENDERER =
"use_point_renderer";
92 public IList<string> table_names {
get;
set; } =
new List<string>();
93 public IList<string> world_table_names {
get;
set; } =
new List<string>();
94 public string x_column_name {
get;
set; }
95 public string y_column_name {
get;
set; }
96 public string symbol_column_name {
get;
set; }
97 public string geometry_column_name {
get;
set; }
98 public IList<IList<string>> track_ids {
get;
set; } =
new List<IList<string>>();
99 public double min_x {
get;
set; }
100 public double max_x {
get;
set; }
101 public double min_y {
get;
set; }
102 public double max_y {
get;
set; }
103 public int width {
get;
set; }
104 public int height {
get;
set; }
105 public string projection {
get;
set; } = Projection.PLATE_CARREE;
106 public long bg_color {
get;
set; }
107 public IDictionary<string, IList<string>> style_options {
get;
set; } =
new Dictionary<string, IList<string>>();
108 public IDictionary<string, string> options {
get;
set; } =
new Dictionary<string, string>();
110 public VisualizeImageRequest() { }
112 public VisualizeImageRequest( IList<string> table_names,
113 IList<string> world_table_names,
114 string x_column_name,
115 string y_column_name,
116 string symbol_column_name,
117 string geometry_column_name,
118 IList<IList<string>> track_ids,
127 IDictionary<
string, IList<string>> style_options,
128 IDictionary<string, string> options =
null)
130 this.table_names = table_names ??
new List<string>();
131 this.world_table_names = world_table_names ??
new List<string>();
132 this.x_column_name = x_column_name ??
"";
133 this.y_column_name = y_column_name ??
"";
134 this.symbol_column_name = symbol_column_name ??
"";
135 this.geometry_column_name = geometry_column_name ??
"";
136 this.track_ids = track_ids ??
new List<IList<string>>();
142 this.height = height;
143 this.projection = projection ?? Projection.PLATE_CARREE;
144 this.bg_color = bg_color;
145 this.style_options = style_options ??
new Dictionary<string, IList<string>>();
146 this.options = options ??
new Dictionary<string, string>();
152 public class VisualizeImageResponse : KineticaData
154 public double width {
get;
set; }
155 public double height {
get;
set; }
156 public long bg_color {
get;
set; }
157 public byte[] image_data {
get;
set; }
158 public IDictionary<string, string> info {
get;
set; } =
new Dictionary<string, string>();