- 博客(24)
- 资源 (7)
- 收藏
- 关注
原创 【SAS Planet 下载地图瓦片-读取】
获取瓦片接口:"http://localhost:2022/getCacheTiles/Google_Sat_RU_SD/{z}/{x}/{y}"String Str="瓦片信息 level:"+level+", x:"+x+", y="+y;//地图下载(SAS.Planet) 下载的瓦片存储在sqlitedb文件里 路径规则 规则计算。@Api(value="读取sqlite文件瓦片",tags={"读取sqlite文件瓦片"})// 将十进制数转换为二进制字符串再右移后还原成十进制数。
2023-11-26 15:16:40
1228
原创 经纬度坐标二维数组检验正则表达式
经度0-180(不限小数位) 正则表达式 ^(([1-9]\d?)|(1[0-7]\d))(\.\d{1,6})|180|0(\.[1-9]\d*)?纬度0-90(不限小数位) 正则表达式 ^(([1-8]\d?)|([1-8]\d))(\.[1-9]\d*)|90|0(\.[1-9]\d*)?经纬度坐标二维数组校验(不限小数位,检验时二维数组末尾“]”换成“,]”)检验...
2019-06-25 10:34:06
893
原创 H5的FileReader读取shp文件
<!DOCTYPE html><html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="X-UA-Compatible" content...
2019-06-19 19:07:51
1170
原创 HttpWebRequest 请求PDF文件,并下载到本地
private void OutPDFStream(HttpContext context, string sPDF_Url) { HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create(sPDF_Url); req.Method = "GET"; using (WebRe
2016-04-23 18:46:55
3798
1
原创 Python学习笔记(2)- Window 平台安装 Python
Window 平台安装 Python:以下为在 Window 平台上安装 Python 的简单步骤:打开WEB浏览器访问http://www.python.org/download/在下载列表中选择Window平台安装包,包格式为:python-XYZ.msi 文件 , XYZ 为你要安装的版本号。要使用安装程序 python-XYZ.msi, Window
2016-03-16 21:48:14
544
原创 Python 学习笔记(1)-简介
Python Python 是一个高层次的结合了解释性、编译性、互动性和面向对象的脚本语言。Python 的设计具有很强的可读性,相比其他语言经常使用英文关键字,其他语言的一些标点符号,它具有比其他语言更有特色语法结构。Python 是一种解释型语言: 这意味着开发过程中没有了编译这个环节。类似于PHP和Perl语言。Python 是交互式语言: 这意味着,您可
2016-03-16 21:39:16
567
原创 COM组件中字符串问题
STDMETHODIMP CATLCOM:: ComAppend( BSTR inStrIP,int port,BSTR password,BSTR* outValuse){std::ofstream outfile;outfile.open("log.txt"); if(outfile.is_open()) { outfile outf
2015-11-01 13:00:17
1012
原创 windows窗体实例(C++)
/*头文件*/#include #include /************************************功能:windows窗体实例*winMain************************************//*全局变量*/HINSTANCE hinst;/*函数声明*/int WINAPI WinMain(HI
2015-01-22 13:30:29
1903
原创 完全退出WinForm程序
C# WinForm程序完全退出的问题解决,需要的朋友可以参考一下1.this.Close(); 只是关闭当前窗口,若不是主窗体的话,是无法退出程序的,另外若有托管线程(非主线程),也无法干净地退出;2.Application.Exit(); 强制所有消息中止,退出所有的窗体,但是若有托管线程(非主线程),也无法干净地退出;3.Application.ExitThread();
2014-07-08 09:11:34
764
原创 创建shp文件
// 创建shp (专三个参数,输出路径,shp文件名称,shp文件类型) public static void CreateShpFeatureFiles( string shpfolder, string shpname, esriGeometryType pesriGeometryType) { IWorkspac
2014-06-27 18:28:27
1363
原创 AE+C# 给图层添加字段
public void ShpAddField(int layerindex, string fieldname, int filedtypeindex) { //获取要素图层与要素类 IFeatureLayer pFeatureLayer = (IFeatureLayer)pAxMapControl.get_Layer
2014-06-27 18:10:24
2550
原创 AE+C# 向axPageLayoutControl1添加图例
//Get the GraphicsContainer IGraphicsContainer graphicsContainer = axPageLayoutControl1.GraphicsContainer; //Get the MapFrame IMapFrame mapFrame = (IMapFrame)g
2014-06-05 17:34:30
3100
原创 AE+C# 向AxPageLayoutControl添加自定义标注
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using ES
2014-06-05 17:28:30
2922
原创 AE+C#多个相同类型的图层联合
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using ES
2014-05-29 18:02:41
1643
原创 AE+C# 导出图片(BMP、JPEG、GIF、PNG、TIFF)
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using ES
2014-05-29 17:53:51
4045
原创 AE+C# GP批量裁剪
private void buttonCilp_Click(object sender, EventArgs e) { DoWork(); } private void DoWork() { string Unit= comboBoxUnit.SelectedItem
2014-05-27 13:43:12
1625
原创 多参多线程
#region 第二种方式:执行带多个参数的多线程 Thread mythread2 = new Thread(() => CalculateThree(500, 0)); mythread2.IsBackground = true; mythread2.Start(); #endregi
2014-05-27 13:38:56
549
原创 给已经有数据的表动态添加一列并赋值一个相同的值
给已经有数据的表动态添加一列并赋值 public DataTable AddFristRow(DataTable dt, string ColumnName, int number, int column, string RowsValue) { dt.Columns.Add(ColumnName);//新加列的名子
2014-01-21 15:00:41
2747
原创 解决此表已属于dataset的方法
//用DataSet.Tables.Add(DataTable)向DataSet中添加table会出现如题的错,为避免此异常,手动为表添加一下名称就可避免,方法如下 public System.Data.DataTable GetTable(System.Data.DataTable Dt, string tablename) {
2014-01-21 14:41:50
873
原创 合并结构相同的表的方法
//合并结构相同的表的方法 public DataTable GetAllDataTable(DataSet ds) { DataTable newDataTable = ds.Tables[0].Clone(); //创建新表 克隆以有表的架构。 object[] objArray = new object[
2014-01-21 14:32:48
682
原创 DEV 控件 GridControl 中合并一列中值相等但是不相邻的单元格
gView.Columns[0].OptionsColumn.AllowMerge = DevExpress.Utils.DefaultBoolean.true; gView.BeginDataUpdate(); try {
2014-01-21 14:11:29
1066
原创 Dev二维表头
拖一个dev控件GridControl到窗体上,点击Click here to change view >Create new view > BandedGridView 创建一个绑定视图 写一个类绑定数据源的类如下。using System;using System.Data;using System.Drawing;using System.Text;u
2013-12-18 18:12:21
939
原创 VS 自带DLL注册工具注册Dll
点击 开始\所有程序\Microsoft Visual Studio 2008\Visual Studio Tools 以管理员身份运行Visual Studio 2008 Command Prompt。//注册Dll在Visual Studio 2008 Command Prompt 键入 E:\>regasm mydll.dll . eg:E:\>regasm E:\Assig
2013-12-12 09:11:48
2400
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人