91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 7.26MB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2023-10-19
  • 語言: C#
  • 標簽: ArcEngine??

資源簡介

ArcGISEngine+C#基本功能很全的代碼,對于GIS二次開發的人來說,有很好的幫助

資源截圖

代碼片段和文件信息

using?System;
using?System.Windows.Forms;
using?ESRI.ArcGIS.Carto;
using?ESRI.ArcGIS.Display;
using?ESRI.ArcGIS.esriSystem;
using?ESRI.ArcGIS.Geometry;
using?ESRI.ArcGIS.Output;

namespace?MapOperation
{
????public?class?ExportMap
????{
????????public?static?void?ExportView(IActiveView?view?IGeometry?pGeo?int?OutputResolutionint?Width?int?Height?string?ExpPath?bool?bRegion)
????????{
????????????IExport?pExport?=?null;
????????????tagRECT?exportRect?=?new?tagRECT();
????????????IEnvelope?pEnvelope?=?pGeo.Envelope;
????????????string?sType?=?System.IO.Path.GetExtension(ExpPath);
????????????switch?(sType)
????????????{
????????????????case?“.jpg“:
????????????????????pExport?=?new?ExportJPEGClass();
????????????????????break;
????????????????case?“.bmp“:
????????????????????pExport?=?new?ExportBMPClass();
????????????????????break;
????????????????case?“.gif“:
????????????????????pExport?=?new?ExportGIFClass();
????????????????????break;
????????????????case?“.tif“:
????????????????????pExport?=?new?ExportTIFFClass();
????????????????????break;
????????????????case?“.png“:
????????????????????pExport?=?new?ExportPNGClass();
????????????????????break;
????????????????case?“.pdf“:
????????????????????pExport?=?new?ExportPDFClass();
????????????????????break;
????????????????default:
????????????????????MessageBox.Show(“沒有輸出格式,默認到JPEG格式“);
????????????????????pExport?=?new?ExportJPEGClass();
????????????????????break;
????????????}?
????????????pExport.ExportFileName?=?ExpPath;

????????????exportRect.left?=?0;?exportRect.top?=?0;
????????????exportRect.right?=?Width;
????????????exportRect.bottom?=?Height;
????????????if?(bRegion)
????????????{
????????????????view.GraphicsContainer.DeleteAllElements();
????????????????view.Refresh();
????????????}
????????????IEnvelope?envelope?=?new?EnvelopeClass();
????????????envelope.PutCoords((double)exportRect.left?(double)exportRect.top?(double)exportRect.right?(double)exportRect.bottom);
????????????pExport.PixelBounds?=?envelope;
????????????view.Output(pExport.StartExporting()?OutputResolution?ref?exportRect?pEnvelope?null);
????????????pExport.FinishExporting();
????????????pExport.Cleanup();
????????}

????????///?
????????///?全域導出
????????///?

????????///?輸出分辨率
????????///?輸出路徑
????????///?視圖
????????public?static?void?ExportActiveView(int?OutputResolution?string?ExpPath?IActiveView?view)
????????{
????????????IExport?pExport?=?null;
????????????tagRECT?exportRect;
????????????IEnvelope?envelope2?=?view.Extent;
????????????int?num?=?(int)Math.Round(view.ScreenDisplay.DisplayTransformation.Resolution);
????????????string?sType?=?System.IO.Path.GetExtension(ExpPath);
????????????switch?(sType)
????????????{
????????????????case?“.jpg“:
????????????????????pExport?=?new?ExportJPEGClass();
????????????

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2016-12-02?15:22??代碼\
?????目錄???????????0??2016-12-02?15:22??代碼\Data\
?????目錄???????????0??2016-12-02?15:22??代碼\Data\CAD數據\
?????文件??????150732??2012-07-12?10:21??代碼\Data\CAD數據\20104176.dwg
?????文件?????1086720??2013-12-27?15:01??代碼\Data\CAD數據\hfut.dwg
?????目錄???????????0??2016-12-02?15:22??代碼\Data\CAD數據\info\
?????文件????????1520??2016-04-17?09:57??代碼\Data\CAD數據\info\arc.dir
?????文件??????213779??2012-02-24?16:06??代碼\Data\CAD數據\MillerRanch.dwg
?????目錄???????????0??2016-12-02?15:22??代碼\Data\Mxd文件\
?????目錄???????????0??2016-12-02?15:22??代碼\Data\Mxd文件\HuanbaoGeodatabase.gdb\
?????文件???????16728??2015-02-06?16:50??代碼\Data\Mxd文件\HuanbaoGeodatabase.gdb\a00000001.freelist
?????文件?????????191??2014-08-27?11:25??代碼\Data\Mxd文件\HuanbaoGeodatabase.gdb\a00000001.gdbindexes
?????文件????????5437??2015-02-06?16:50??代碼\Data\Mxd文件\HuanbaoGeodatabase.gdb\a00000001.gdbtable
?????文件????????5152??2015-02-06?16:50??代碼\Data\Mxd文件\HuanbaoGeodatabase.gdb\a00000001.gdbtablx
?????文件?????????920??2014-08-27?11:25??代碼\Data\Mxd文件\HuanbaoGeodatabase.gdb\a00000002.gdbtable
?????文件????????5152??2014-08-27?11:25??代碼\Data\Mxd文件\HuanbaoGeodatabase.gdb\a00000002.gdbtablx
?????文件?????????191??2014-08-27?11:25??代碼\Data\Mxd文件\HuanbaoGeodatabase.gdb\a00000003.gdbindexes
?????文件????????4174??2014-08-27?11:25??代碼\Data\Mxd文件\HuanbaoGeodatabase.gdb\a00000003.gdbtable
?????文件????????5152??2014-08-27?11:25??代碼\Data\Mxd文件\HuanbaoGeodatabase.gdb\a00000003.gdbtablx
?????文件?????????179??2014-08-27?11:25??代碼\Data\Mxd文件\HuanbaoGeodatabase.gdb\a00000004.gdbtable
?????文件????????5152??2014-08-27?11:25??代碼\Data\Mxd文件\HuanbaoGeodatabase.gdb\a00000004.gdbtablx
?????文件?????????191??2014-08-27?11:25??代碼\Data\Mxd文件\HuanbaoGeodatabase.gdb\a00000005.gdbindexes
?????文件?????????223??2014-08-27?11:25??代碼\Data\Mxd文件\HuanbaoGeodatabase.gdb\a00000005.gdbtable
?????文件????????5152??2014-08-27?11:25??代碼\Data\Mxd文件\HuanbaoGeodatabase.gdb\a00000005.gdbtablx
?????文件???????12632??2015-02-06?16:50??代碼\Data\Mxd文件\HuanbaoGeodatabase.gdb\a00000006.freelist
?????文件?????????191??2014-08-27?11:25??代碼\Data\Mxd文件\HuanbaoGeodatabase.gdb\a00000006.gdbindexes
?????文件????????4700??2015-02-06?16:50??代碼\Data\Mxd文件\HuanbaoGeodatabase.gdb\a00000006.gdbtable
?????文件????????5152??2015-02-06?16:50??代碼\Data\Mxd文件\HuanbaoGeodatabase.gdb\a00000006.gdbtablx
?????文件????????8536??2015-02-06?16:49??代碼\Data\Mxd文件\HuanbaoGeodatabase.gdb\a00000007.freelist
?????文件????????1818??2015-02-06?16:49??代碼\Data\Mxd文件\HuanbaoGeodatabase.gdb\a00000007.gdbtable
?????文件????????5152??2015-02-06?16:49??代碼\Data\Mxd文件\HuanbaoGeodatabase.gdb\a00000007.gdbtablx
............此處省略270個文件信息

評論

共有 條評論