Time of Update: 2018-12-07
using System.Windows.Forms;AxHostConverterCode highlighting produced by Actipro CodeHighlighter
Time of Update: 2018-12-07
基於AE的個人地理資料庫(mdb格式)匯入到企業級資料庫(sde資料庫中,採用Oracle資料庫)中(C#).個人地理資料庫有資料集,匯入到企業級資料庫後沒有資料集,只有要素類。private void btnPGD2EGD_Click(object sender, EventArgs e) { try { string pWorkspaceName = strName;
Time of Update: 2018-12-07
//C#private void axMapControl1_OnMouseDown(object sender, IMapControlEvents2_OnMouseDownEvent e){if (e.button == 2){IRubberBand rubberband = new RubberCircleClass();IGeometry geometry = rubberband.TrackNew(this.axMapControl1.ActiveView.ScreenDisplay,
Time of Update: 2018-12-07
IFeatureLayer pFLayer = mapMain.get_Layer(0) as IFeatureLayer; IFeatureClass pFC = pFLayer.FeatureClass; //類型不對停止編輯 if (pFC.ShapeType != ESRI.ArcGIS.Geometry.esriGeometryType.esriGeometryPoint) { return;
Time of Update: 2018-12-07
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->/// <summary> /// 列印輸出.該功能目前測試只適用於JPEG,BMP.格式 /// </summary> /// <param name="pExport"></param> ///
Time of Update: 2018-12-07
在AE開發過程,總是要將某些對象暫時儲存起來,像element,layer,map,symbol 等等. ArcEngine提供了序列化對象的方法來儲存這些資訊, 所有能序列化的對象都支援IPersistStream 介面(詳查幫組文檔) .此外IXMLStream 也是比較重要的介面.具體請查看協助文檔. 本文參考了wall 大牛的技術文檔,並受到啟發.相關地址:
Time of Update: 2018-12-07
本文旨在與各位朋友們分享我是如何在項目中用C# “ps圖片” 為網站產生同比例微縮圖的解決方案。如有不足之處歡迎您指出。 一、技術概述: 1.Ajax無重新整理上傳圖片,詳情請閱我的這篇文章。(jquery + c# ashx) 2.C#位元影像處理 System.Drawing。 3.最新demo支援IE7,IE8,FireFox。 二、微縮圖處理方法:
Time of Update: 2018-12-07
SOCKET:Socket介面介於應用程式與硬體之間。對Socket的理解可以簡化為:它是封裝了資料流(Stream)的從機器到機器的一條軟接線,通過這條軟接線,並藉助於線兩端的收發程式,網路上的機器間實現了資訊的交流與互連。分離在軟線兩端的應用程式(伺服器端程式和用戶端程式)可以通過調用Socket介面來開發具有TCP/IP網路功能的程式應用。作為用戶端,即要知道服務程式所在房間的房間號(IP地址),又要知道後門的位置(連接埠)。這樣才能正確地進入房間。 數據編發:軟線建立完成後,還必須有資
Time of Update: 2018-12-07
在 C 語言中, char 類型永遠都是一個位元組, 雙位元組字元類型是 wchar_t;但它不是內建類型, 定義在 stddef.h.給 wchar_t 類型的字元或字元數組(也就是字串)賦值要冠以 L;格式化輸出(如 printf) wchar_t 類型的字串, 要用 %S(而非 %s) 標識.#include <stdio.h>#include <stddef.h>int main(void){ wchar_t wc = L'A'; wchar_t
Time of Update: 2018-12-07
1. while 迴圈:#include <stdio.h>int main(void){ int i=0; while (i2. do while 迴圈:#include <stdio.h>int main(void){ int i=0; do { i++; printf("%d\n", i); } while (i3. while 與 do while
Time of Update: 2018-12-07
1. 常規:#include <stdio.h>int main(void){ int i; for (i = 0; i #include <stdio.h>int main(void){ int i; for (i = 0; i 4) printf("%d\n", i); else printf("*\n"); } getchar(); return 0;}2.
Time of Update: 2018-12-07
擷取類型大小的變數最好不是 int 類型, 而是 size_t 類型;size_t 在 stdio.h、stddef.h 都有定義.1. 擷取已知類型的大小:#include <stdio.h>#include <stddef.h>int main(void){ char n = 2; size_t size; size = sizeof(char); printf("%*u: char\n", n,size); size = sizeof(
Time of Update: 2018-12-07
曾經對 float num = 3.14f; 這樣的賦值非常疑惑, 其實現在也不明白.既然說明了是 float 類型, 又何必在 3.14 後面掛個 f 呢?書上說: int num = 100; 一個整數常量將預設為 int 類型(除非常數有尾碼或超出了 int 的範圍)double num = 3.14; 一個浮點數常量將預設為 double 類型並要求:long num = 100L;long long num =
Time of Update: 2018-12-07
1. 常規:#include <stdio.h>int main(void){ int i; for (i = 0; i 2. 省略 default:#include <stdio.h>int main(void){ int i; for (i = 0; i 3. 相同結果:#include <stdio.h>int main(void){ int i; for (i = 0; i 4. 用於字元:#include <
Time of Update: 2018-12-07
1. 運算結果超出類型大小:#include <stdio.h>#include <limits.h>int main(void){ short s1 = SHRT_MAX; short s2 = SHRT_MAX; short num1; int num2; /* 不會是期望的值 */ num1 = s1 + s2; printf("%d\n", num1); /* 這樣可以了 */ num2 = s1 + s2;
Time of Update: 2018-12-07
1. printf 枚舉可顯示枚舉的序號:#include <stdio.h>int main(void){ enum ABC{AAA,BBB,CCC}; enum ABC e1,e2,e3; e1 = AAA; e2 = BBB; e3 = CCC; printf("%d, %d, %d\n", e1, e2, e3); getchar(); return 0;}2. 定義枚舉時可同時定義變數:#include
Time of Update: 2018-12-07
\n //換行\r //斷行符號\b //退格\f //換頁\t //水平定位字元\v //垂直定位字元\a //響聲\" //雙引號\' //單引號\x?? //用小寫 x 和兩位元字(十六進位數)表示一個字元 \??? //用三位元字(八進位)表示一個字元例1:#include <stdio.h>int main(void){ printf("\"C++Builder\" 2009\n"); printf("\
Time of Update: 2018-12-07
C 語言資料類型: 基本類型、構造類型、指標類型、空類型.基本類型又包括: 整型、字元、浮點(單精確度、雙精確度)、枚舉.構造類型又包括: 數組、結構體、公用體.1. 顯示整型(int)的最小、最大值:#include <stdio.h>#include <limits.h>int main(void){ int n1,n2; n1 = INT_MIN; n2 = INT_MAX; printf("%d .. %d", n1,n2);
Time of Update: 2018-12-07
1. 數組的標誌是 []:#include <stdio.h>int main(void){ int nums[3]; nums[0] = 11; nums[1] = 22; nums[2] = 33; printf("%d, %d, %d", nums[0], nums[1], nums[2]); getchar(); return 0;}2. 數組的大小和維數:#include <stdio.h>int
Time of Update: 2018-12-07
整型 int 可添加 short 和 long:short int: 簡為 short;long int: 簡為 long;long long int: 簡為 long long它們都可以再添加 unsigned:unsigned int: 簡為 unsignedunsigned short int: 簡為 unsigned shortunsigned long int: 簡為 unsigned longunsigned long