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

  • 大小: 12.6MB
    文件類型: .rar
    金幣: 1
    下載: 0 次
    發(fā)布日期: 2023-07-08
  • 語言: 其他
  • 標(biāo)簽: DotSpatial??

資源簡介

在DotSpatial開源類庫的基礎(chǔ)上開發(fā)具有較高實用性、擴展性和技術(shù)先進性的GIS軟件技術(shù)框架,初步實現(xiàn)了地圖基本操作、數(shù)據(jù)讀取加載、地圖投影及坐標(biāo)轉(zhuǎn)換等,采用.Net平臺, DotSpatial快速入門。

資源截圖

代碼片段和文件信息

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;
using?DotSpatial.Controls;
using?DotSpatial.Data;
using?DotSpatial.Topology;
using?DotSpatial.Symbology;


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

????????????map1.MouseUp?+=?map1_MouseUp;
????????????map1.FunctionMode?=?FunctionMode.Pan;
????????????map1.Legend?=?legend1;
???????????//?map1.dr

????????}

????????//?Handle?the?mouse?up?event
????????void?map1_MouseUp(object?sender?MouseEventArgs?e)
????????{
????????????//?only?select?polygons?with?the?right?button
????????????if?(e.Button?!=?MouseButtons.Right)?return;

????????????//?Get?the?geographic?location?of?the?mouse?click
????????????Coordinate?c?=?map1.PixelToProj(e.Location);

????????????//?Return?if?no?data?layers?exist
????????????if?(map1.layers.Count?

????????????//?Also?mpl?can?be?used?to?change?the?selection?color.
????????????IMapPolygonlayer?mpl?=?map1.layers[0]?as?IMapPolygonlayer;

????????????//?If?the?first?layer?is?not?a?polygon?layer?exit.
????????????if?(mpl?==?null)?return;

????????????//?Get?the?featureset?that?contains?the?actual?polygon?data?for?the?layer
????????????IFeatureSet?fs?=?map1.layers[0].DataSet?as?IFeatureSet;

????????????//?If?this?is?null?or?not?a?featureset?exit
????????????if?(fs?==?null)?return;

????????????//?Set?up?an?index?
????????????int?iShape?=?0;

????????????//?Cycle?through?the?shapes
????????????foreach?(ShapeRange?shape?in?fs.ShapeIndices)
????????????{
????????????????//?Test?if?the?coordinate?is?in?the?polygon
????????????????if?(shape.Intersects(c))?//!
????????????????{
????????????????????//!取消全部選擇
????????????????????mpl.UnSelectAll();

????????????????????//?Select?the?polygon?if?the?the?coordinate?intersects.
????????????????????mpl.Select(iShape);

????????????????????IFeature?feature?=?fs.Features[iShape];

???????????????????MessageBox.Show(?feature.DataRow[“Class1“].ToString()+feature.DataRow[“Area“].ToString());

????????????????}
????????????????iShape++;
????????????}
???????????//?MessageBox.Show(iShape.ToString());
????????}

????????private?void?buttonloadMap_Click(object?sender?EventArgs?e)
????????{
????????????map1.Addlayer();
????????}

????????private?void?buttonZoomOut_Click(object?sender?EventArgs?e)
????????{
????????????map1.ZoomOut();
????????}
????????private?void?buttonZoomEx_Click(object?sender?EventArgs?e)
????????{
????????????map1.ZoomToMaxExtent();
????????????map1.Refresh();
????????}

????????private?void?buttonClearMap_Click(object?sender?EventArgs?e)
????????{
????????????map1.Clearlayers();
????????}

????????private?void?buttonZoomIn_Click(object?sender?

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????5120??2014-07-25?02:47??DotSpatialMap\bin\cs\DotSpatial.Projections.Forms.resources.dll

?????文件???????8704??2014-07-25?02:47??DotSpatialMap\bin\cs\DotSpatial.Symbology.Forms.resources.dll

?????文件??????17920??2014-07-25?02:47??DotSpatialMap\bin\de\DotSpatial.Projections.Forms.resources.dll

?????文件???????9216??2014-07-25?02:47??DotSpatialMap\bin\de-DE\DotSpatial.Controls.resources.dll

?????文件??????47616??2014-07-25?02:47??DotSpatialMap\bin\de-DE\DotSpatial.Projections.Forms.resources.dll

?????文件?????415232??2014-07-25?02:47??DotSpatialMap\bin\de-DE\DotSpatial.Symbology.Forms.resources.dll

?????文件?????805888??2014-07-25?02:47??DotSpatialMap\bin\DotSpatial.Controls.dll

?????文件????1025536??2014-07-25?02:47??DotSpatialMap\bin\DotSpatial.Controls.pdb

?????文件?????521172??2014-07-25?02:47??DotSpatialMap\bin\DotSpatial.Controls.xml

?????文件?????402432??2014-07-25?02:47??DotSpatialMap\bin\DotSpatial.Data.dll

?????文件??????70656??2014-07-25?02:47??DotSpatialMap\bin\DotSpatial.Data.Forms.dll

?????文件?????138752??2014-07-25?02:47??DotSpatialMap\bin\DotSpatial.Data.Forms.pdb

?????文件?????101010??2014-07-25?02:47??DotSpatialMap\bin\DotSpatial.Data.Forms.xml

?????文件????1199616??2014-07-25?02:47??DotSpatialMap\bin\DotSpatial.Data.pdb

?????文件????1024669??2014-07-25?02:47??DotSpatialMap\bin\DotSpatial.Data.xml

?????文件??????10240??2014-07-25?02:47??DotSpatialMap\bin\DotSpatial.Extensions.dll

?????文件??????19968??2014-07-25?02:47??DotSpatialMap\bin\DotSpatial.Extensions.pdb

?????文件???????9868??2014-07-25?02:47??DotSpatialMap\bin\DotSpatial.Extensions.xml

?????文件??????96256??2014-07-25?02:47??DotSpatialMap\bin\DotSpatial.Modeling.Forms.dll

?????文件?????243200??2014-07-25?02:47??DotSpatialMap\bin\DotSpatial.Modeling.Forms.pdb

?????文件?????106615??2014-07-25?02:47??DotSpatialMap\bin\DotSpatial.Modeling.Forms.xml

?????文件???????4608??2014-07-25?02:47??DotSpatialMap\bin\DotSpatial.Mono.dll

?????文件??????11776??2014-07-25?02:47??DotSpatialMap\bin\DotSpatial.Mono.pdb

?????文件????????140??2014-07-25?02:47??DotSpatialMap\bin\DotSpatial.Mono.xml

?????文件???19782656??2014-07-25?02:47??DotSpatialMap\bin\DotSpatial.Projections.dll

?????文件?????101376??2014-07-25?02:47??DotSpatialMap\bin\DotSpatial.Projections.Forms.dll

?????文件??????62976??2014-07-25?02:47??DotSpatialMap\bin\DotSpatial.Projections.Forms.pdb

?????文件??????15553??2014-07-25?02:47??DotSpatialMap\bin\DotSpatial.Projections.Forms.xml

?????文件?????744960??2014-07-25?02:47??DotSpatialMap\bin\DotSpatial.Projections.pdb

?????文件?????273370??2014-07-25?02:47??DotSpatialMap\bin\DotSpatial.Projections.xml

............此處省略116個文件信息

評論

共有 條評論