| | |
| | | |
| | | // 飞行 |
| | | function flyTo() { |
| | | |
| | | |
| | | const v = { |
| | | var v = { |
| | | z: 0, |
| | | pitch: -8.675049781799316, |
| | | roll: 0, |
| | |
| | | return map.transformWGS84ToLocal(x, y) |
| | | } |
| | | |
| | | |
| | | |
| | | // 切换镜头 |
| | | function setView() { |
| | | const v = { |
| | | var v = { |
| | | x: -567870.625, |
| | | y: -964962.4375, |
| | | z: 0, |
| | |
| | | var area_val = null; |
| | | function createAreaData() { |
| | | if (areaFlag) { |
| | | |
| | | |
| | | var val = [ |
| | | { x: 116.48855493897739, y: 39.81251022857503, z: 4000 }, |
| | | { x: 116.48505493897739, y: 39.81651022857503, z: 4000 }, |
| | |
| | | for (var i in val) { |
| | | var item = transToWGS84ToLocal(val[i].x, val[i].y) |
| | | data.push( |
| | | new TUVector3(item.x, item.y, 0), |
| | | new TUVector3(item.x, item.y, 0) |
| | | ) |
| | | } |
| | | area_val = map.createAreaData({ |
| | |
| | | for (var i in val) { |
| | | var item = transToWGS84ToLocal(val[i].x, val[i].y) |
| | | data.push( |
| | | new TUVector3(item.x, item.y, 0), |
| | | new TUVector3(item.x, item.y, 0) |
| | | ) |
| | | } |
| | | var param = { |
| | |
| | | </div> |
| | | </body> |
| | | |
| | | </html> |
| | | </html> |
| | |
| | | } |
| | | finally |
| | | { |
| | | //if (!string.IsNullOrEmpty(tifFile) && File.Exists(tifFile)) File.Delete(tifFile); |
| | | if (!string.IsNullOrEmpty(tifFile) && File.Exists(tifFile)) File.Delete(tifFile); |
| | | } |
| | | } |
| | | |
| | |
| | | //string batFile = Path.Combine(BatPath, dateStr + ".bat"); |
| | | string tifFile = Path.Combine(Tools.TempDir, ExportUtil.DateStr + ".txt"); |
| | | string xyzPath = Path.Combine(SGUtils.LFData, "2d\\tiles", args.dircode); |
| | | if (args.isNew && Directory.Exists(xyzPath)) Tools.DelPath(xyzPath); |
| | | //if (args.isNew && Directory.Exists(xyzPath)) Tools.DelPath(xyzPath); |
| | | if (!Directory.Exists(xyzPath)) Directory.CreateDirectory(xyzPath); |
| | | |
| | | WriteText(tifFile, list); |