摘要:获得版本 print(arcpy.GetInstallInfo()['Version']) https://github.com/esri/arcgis-pro-sdk-community-samples
阅读全文
摘要:我的微信公众号 在VS2010中新建一个像项目,开发工作都接近尾声了,客户要求更换项目的名称,差不多要变更整个解决方案中项目名称,引用等等,这个工作量还是很大的。上网搜索解决方法,还实验了专门的修改项目名称工具,但是最后都是一堆的错误,看着头疼。其实项目名称个人感觉没那么重要,客户要的是程序能够正常
阅读全文
摘要:回顾上次写博客至今都有4个多月了,最近工作比较的忙没时间写博文。以后会多坚持写博文,与大家分享下最近遇到的问题。最近因为项目需要,研究了下用C#开发TTS。下面把大体的思路给大家说说,希望对大家有所帮助。 首先需要了解下MS的SAPI,它是微软的语音API。它包括了语音识别SR引擎和语音合成SS引擎
阅读全文
摘要:来自:https://www.runoob.com/csharp/csharp-multithreading.html 线程 被定义为程序的执行路径。每个线程都定义了一个独特的控制流。如果您的应用程序涉及到复杂的和耗时的操作,那么设置不同的线程执行路径往往是有益的,每个线程执行特定的工作。 线程是轻
阅读全文
摘要:C#多线程的参数传递 用C#创建线程是一件很方便的事,一个Void类型的函数,一句声明就可以创建出自己的线程应用。看下面的例子: public class ThreadController { public ThreadController() { System.Threading.Thread t
阅读全文
摘要:logxing版权所有,转载请注明出处 在群里有人提出了这个题目,就研究了一下。确实是个不错的东东。 混沌加密算法是一个对称加密算法,即加密和解密使用相同的密钥。更特别的,其加密和解密函数也是完全一样的(这个特点可以引出一个优势,就是使用任何密钥对任何数据都可以执行解密而不会报错,这样暴力破解就很难
阅读全文
摘要:public List<string> GetXYFromPic(String jpgPath) { List<string> sXY = new List<string>(); try { //载入图片 Image objImage = Image.FromFile(jpgPath); //取得所
阅读全文
摘要:using (Geodatabase geodatabase = new Geodatabase(connectionProperties)) using (FeatureClass schoolBoundaryFeatureClass = geodatabase.OpenDataset<Featu
阅读全文
摘要:protected async void SetActiveRecord() { #region Set the active record await QueuedTask.Run(async () => { var layers = MapView.Active.Map.GetLayersAsF
阅读全文
摘要:public CustomMapTool() { IsSketchTool = true; SketchType = SketchGeometryType.Rectangle; SketchOutputMode = SketchOutputMode.Map; //A custom cursor fi
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Input; using System.Threading.Tasks; using
阅读全文
摘要:Notification notification = new Notification(); protected override void OnClick() { try { if (Project.Current == null) return; notification.Title = "提
阅读全文
摘要:public void SelectAllFeatureLayersInTOC() { //Get the active map view. var mapView = MapView.Active; if (mapView == null) return; //Zoom to the select
阅读全文
摘要:public void ShowCustomPopup() { //Get the active map view. var mapView = MapView.Active; if (mapView == null) return; //Create custom popup content va
阅读全文
摘要:FrameworkApplication.Close(); FrameworkApplication.Panes.CloseAllPanes();
阅读全文
摘要:public MapTool1() { IsSketchTool = true; SketchType = SketchGeometryType.Line; SketchOutputMode = SketchOutputMode.Map; } protected override Task OnTo
阅读全文
摘要:ArcGIS Pro固定纸张限定比例尺自动调整纵横打印
阅读全文
摘要:var insTbl; await QueuedTask.Run(()=> { using (Geodatabase geodatabase = new Geodatabase(new FileGeodatabaseConnectionPath(new Uri(gPath)))) { using (
阅读全文
摘要:try{ var mapView = MapView.Active; if (mapView != null) { var map = mapView.Map; if (map != null) { foreach (StandaloneTable table in map.StandaloneTa
阅读全文
摘要:protected override async void OnClick(){ using (var progress = new ProgressDialog("Showing Progress", "Canceled", 100, false)) { var status = new Canc
阅读全文