摘要: SELECT R.SHAPE.GET_WKT() FROM ROAD R WHERE R.Objectid=2 阅读全文
posted @ 2022-06-29 13:35 devgis 阅读(130) 评论(0) 推荐(0) 编辑
摘要: public class Startup { [STAThread] public static void Main(string[] args) { SingleInstanceApplicationWrapper wrapper = new SingleInstanceApplicationWr 阅读全文
posted @ 2022-06-29 12:07 devgis 阅读(253) 评论(0) 推荐(0) 编辑
摘要: // Get the XAML content from an external file. DependencyObject rootElement; using (FileStream fs = new FileStream(xamlFile, FileMode.Open)) { rootEle 阅读全文
posted @ 2022-06-29 10:49 devgis 阅读(469) 评论(0) 推荐(0) 编辑
摘要: 1:利用反射实现 1 public static T DeepCopy(T obj) 2 { 3 //如果是字符串或值类型则直接返回 4 if (obj is string || obj.GetType().IsValueType) return obj; 5 6 object retval = A 阅读全文
posted @ 2022-06-28 10:24 devgis 阅读(2917) 评论(0) 推荐(0) 编辑
摘要: C#对象的浅拷贝,深拷贝 C#中有两种类型变量,一种 是值类型变量,一种是引用类型变量,对于值类型变量,深拷贝和前拷贝都是通过赋值操作符号(=)实现,其效果一致,将对象中的值类型的字段拷贝到新的对象中.这个很容易理解。 本文重点讨论引用类型变量的拷贝机制和实现。 C#中引用类型对象的copy操作有两 阅读全文
posted @ 2022-06-28 10:23 devgis 阅读(2967) 评论(0) 推荐(1) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using Autofac; using Autofac.Configuration.Core; namespace AutoF 阅读全文
posted @ 2022-06-28 10:22 devgis 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 一、在学习Messagequeue 类之前,首先介绍一下MSMQ的一些理论上的知识 MSMQ(MicroSoft Message Queue,微软消息队列)官方的解释是:在多个不同的应用之间实现相互通信的一种异步传输模式,相互通信的应用可以分布于同一台机器上,也可以分布于相连的网络空间中的任一位置。 阅读全文
posted @ 2022-06-28 10:20 devgis 阅读(161) 评论(0) 推荐(0) 编辑
摘要: C# 串口通信总结 我们知道对于 标准DLL,可以采用DllImport进行调用。例如: [DllImport("KMY350X.dll")] private static extern int OpenPort(int PortNum, int BaudRate); 如果一些厂家比较懒的话,没有提 阅读全文
posted @ 2022-06-28 10:18 devgis 阅读(1089) 评论(0) 推荐(0) 编辑
摘要: 算法概述: 首先对源图像与要筛选的图像进行直方图数据采集,对采集的各自图像直方图进行归一化再 使用巴氏系数算法对直方图数据进行计算,最终得出图像相似度值,其值范围在[0, 1]之间 0表示极其不同,1表示极其相似(相同)。 算法步骤详解: 大致可以分为两步,根据源图像与候选图像的像素数据,生成各自直 阅读全文
posted @ 2022-06-28 10:17 devgis 阅读(1799) 评论(0) 推荐(0) 编辑
摘要: C# Finalize和Dispose的区别 一:总结 1、Finalize方法(C#中是析构函数,以下称析构函数)是用于释放非托管资源的,而托管资源会由GC自动回收。所以,我们也可以这样来区分 托管和非托管资源。所有会由GC自动回收的资源,就是托管的资源,而不能由GC自动回收的资源,就是非托管资源 阅读全文
posted @ 2022-06-28 10:17 devgis 阅读(248) 评论(0) 推荐(0) 编辑
摘要: OpenLayer的Map Event在Event.js文件的OpenLayers.Events中定义。 1BROWSER_EVENTS: [ 2 "mouseover", //鼠标位于对象或区域上 3 "mouseout", //鼠标移出 4 "mousedown", //鼠标按下 5 "mous 阅读全文
posted @ 2022-06-17 11:23 devgis 阅读(557) 评论(0) 推荐(0) 编辑
摘要: Symbols with WebGL When using symbol styles with WebGL, OpenLayers would render the symbol on a temporary image and would create a WebGL texture for e 阅读全文
posted @ 2022-06-17 11:21 devgis 阅读(403) 评论(0) 推荐(0) 编辑
摘要: Icon Pixel Operations Example using an icon to symbolize a point. Click on the icon to select it, and it will be rendered using its negative image. Re 阅读全文
posted @ 2022-06-17 11:18 devgis 阅读(324) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <title>View Animation</title> <link rel="stylesheet" href="http://openlayers.org/en/v3.13.0/css/ol.css" type="text/css"> 阅读全文
posted @ 2022-06-17 11:16 devgis 阅读(339) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <title>Box Selection</title> <link rel="stylesheet" href="http://openlayers.org/en/v3.13.0/css/ol.css" type="text/css"> 阅读全文
posted @ 2022-06-17 11:16 devgis 阅读(371) 评论(0) 推荐(0) 编辑
摘要: Net 之匿名对象(AnonymousObject) 本文旨在与园有分享我对 .NET 匿名对象的认识,如果存在不足的地方欢迎指出。 前言:最近园子里面大谈程序员基础知识的文章,基础知识的重要性无需多论了。看到大家对基础知识的评论后突然想到这么一个场景。曾经有个同事问我:有一个匿名对象想做为一个函数 阅读全文
posted @ 2022-06-17 11:13 devgis 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 该方法可以处理当前队列的消息,比如一个for循环 5000次 向TextBox中追加文本,那肯定会假死一会儿的。 此时便可使用Application.DoEvents()来处理队列的信息。 简单说下使用Application.DoEvents() 和 不使用Application.DoEvents( 阅读全文
posted @ 2022-06-17 11:01 devgis 阅读(357) 评论(0) 推荐(0) 编辑
摘要: Style、ControlTemplate 和 DataTemplate 都有触发器集合。 属性触发器只检查WPF从属属性,而数据触发器则可检查任何一种可绑定的属性。属性触发器一般用来检查WPF可视元素的属性,而数据触发器则通常用来检查不可视对象的属性。 属性触发器:通过此机制,一个属性的更改会在另 阅读全文
posted @ 2022-06-17 11:00 devgis 阅读(340) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Messaging; namespace MSMQTest { public class TestMe 阅读全文
posted @ 2022-06-17 10:55 devgis 阅读(211) 评论(0) 推荐(0) 编辑
摘要: BinaryReader 类用特定的编码将基元数据类型读作二进制值。命名空间:System.IO;程序集:System.Runtime.dll public class BinaryReader : IDisposable BinaryReader类提供简化从流中读取基元数据类型的方法。 例如,可以 阅读全文
posted @ 2022-06-16 16:19 devgis 阅读(749) 评论(0) 推荐(0) 编辑