• 大小: 0.70M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-02-26
  • 语言: C#
  • 标签: 操作  C#  

资源简介

读取shapfile文件

资源截图

代码片段和文件信息

using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace EsriShpReader
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        ArrayList polygons = new ArrayList();//面集合
        ArrayList polylines = new ArrayList();//线集合
        ArrayList points = new ArrayList();//点集合
        Pen pen = new Pen(Color.Black 1);//定义画笔
        int ShapeType;//shp文件类型
        int count;//计数
        double xmin ymin xmax ymax;
        double n1 n2;//x,y轴放大倍数
        private void Form1_Load(object sender EventArgs e)
        {

        }

        private void button_open_Click(object sender EventArgs e)
        {
            string shpfilepath = ““;
            OpenFileDialog openFileDialog1 = new OpenFileDialog()

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      15872  2019-08-02 19:47  ShapFile\EsriShpReader\EsriShpReader\bin\Debug\EsriShpReader.exe

     文件      32256  2019-08-02 19:47  ShapFile\EsriShpReader\EsriShpReader\bin\Debug\EsriShpReader.pdb

     文件      11600  2019-08-02 20:38  ShapFile\EsriShpReader\EsriShpReader\bin\Debug\EsriShpReader.vshost.exe

     文件        490  2010-03-17 22:39  ShapFile\EsriShpReader\EsriShpReader\bin\Debug\EsriShpReader.vshost.exe.manifest

     文件    1424591  2019-08-02 20:32  ShapFile\EsriShpReader\EsriShpReader\bin\Debug\line.txt

     文件      13188  2019-08-02 20:30  ShapFile\EsriShpReader\EsriShpReader\bin\Debug\point.txt

     文件    1118770  2019-08-02 20:36  ShapFile\EsriShpReader\EsriShpReader\bin\Debug\polygon.txt

     文件       3724  2019-08-02 19:41  ShapFile\EsriShpReader\EsriShpReader\EsriShpReader.csproj

     文件      17131  2019-08-02 19:47  ShapFile\EsriShpReader\EsriShpReader\Form1.cs

     文件       4920  2019-08-02 19:47  ShapFile\EsriShpReader\EsriShpReader\Form1.Designer.cs

     文件       5817  2019-08-02 19:47  ShapFile\EsriShpReader\EsriShpReader\Form1.resx

     文件       2164  2019-08-02 19:37  ShapFile\EsriShpReader\EsriShpReader\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6338  2019-08-02 19:47  ShapFile\EsriShpReader\EsriShpReader\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件        850  2019-08-02 20:38  ShapFile\EsriShpReader\EsriShpReader\obj\x86\Debug\EsriShpReader.csproj.FileListAbsolute.txt

     文件      15872  2019-08-02 19:47  ShapFile\EsriShpReader\EsriShpReader\obj\x86\Debug\EsriShpReader.exe

     文件        180  2019-08-02 19:47  ShapFile\EsriShpReader\EsriShpReader\obj\x86\Debug\EsriShpReader.Form1.resources

     文件      32256  2019-08-02 19:47  ShapFile\EsriShpReader\EsriShpReader\obj\x86\Debug\EsriShpReader.pdb

     文件        180  2019-08-02 19:47  ShapFile\EsriShpReader\EsriShpReader\obj\x86\Debug\EsriShpReader.Properties.Resources.resources

     文件        276  2019-08-02 19:47  ShapFile\EsriShpReader\EsriShpReader\obj\x86\Debug\GenerateResource.read.1.tlog

     文件        674  2019-08-02 19:47  ShapFile\EsriShpReader\EsriShpReader\obj\x86\Debug\GenerateResource.write.1.tlog

     文件        494  2019-08-02 19:37  ShapFile\EsriShpReader\EsriShpReader\Program.cs

     文件       1376  2019-08-02 19:37  ShapFile\EsriShpReader\EsriShpReader\Properties\AssemblyInfo.cs

     文件       2874  2019-08-02 19:37  ShapFile\EsriShpReader\EsriShpReader\Properties\Resources.Designer.cs

     文件       5612  2019-08-02 19:37  ShapFile\EsriShpReader\EsriShpReader\Properties\Resources.resx

     文件       1096  2019-08-02 19:37  ShapFile\EsriShpReader\EsriShpReader\Properties\Settings.Designer.cs

     文件        249  2019-08-02 19:37  ShapFile\EsriShpReader\EsriShpReader\Properties\Settings.settings

     文件        602  2019-08-02 19:45  ShapFile\EsriShpReader\EsriShpReader\ShpClass.cs

     文件        881  2019-08-02 19:37  ShapFile\EsriShpReader\EsriShpReader.sln

    ..A..H.     19456  2019-08-02 20:44  ShapFile\EsriShpReader\EsriShpReader.suo

     目录          0  2019-08-02 19:37  ShapFile\EsriShpReader\EsriShpReader\obj\x86\Debug\TempPE

............此处省略12个文件信息

评论

共有 条评论