04 2014 档案
摘要:所谓“变量优选”可以理解为通过对自变量组合,使得选择的模型误差最不明显(岭迹分析法、RMSq分析法、Cp准则、AIC准则分析法)。 但是这里我有个疑问:如果采用全模型,让优选因子后的模型和全模型进行比较,那么可靠性的保证就是:全模型和现实情况完全一致,全模型就代表了实际情况,或者说实际情况就可...
阅读全文
摘要:ArcGIS Engine 中的多线程使用原文链接http://anshien.blog.163.com/blog/static/169966308201082441114173/ 一直都想写写AE中多线程的使用,但一直苦于没有时间,终于在中秋假期闲了下来。呵呵,闲话不说了,进入正题! 大家都了...
阅读全文
摘要:1.建立一个Asp.net Web网站,添加新项Web服务MyMath.asmx。编写如下代码: 1 using System; 2 using System.Collections.Generic; 3 using System.Web; 4 using System.Web.Services;
阅读全文
摘要:Openlayers Demo: 1 <html> 2 <head> 3 <title>OpenLayers Example</title> 4 <script src="OpenLayers.js"></script> 5 </head> 6 <body> 7 <style type="text/
阅读全文
摘要:Geotransformation 地理变换The Abridged Molodensky transformation is a three parameter transformation三参 that converts between two geographic coordinate sys...
阅读全文
摘要:1 public static void LoadOnlyModeInsert(IFeatureClass featureClass, List 2 geometryList) 3 { 4 // Cast the feature class to the IFeatureClas...
阅读全文
摘要:GeoServer的项目是一个完整的Java(J2EE)系统,现实了OpenGIS联盟的网络功能服务器规范和网络覆盖服务器规范,并且集成了Web地图服务器。 在大三的时候WebGIS课程中老师讲解过一些,那时候完全听不懂,虽然可以糊弄完成作业。转眼将近5年的时间过去了,让人感慨。这期间一直也没...
阅读全文
摘要:控制器 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace RGeos.FrameWork.MVC 7 { 8 //控制类 9...
阅读全文
摘要:Getting started with MVC# frameworkThe source code of this example can be found under "Examples\Basics\" subfolder of the MVC# framework root folder. ...
阅读全文
摘要:MVC# Overview概述Abstract: This article gives an overview of MVC# - a Model-View-Presenter framework for .NET platform. It firstly explains the MVP patt...
阅读全文
摘要:读取xls文件和xlsx文件创建的版本号。虽然xlsx声明的是向前兼容,但是不知道OleDb是不是也是这样,没有办法所以要读取文件版本,限定只能读取Excel2007保存的文件。 1 using ICSharpCode.SharpZipLib.Zip; 2 3 public const ushor...
阅读全文
摘要:读取shp文件建立二叉树索引的基本思路分析: 1 /// 2 /// Generates a spatial index for a specified shape file. 3 /// 根据特定的shp文件构建空间索引 4 /// 5 ...
阅读全文
摘要:1.首先定义一个处理数据需要产生进度的接口和抽象类 1 namespace Progress.Core 2 { 3 public interface IProgress 4 { 5 IProgressView m_FrmProgress { get; set; } 6 PosscessCompleted mPosscessCompleted { get; set; } 7 Thread mThread { get; } 8 bool IsStop { get; set; } 9 void Start...
阅读全文
摘要:绘制OGIS定义的Polygon 1 public void DrawPolygon(Polygon pol, Brush brush, Pen pen, bool clip) 2 { 3 gc = Graphics.FromHwnd(Handle); 4 if (pol.ExteriorRing == null) 5 return; 6 if (pol.ExteriorRing.Vertices.Count > 2) 7 { 8 ...
阅读全文
摘要:蓝色为地理坐标系XOY,记为坐标系A;黄色为屏幕坐标系xoy,记为坐标系B。地图的左下角点为(X0,Y0)可很容易的平移到坐标原点。因此这里只考虑地图位于坐标原点的情况,如图二也记为坐标系A。设地理坐标系X’OY’中任意一点为A(X1,Y1),对应于屏幕坐标系B中的点A’为a(x1,y1);屏幕坐标以像素为单位,地理坐标以米为单位,两者之间存在固定的比例关系。屏幕高度为H。假设1像素对应1m,此时缩放比例Zoom=1。可以建立简单的关系:(1)如图三,认为两个坐标系固定,首先在屏幕坐标系将所有的地图左下角移动到屏幕中心(W/2,H/2)。平移向量(W/2,-H/2),此时A点屏幕坐标系坐标:(
阅读全文
摘要:1.屏幕坐标以像素为单位,地图坐标通常以米为单位,CAD制图默认以毫米为单位。DPI是“dot per inch”的缩写。顾名思义,就是指在每英寸长度内的点数。通常,我们都使用dpi来作为扫描器和打印机的解析度单位,数值越高表示解析度越高。DPI表示分辨率,指每英寸长度上的点数。一般的PC分辨率为96dpi。1英寸=0.0253999999614米获取分辨率: float dx, dy;Graphics g =this.CreateGraphics();try{ dx = g.DpiX; dy = g.DpiY;}finally{ g.Dispose();}
阅读全文
摘要:OGIS规范定义的几何对象定义Curve:A Curve is a 1-dimensional geometric object usually stored as a sequence of Points, with the subtype of Curve specifying the form...
阅读全文