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

  • 大小: 889KB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2021-06-13
  • 語言: 其他
  • 標簽: ArcEngine??ArcGIS??

資源簡介

ArcEngine簡單教程——要素的屬性查詢、空間查詢完整demo,包括要素圖層的空間查詢、屬性查詢 備份鏈接:鏈接:https://pan.baidu.com/s/1h5sRKIczpFErXhw4UPyLww 提取碼:lw27 教程博客:https://blog.csdn.net/nominior/article/details/97265885

資源截圖

代碼片段和文件信息

using?ESRI.ArcGIS.Carto;
using?ESRI.ArcGIS.Geodatabase;
using?ESRI.ArcGIS.Geometry;
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Threading.Tasks;
using?System.Windows.Forms;

namespace?p3_search
{
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????InitializeComponent();
????????}

????????#region?空間查詢
????????private?void?axMapControl1_OnMapReplaced(object?sender?ESRI.ArcGIS.Controls.IMapControlEvents2_OnMapReplacedEvent?e)
????????{
????????????for?(int?i?=?0;?i?yerCount;?i++)
????????????{
????????????????string?l_name?=?axMapControl1.Map.get_layer(i).Name;
????????????????cb_layer.Items.Add(l_name);
????????????}
????????}

????????private?Featurelayer?get_FL()
????????{
????????????Featurelayer?pFeaturelayer?=?null;

????????????for?(int?i?=?0;?i?yerCount;?i++)
????????????{
????????????????if?(cb_layer.Text?==?axMapControl1.get_layer(i).Name)
????????????????{
????????????????????pFeaturelayer?=?axMapControl1.get_layer(i)?as?Featurelayer;
????????????????????break;
????????????????}
????????????}
????????????return?pFeaturelayer;
????????}

????????private?void?axMapControl1_onmousedown(object?sender?ESRI.ArcGIS.Controls.IMapControlEvents2_onmousedownEvent?e)
????????{
????????????Featurelayer?pFeaturelayer?=?get_FL();
????????????if?(e.button?==?2?&&?pFeaturelayer?!=?null)
????????????{??????????????????????????????
????????????????IEnvelope?box?=?null;
????????????????if?(cb_method.Text?==?“框選查詢“)
????????????????{
????????????????????box?=?axMapControl1.TrackRectangle()?as?IEnvelope;
????????????????????ISpatialFilter?filter?=?new?SpatialFilterClass();
????????????????????filter.WhereClause?=?““;
????????????????????filter.Geometry?=?box;
????????????????????filter.SpatialRel?=?esriSpatialRelEnum.esriSpatialRelIntersects;
????????????????????ShowFeatures(pFeaturelayer?filter);
????????????????}
????????????????else
????????????????{
????????????????????IGeometry?pGeo;
????????????????????if?(cb_method.Text?==?“多邊形查詢“)
????????????????????{
????????????????????????pGeo?=?axMapControl1.TrackPolygon();
????????????????????}
????????????????????else
????????????????????{
????????????????????????pGeo?=?axMapControl1.TrackCircle();
????????????????????}
????????????????????ISpatialFilter?filter?=?new?SpatialFilterClass();
????????????????????filter.WhereClause?=?““;
????????????????????filter.Geometry?=?pGeo;
????????????????????filter.SpatialRel?=?esriSpatialRelEnum.esriSpatialRelIntersects;
????????????????????ShowFeatures(pFeaturelayer?filter);
????????????????}
????????????????
????????????}
????????}
????????public?void?ShowFeatures(IFeaturelayer?featurelayer?IQueryFilter?condition)
????????{
????????????if?(featurelayer?!=?null)
????????????{
????????????

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-08-18?21:39??p3_search\
?????目錄???????????0??2019-08-18?21:39??p3_search\mxd\
?????目錄???????????0??2019-08-18?22:23??p3_search\mxd\HuanbaoGeodatabase.gdb\
?????文件???????16728??2015-02-06?16:50??p3_search\mxd\HuanbaoGeodatabase.gdb\a00000001.freelist
?????文件?????????191??2014-08-27?11:25??p3_search\mxd\HuanbaoGeodatabase.gdb\a00000001.gdbindexes
?????文件????????5437??2015-02-06?16:50??p3_search\mxd\HuanbaoGeodatabase.gdb\a00000001.gdbtable
?????文件????????5152??2015-02-06?16:50??p3_search\mxd\HuanbaoGeodatabase.gdb\a00000001.gdbtablx
?????文件?????????920??2014-08-27?11:25??p3_search\mxd\HuanbaoGeodatabase.gdb\a00000002.gdbtable
?????文件????????5152??2014-08-27?11:25??p3_search\mxd\HuanbaoGeodatabase.gdb\a00000002.gdbtablx
?????文件?????????191??2014-08-27?11:25??p3_search\mxd\HuanbaoGeodatabase.gdb\a00000003.gdbindexes
?????文件????????4174??2014-08-27?11:25??p3_search\mxd\HuanbaoGeodatabase.gdb\a00000003.gdbtable
?????文件????????5152??2014-08-27?11:25??p3_search\mxd\HuanbaoGeodatabase.gdb\a00000003.gdbtablx
?????文件?????????179??2014-08-27?11:25??p3_search\mxd\HuanbaoGeodatabase.gdb\a00000004.gdbtable
?????文件????????5152??2014-08-27?11:25??p3_search\mxd\HuanbaoGeodatabase.gdb\a00000004.gdbtablx
?????文件?????????191??2014-08-27?11:25??p3_search\mxd\HuanbaoGeodatabase.gdb\a00000005.gdbindexes
?????文件?????????223??2014-08-27?11:25??p3_search\mxd\HuanbaoGeodatabase.gdb\a00000005.gdbtable
?????文件????????5152??2014-08-27?11:25??p3_search\mxd\HuanbaoGeodatabase.gdb\a00000005.gdbtablx
?????文件???????12632??2015-02-06?16:50??p3_search\mxd\HuanbaoGeodatabase.gdb\a00000006.freelist
?????文件?????????191??2014-08-27?11:25??p3_search\mxd\HuanbaoGeodatabase.gdb\a00000006.gdbindexes
?????文件????????4700??2015-02-06?16:50??p3_search\mxd\HuanbaoGeodatabase.gdb\a00000006.gdbtable
?????文件????????5152??2015-02-06?16:50??p3_search\mxd\HuanbaoGeodatabase.gdb\a00000006.gdbtablx
?????文件????????8536??2015-02-06?16:49??p3_search\mxd\HuanbaoGeodatabase.gdb\a00000007.freelist
?????文件????????1818??2015-02-06?16:49??p3_search\mxd\HuanbaoGeodatabase.gdb\a00000007.gdbtable
?????文件????????5152??2015-02-06?16:49??p3_search\mxd\HuanbaoGeodatabase.gdb\a00000007.gdbtablx
?????文件???????20824??2015-02-06?16:49??p3_search\mxd\HuanbaoGeodatabase.gdb\a00000008.freelist
?????文件????????9352??2015-02-06?16:49??p3_search\mxd\HuanbaoGeodatabase.gdb\a00000008.gdbtable
?????文件????????5152??2015-02-06?16:49??p3_search\mxd\HuanbaoGeodatabase.gdb\a00000008.gdbtablx
?????文件????????4440??2015-02-06?16:46??p3_search\mxd\HuanbaoGeodatabase.gdb\a0000000b.freelist
?????文件?????????191??2014-08-27?11:25??p3_search\mxd\HuanbaoGeodatabase.gdb\a0000000b.gdbindexes
?????文件?????????299??2015-02-06?16:46??p3_search\mxd\HuanbaoGeodatabase.gdb\a0000000b.gdbtable
?????文件????????5152??2015-02-06?16:46??p3_search\mxd\HuanbaoGeodatabase.gdb\a0000000b.gdbtablx
............此處省略100個文件信息

評論

共有 條評論