From 76f9e7b13c2c87717f033e5c30de2a4b14348712 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期一, 08 一月 2024 11:08:37 +0800 Subject: [PATCH] 上传GPS图片功能 --- JiangSu/Models/Img.cs | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/JiangSu/Models/Img.cs b/JiangSu/Models/Img.cs index e29ef12..93ea75f 100644 --- a/JiangSu/Models/Img.cs +++ b/JiangSu/Models/Img.cs @@ -9,6 +9,31 @@ { public Img() { } + public Img(string name, string path, string json) + { + this.name = name; + this.path = path; + this.json = json; + } + + public Img(string name, string path, string json, double x, double y, double z) + { + this.name = name; + this.path = path; + this.json = json; + this.x = x; + this.y = y; + this.z = z; + } + + public void SetXYZ(string x, string y, string z) + { + double val = 0; + if (double.TryParse(x, out val)) this.x = val; + if (double.TryParse(y, out val)) this.y = val; + if (double.TryParse(z, out val)) this.z = val; + } + public long id { set; get; } public string name { set; get; } -- Gitblit v1.9.3