欢迎您来到GIS动力

加入收藏 免费注册 用户登陆 帮助中心
首页 新闻动态 技术专栏 银杏树下 学习考研 软件下载 求职招聘 许愿瓶 节日祝福 用户中心 精彩推荐 资源搜索 地图
专栏导航: AO开发 | SO开发 | ArcGIS桌面 | 超图桌面 | 开发语言 | 数据库 | WebGIS | 银杏文学 | 研究生考题 | FreeMap 谈天说地
   您现在位于: 首页技术专栏ArcGIS应用与开发ArcGIS其它 → 正文
vb.net下读取shapefile文件
08-04-08 11:49:42 作者:佚名 出处:不详

利用网络上下载的组件,不需引用AO控件。以下为读取shp文件图形和属性结构的例子!

Imports System
Imports System.IO
Imports System.Text
Imports System.Drawing
Imports Microsoft.VisualBasic
Imports System.Windows.Forms.PictureBox
Imports System.Math


Public Class Form1
      Inherits System.Windows.Forms.Form

      Dim MyShape As New ArcViewShapeFileDLL.ShapeFiles
      Dim MaxX As Double = 0
      Dim MinX As Double = 0
      Dim MaxY As Double = 0
      Dim MinY As Double = 0
      Dim pbMaxX As Double = 0
      Dim pbMaxY As Double = 0
      Dim XDegPerPixel As Double = 0
      Dim YDegPerPixel As Double = 0
      Dim g As Graphics ' Declare a variable to hold a Graphics object
      Dim bmap As Bitmap ' Variable for Bitmap to be displayed in (PictureBox) control

#Region " Windows 窗体设计器生成的代码 "

      Public Sub New()
          MyBase.New()

          '该调用是 Windows 窗体设计器所必需的。
          InitializeComponent()

          '在 InitializeComponent() 调用之后添加任何初始化

      End Sub

      '窗体重写 dispose 以清理组件列表。
      Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
          If disposing Then
              If Not (components Is Nothing) Then
   &nb

9 7 3 1 2 3 4 5 6 7 8 9 10 4 8 :

(本文已被浏览 次)
发布人:admin
推荐给好友:发送给好友
上篇新闻:
下篇新闻:
相关评论
发表我的评论
  • 尊重网上道德,遵守《全国人大常委会关于维护互联网安全的决定》及中华人民共和国其他各项有关法律法;
  • 本站有权保留或删除您发表的任何评论内容;
  •   相关文章  
    shapefile格式说明及读写代码示例
    用GeoTools读取Shapefile的属性数据
    AO查询Shape文件图形范围
    读取SHAPE文件

    关于我们 友情链接 ┋ 与我在线 ┋ 管理 ┋ TOP
    网站当前版本:GisPower CMS V3.0
    『GIS 动力』- http://www.gispower.org/
    联系我们:webmaster#gispower.org
    Copyright (c) 2003-2007 GisPOwer.Org. All Rights Reserved.

                   滇ICP备05006901号