7 using System.Collections.Generic;
12 public class VisualizeImageLabelsRequest : 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 string table_name {
get;
set; }
28 public string x_column_name {
get;
set; }
29 public string y_column_name {
get;
set; }
30 public string x_offset {
get;
set; } =
"";
31 public string y_offset {
get;
set; } =
"";
32 public string text_string {
get;
set; }
33 public string font {
get;
set; } =
"";
34 public string text_color {
get;
set; } =
"";
35 public string text_angle {
get;
set; } =
"";
36 public string text_scale {
get;
set; } =
"";
37 public string draw_box {
get;
set; } =
"";
38 public string draw_leader {
get;
set; } =
"";
39 public string line_width {
get;
set; } =
"";
40 public string line_color {
get;
set; } =
"";
41 public string fill_color {
get;
set; } =
"";
42 public string leader_x_column_name {
get;
set; } =
"";
43 public string leader_y_column_name {
get;
set; } =
"";
44 public string filter {
get;
set; } =
"";
45 public double min_x {
get;
set; }
46 public double max_x {
get;
set; }
47 public double min_y {
get;
set; }
48 public double max_y {
get;
set; }
49 public int width {
get;
set; }
50 public int height {
get;
set; }
51 public string projection {
get;
set; } = Projection.PLATE_CARREE;
52 public IDictionary<string, string> options {
get;
set; } =
new Dictionary<string, string>();
54 public VisualizeImageLabelsRequest() { }
56 public VisualizeImageLabelsRequest(
string table_name,
71 string leader_x_column_name,
72 string leader_y_column_name,
80 string projection =
null,
81 IDictionary<string, string> options =
null)
83 this.table_name = table_name ??
"";
84 this.x_column_name = x_column_name ??
"";
85 this.y_column_name = y_column_name ??
"";
86 this.x_offset = x_offset ??
"";
87 this.y_offset = y_offset ??
"";
88 this.text_string = text_string ??
"";
89 this.font = font ??
"";
90 this.text_color = text_color ??
"";
91 this.text_angle = text_angle ??
"";
92 this.text_scale = text_scale ??
"";
93 this.draw_box = draw_box ??
"";
94 this.draw_leader = draw_leader ??
"";
95 this.line_width = line_width ??
"";
96 this.line_color = line_color ??
"";
97 this.fill_color = fill_color ??
"";
98 this.leader_x_column_name = leader_x_column_name ??
"";
99 this.leader_y_column_name = leader_y_column_name ??
"";
100 this.filter = filter ??
"";
106 this.height = height;
107 this.projection = projection ?? Projection.PLATE_CARREE;
108 this.options = options ??
new Dictionary<string, string>();
114 public class VisualizeImageLabelsResponse : KineticaData
116 public double width {
get;
set; }
117 public double height {
get;
set; }
118 public long bg_color {
get;
set; }
119 public byte[] image_data {
get;
set; }
120 public IDictionary<string, string> info {
get;
set; } =
new Dictionary<string, string>();