7 using System.Collections.Generic;
12 public class VisualizeImageClassbreakRequest : 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 CB_POINTALPHAS =
"cb_pointalphas";
37 public const string POINTSIZES =
"pointsizes";
38 public const string POINTOFFSET_X =
"pointoffset_x";
39 public const string POINTOFFSET_Y =
"pointoffset_y";
40 public const string POINTSHAPES =
"pointshapes";
41 public const string NONE =
"none";
42 public const string CIRCLE =
"circle";
43 public const string SQUARE =
"square";
44 public const string DIAMOND =
"diamond";
45 public const string HOLLOWCIRCLE =
"hollowcircle";
46 public const string HOLLOWSQUARE =
"hollowsquare";
47 public const string HOLLOWDIAMOND =
"hollowdiamond";
48 public const string SYMBOLCODE =
"symbolcode";
49 public const string DASH =
"dash";
50 public const string PIPE =
"pipe";
51 public const string PLUS =
"plus";
52 public const string HOLLOWSQUAREWITHPLUS =
"hollowsquarewithplus";
53 public const string DOT =
"dot";
54 public const string SYMBOLROTATIONS =
"symbolrotations";
55 public const string SHAPELINEWIDTHS =
"shapelinewidths";
56 public const string SHAPELINECOLORS =
"shapelinecolors";
57 public const string SHAPELINEPATTERNS =
"shapelinepatterns";
58 public const string SHAPELINEPATTERNLEN =
"shapelinepatternlen";
59 public const string SHAPEFILLCOLORS =
"shapefillcolors";
60 public const string HASHLINEINTERVALS =
"hashlineintervals";
61 public const string HASHLINECOLORS =
"hashlinecolors";
62 public const string HASHLINEANGLES =
"hashlineangles";
63 public const string HASHLINELENS =
"hashlinelens";
64 public const string HASHLINEWIDTHS =
"hashlinewidths";
65 public const string TRACKLINEWIDTHS =
"tracklinewidths";
66 public const string TRACKLINECOLORS =
"tracklinecolors";
67 public const string TRACKMARKERSIZES =
"trackmarkersizes";
68 public const string TRACKMARKERCOLORS =
"trackmarkercolors";
69 public const string TRACKMARKERSHAPES =
"trackmarkershapes";
70 public const string ORIENTED_ARROW =
"oriented_arrow";
71 public const string ORIENTED_TRIANGLE =
"oriented_triangle";
72 public const string TRACKHEADCOLORS =
"trackheadcolors";
73 public const string TRACKHEADSIZES =
"trackheadsizes";
74 public const string TRACKHEADSHAPES =
"trackheadshapes";
79 public const string ALPHA_BLENDING =
"alpha_blending";
80 public const string ANTIALIASING =
"antialiasing";
81 public const string FEATHER =
"feather";
82 public const string ORDER_CLASSES =
"order_classes";
83 public const string SHAPE_RENDERER =
"shape_renderer";
84 public const string TRACK_ID_COLUMN_NAME =
"track_id_column_name";
85 public const string TRACK_ORDER_COLUMN_NAME =
"track_order_column_name";
86 public const string TRACK_SIMPLIFICATION_THRESHOLD =
"track_simplification_threshold";
87 public const string USE_POINT_RENDERER =
"use_point_renderer";
90 public IList<string> table_names {
get;
set; } =
new List<string>();
91 public IList<string> world_table_names {
get;
set; } =
new List<string>();
92 public string x_column_name {
get;
set; }
93 public string y_column_name {
get;
set; }
94 public string symbol_column_name {
get;
set; }
95 public string geometry_column_name {
get;
set; }
96 public IList<IList<string>> track_ids {
get;
set; } =
new List<IList<string>>();
97 public string cb_attr {
get;
set; }
98 public IList<string> cb_vals {
get;
set; } =
new List<string>();
99 public string cb_pointcolor_attr {
get;
set; }
100 public IList<string> cb_pointcolor_vals {
get;
set; } =
new List<string>();
101 public string cb_pointalpha_attr {
get;
set; }
102 public IList<string> cb_pointalpha_vals {
get;
set; } =
new List<string>();
103 public string cb_pointsize_attr {
get;
set; }
104 public IList<string> cb_pointsize_vals {
get;
set; } =
new List<string>();
105 public string cb_pointshape_attr {
get;
set; }
106 public IList<string> cb_pointshape_vals {
get;
set; } =
new List<string>();
107 public double min_x {
get;
set; }
108 public double max_x {
get;
set; }
109 public double min_y {
get;
set; }
110 public double max_y {
get;
set; }
111 public int width {
get;
set; }
112 public int height {
get;
set; }
113 public string projection {
get;
set; } = Projection.PLATE_CARREE;
114 public long bg_color {
get;
set; }
115 public IDictionary<string, IList<string>> style_options {
get;
set; } =
new Dictionary<string, IList<string>>();
116 public IDictionary<string, string> options {
get;
set; } =
new Dictionary<string, string>();
117 public IList<int> cb_transparency_vec {
get;
set; } =
new List<int>();
119 public VisualizeImageClassbreakRequest() { }
121 public VisualizeImageClassbreakRequest( IList<string> table_names,
122 IList<string> world_table_names,
123 string x_column_name,
124 string y_column_name,
125 string symbol_column_name,
126 string geometry_column_name,
127 IList<IList<string>> track_ids,
129 IList<string> cb_vals,
130 string cb_pointcolor_attr,
131 IList<string> cb_pointcolor_vals,
132 string cb_pointalpha_attr,
133 IList<string> cb_pointalpha_vals,
134 string cb_pointsize_attr,
135 IList<string> cb_pointsize_vals,
136 string cb_pointshape_attr,
137 IList<string> cb_pointshape_vals,
146 IDictionary<
string, IList<string>> style_options,
147 IDictionary<string, string> options,
148 IList<int> cb_transparency_vec)
150 this.table_names = table_names ??
new List<string>();
151 this.world_table_names = world_table_names ??
new List<string>();
152 this.x_column_name = x_column_name ??
"";
153 this.y_column_name = y_column_name ??
"";
154 this.symbol_column_name = symbol_column_name ??
"";
155 this.geometry_column_name = geometry_column_name ??
"";
156 this.track_ids = track_ids ??
new List<IList<string>>();
157 this.cb_attr = cb_attr ??
"";
158 this.cb_vals = cb_vals ??
new List<string>();
159 this.cb_pointcolor_attr = cb_pointcolor_attr ??
"";
160 this.cb_pointcolor_vals = cb_pointcolor_vals ??
new List<string>();
161 this.cb_pointalpha_attr = cb_pointalpha_attr ??
"";
162 this.cb_pointalpha_vals = cb_pointalpha_vals ??
new List<string>();
163 this.cb_pointsize_attr = cb_pointsize_attr ??
"";
164 this.cb_pointsize_vals = cb_pointsize_vals ??
new List<string>();
165 this.cb_pointshape_attr = cb_pointshape_attr ??
"";
166 this.cb_pointshape_vals = cb_pointshape_vals ??
new List<string>();
172 this.height = height;
173 this.projection = projection ?? Projection.PLATE_CARREE;
174 this.bg_color = bg_color;
175 this.style_options = style_options ??
new Dictionary<string, IList<string>>();
176 this.options = options ??
new Dictionary<string, string>();
177 this.cb_transparency_vec = cb_transparency_vec ??
new List<int>();
183 public class VisualizeImageClassbreakResponse : KineticaData
185 public double width {
get;
set; }
186 public double height {
get;
set; }
187 public long bg_color {
get;
set; }
188 public byte[] image_data {
get;
set; }
189 public IDictionary<string, string> info {
get;
set; } =
new Dictionary<string, string>();