上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 35 下一页
摘要: lib3ds类库 1 /* 2 * The 3D Studio File Format Library 3 * Copyright (C) 1996-2007 by Jan Eric Kyprianidis 4 * All rights reserved. 5 * 6 * ... 阅读全文
posted @ 2014-08-23 17:57 太一吾鱼水 阅读(694) 评论(0) 推荐(0)
摘要: 第一步:新建MFC单文档项目,向导如下:第二步:添加引用,在项目属性的VC++目录中修改Include和lib文件夹。第三步:在stdafx.h文件Include部分的最后添加如下引用。#include "d3d9.h"#pragma comment(lib,"d3d9.lib")#pragma c... 阅读全文
posted @ 2014-08-15 12:55 太一吾鱼水 阅读(757) 评论(1) 推荐(0)
摘要: 最近一直在做影像裁剪的功能:从影像服务器上下载影像(WebMercator投影),服务接口需要传入WGS84坐标的多边形,返回WebMercator影像。客户端需要进行影像的转换成高斯投影(Beijing54为例)认为WGS84地理坐标到北京54高斯投影在存在七参数的情况下是可逆变换。WGS84地理... 阅读全文
posted @ 2014-08-04 16:48 太一吾鱼水 阅读(918) 评论(0) 推荐(0)
摘要: Ogr的销毁DestroyFeature方法:1 void OGRFeature::DestroyFeature( OGRFeature *poFeature )2 {3 delete poFeature;4 }析构函数中删除了几何对象和空间参考定义,ogrfeature.cpp文件中查看:... 阅读全文
posted @ 2014-07-31 11:54 太一吾鱼水 阅读(801) 评论(0) 推荐(0)
摘要: VS2010,新建MFC项目,在头文件stdafx.h中添加:1 #include 2 using namespace Gdiplus;3 #pragma comment (lib,"Gdiplus.lib")定义类的变量 ULONG_PTR gdiplusToken;在BOOL CGDALDes... 阅读全文
posted @ 2014-07-27 18:23 太一吾鱼水 阅读(2708) 评论(0) 推荐(0)
摘要: 一个等高线生成类库,很强大,C#的,不过源码好像不公开,可以直接使用Dll。在气象领域用的比较多。 阅读全文
posted @ 2014-07-27 18:13 太一吾鱼水 阅读(1383) 评论(0) 推荐(0)
摘要: 1 //经纬度转Wev墨卡托 2 dvec3 CMathEngine::lonLat2WebMercator(dvec3 lonLat) 3 { 4 dvec3 mercator; 5 double x = lonLat.x *20037508.34/180; 6 do... 阅读全文
posted @ 2014-07-23 18:55 太一吾鱼水 阅读(6641) 评论(0) 推荐(0)
摘要: C# char 关键字用于声明 .NET framework 使用 Unicode 字符表示 System.Char 结构的实例。 Char 对象的值是 16 位数字 (序号值。)将字符表示为 UTF-16 代码单位。 Unicode 字符在世界上表示大多数书面语言。 类型 范围 大小 .NET F 阅读全文
posted @ 2014-07-21 20:45 太一吾鱼水 阅读(2127) 评论(0) 推荐(0)
摘要: 以下例子中,存储了整数123的记亿体空间不能被删除,因为地址丢失了。这些空间已无法再使用。 1 #include 2 using namespace std; 3 int main() 4 { 5 int *a = new int(123); 6 cout 2 #include... 阅读全文
posted @ 2014-07-20 14:03 太一吾鱼水 阅读(709) 评论(0) 推荐(0)
摘要: 在StartUp项目中,SharpDevelopMain类的Main函数。 阅读全文
posted @ 2014-07-16 21:58 太一吾鱼水 阅读(243) 评论(2) 推荐(0)
摘要: 方式一在Idle方法中更新 1 void OnApplicationIdle(object sender, EventArgs e) 2 { 3 // Use the Idle event to update the status of menu and to... 阅读全文
posted @ 2014-07-16 21:49 太一吾鱼水 阅读(412) 评论(0) 推荐(0)
摘要: http://blog.sina.com.cn/s/blog_4c9fa4dd0101il1v.html在工作中会遇到打开一张图纸时出现“图形文件无效”的提示,大部都是因为用低版本软件打开了高版本的图纸。而又如何真正确认该文件是用哪个版本创建的,以下教大家一个辨别的方法。正常的DWG文件可以通过记事... 阅读全文
posted @ 2014-07-15 13:23 太一吾鱼水 阅读(814) 评论(0) 推荐(0)
摘要: 服务器端:1.新建一个Asp.net空网站RGImageServer。2.新建一个WebService项目ImageService,项目新增文件ImageService.asmx,添加方法GetTile()。 1 using System; 2 using System.Collections.Ge... 阅读全文
posted @ 2014-07-02 19:44 太一吾鱼水 阅读(562) 评论(0) 推荐(0)
摘要: Glossary of view transformationsThe following terms are used to define view orientation, i.e. transformation from World Coordinates (WC) to the View R... 阅读全文
posted @ 2014-06-26 12:49 太一吾鱼水 阅读(219) 评论(0) 推荐(0)
摘要: QtCreator新建一个Qt Application,命名为ImageView在项目文件夹下添加gdal库,统一放在ImageView\gdal目录下。右键单击项目,选择添加库命令,添加gdal_i.lib和头文件路径,完成后可以再ImageView.pro文件中查看:win32: LIBS +=... 阅读全文
posted @ 2014-06-24 19:58 太一吾鱼水 阅读(787) 评论(0) 推荐(1)
摘要: http://dev.yesky.com/147/2356147_3.shtml对于一个c/c++程序员来说,内存泄漏是一个常见的也是令人头疼的问题。已经有许多技术被研究出来以应对这个问题,比如Smart Pointer,Garbage Collection等。Smart Pointer技术比较成熟... 阅读全文
posted @ 2014-06-22 18:31 太一吾鱼水 阅读(217) 评论(0) 推荐(0)
摘要: SharpMap真的很强大,这里通过改造GdalRasterLayer类实现了在RGeos项目中支持栅格图像的读取和显示,同时支持影像的无级缩放。GdalRasterLayer通过读取FWTools环境变量找到下面对应的GDAL类库。这里直接采用GDAL1.9的.net 32封送类库实现。不过好像不... 阅读全文
posted @ 2014-06-17 23:11 太一吾鱼水 阅读(437) 评论(0) 推荐(0)
摘要: public void Draw (IGeometry Geometry);public void QueryBoundary (int hDC,ITransformation displayTransform,IGeometry Geometry,IPolygon boundary);Valid ... 阅读全文
posted @ 2014-06-01 13:11 太一吾鱼水 阅读(378) 评论(0) 推荐(0)
摘要: IDisplayTransformationBoundsFull extent in world coordinates.The Bounds property controls the full extent of the display. IActiveView::FullExtent real... 阅读全文
posted @ 2014-05-07 22:51 太一吾鱼水 阅读(584) 评论(0) 推荐(0)
摘要: 计算公式:分辨率=360/POWER(2,Level-1)*3600*30.92208/Pixcel 最低级瓦块大小pixel 256 512 512 影像等级 Web墨卡托 BING地图 影像等级 WGS84 1 156543.03 78271.515 -4 7827.1515 2 78271.5 阅读全文
posted @ 2014-04-30 13:25 太一吾鱼水 阅读(49) 评论(0) 推荐(0)
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 35 下一页