上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 34 下一页
摘要: 1.建立一个Asp.net Web网站,添加新项Web服务MyMath.asmx。编写如下代码: 1 using System; 2 using System.Collections.Generic; 3 using System.Web; 4 using System.Web.Services; 阅读全文
posted @ 2014-04-25 22:15 太一吾鱼水 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 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/ 阅读全文
posted @ 2014-04-23 22:34 太一吾鱼水 阅读(1278) 评论(0) 推荐(0) 编辑
摘要: Geotransformation 地理变换The Abridged Molodensky transformation is a three parameter transformation三参 that converts between two geographic coordinate sys... 阅读全文
posted @ 2014-04-22 22:40 太一吾鱼水 阅读(1476) 评论(0) 推荐(0) 编辑
摘要: 1 public static void LoadOnlyModeInsert(IFeatureClass featureClass, List 2 geometryList) 3 { 4 // Cast the feature class to the IFeatureClas... 阅读全文
posted @ 2014-04-21 18:44 太一吾鱼水 阅读(3840) 评论(0) 推荐(0) 编辑
摘要: GeoServer的项目是一个完整的Java(J2EE)系统,现实了OpenGIS联盟的网络功能服务器规范和网络覆盖服务器规范,并且集成了Web地图服务器。 在大三的时候WebGIS课程中老师讲解过一些,那时候完全听不懂,虽然可以糊弄完成作业。转眼将近5年的时间过去了,让人感慨。这期间一直也没... 阅读全文
posted @ 2014-04-20 22:22 太一吾鱼水 阅读(658) 评论(0) 推荐(0) 编辑
摘要: 控制器 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... 阅读全文
posted @ 2014-04-20 10:25 太一吾鱼水 阅读(209) 评论(0) 推荐(0) 编辑
摘要: Getting started with MVC# frameworkThe source code of this example can be found under "Examples\Basics\" subfolder of the MVC# framework root folder. ... 阅读全文
posted @ 2014-04-19 21:27 太一吾鱼水 阅读(491) 评论(0) 推荐(0) 编辑
摘要: MVC# Overview概述Abstract: This article gives an overview of MVC# - a Model-View-Presenter framework for .NET platform. It firstly explains the MVP patt... 阅读全文
posted @ 2014-04-19 21:25 太一吾鱼水 阅读(573) 评论(0) 推荐(0) 编辑
摘要: 读取xls文件和xlsx文件创建的版本号。虽然xlsx声明的是向前兼容,但是不知道OleDb是不是也是这样,没有办法所以要读取文件版本,限定只能读取Excel2007保存的文件。 1 using ICSharpCode.SharpZipLib.Zip; 2 3 public const ushor... 阅读全文
posted @ 2014-04-15 12:55 太一吾鱼水 阅读(538) 评论(0) 推荐(0) 编辑
摘要: 读取shp文件建立二叉树索引的基本思路分析: 1 /// 2 /// Generates a spatial index for a specified shape file. 3 /// 根据特定的shp文件构建空间索引 4 /// 5 ... 阅读全文
posted @ 2014-04-13 14:48 太一吾鱼水 阅读(685) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2014-04-12 13:16 太一吾鱼水 阅读(404) 评论(0) 推荐(0) 编辑
摘要: 绘制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 ... 阅读全文
posted @ 2014-04-07 22:48 太一吾鱼水 阅读(1204) 评论(0) 推荐(0) 编辑
摘要: 蓝色为地理坐标系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点屏幕坐标系坐标:( 阅读全文
posted @ 2014-04-06 22:30 太一吾鱼水 阅读(668) 评论(0) 推荐(0) 编辑
摘要: 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();} 阅读全文
posted @ 2014-04-05 21:44 太一吾鱼水 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2014-04-01 10:59 太一吾鱼水 阅读(690) 评论(0) 推荐(0) 编辑
摘要: Shape comparison language首先说说我遇到的一个问题:IRelationalOperator.Overlaps方法使用的时候无法查询得到所有的相交对象。看下说明,相交部分包含在每一个对象中而不等有任何一个对象。Two geometries overlap if the region of their intersection is ofthe same dimension as the geometries involved and is not equivalent to either of the geometries. Overlaps is a Clementin 阅读全文
posted @ 2014-03-31 14:38 太一吾鱼水 阅读(402) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2014-03-31 13:11 太一吾鱼水 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 关于如何将地球经纬度坐标系统转换成程序中常用到的平面2D坐标系统,网上的文章很多,参考http://www.cnblogs.com/beniao/archive/2010/04/18/1714544.html(本文图1 图3来自此处).谷歌地图采用的投影方式为“墨卡托投影法”(维基百科网址http://en.wikipedia.org/wiki/Mercator_projection),大概意思就是将地球放在一个圆柱中,让地球赤道和圆柱壁相接触,在地球中心放一盏灯,地球上的图像在圆柱壁上会产生阴影,然后将圆柱壁展开,得到的一张“长方形地图”即为转换之后的平面2D地图,描述很简单,实际展开后.. 阅读全文
posted @ 2014-03-29 21:02 太一吾鱼水 阅读(408) 评论(0) 推荐(0) 编辑
摘要: 1.下载源码 geos-3.4.2.tar.bz2 http://trac.osgeo.org/geos/ proj-4.8.0.zip http://trac.osgeo.org/proj/wiki/WikiStart#Download 启动VS2010 x64兼容命令提示符 2.首先编译GEOS 阅读全文
posted @ 2014-03-29 10:02 太一吾鱼水 阅读(3052) 评论(0) 推荐(0) 编辑
摘要: 问题:WorldWind中是双线程的,一直忽略了多线程中数据共享,修改数据会产生问题。可是在WW中并没有看到锁的东西。还有就是动态释放内存的问题。因为采用D3D的C#封装库不可避免涉及COM对象的释放问题,是否会导致内存溢出的问题。一点分析:在Update方法中,首先判断渲染对象是否初始化成功isInitialized,没有成功就初始化数据,初始化主要负责构建顶点数组和索引数组,以及顶点缓存等,接着就将isInitialized设置为true。虽然执行Update的同时,主线程也在调用Render方法,但是如果isInitialized==false,不会执行渲染的操作。也就是说没有造成初始化 阅读全文
posted @ 2014-03-27 15:19 太一吾鱼水 阅读(241) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 34 下一页