• 大小: 1.93MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-01-01
  • 语言: C/C++
  • 标签:

资源简介

用vc++读shp面文件 shape面文件的读取 面shp文件 polygon读取

资源截图

代码片段和文件信息

// Export.cpp: implementation of the CExport class.
//
//////////////////////////////////////////////////////////////////////

#include “stdafx.h“
#include “readpolygonshp.h“
#include “Export.h“

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CExport::CExport()
{

}

CExport::~CExport()
{

}

void CExport::OpenShpfile(CString strSHPname)
{
hSHP = SHPOpen( strSHPname “r+b“ );
if( hSHP == NULL )
    {
printf( “Unable to open:%s\n“ strSHPname);
exit( 1 );
    }
    m_nShpType = hSHP->nShapeType;

switch(m_nShpType)
{
case 0:

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

     文件       2438  2009-07-16 11:13  readpolygonshp\readpolygonshp.clw

     文件       4503  2009-07-16 10:41  readpolygonshp\ReadMe.txt

     文件       1444  2009-07-16 10:41  readpolygonshp\readpolygonshp.h

     文件       4353  2009-07-16 10:41  readpolygonshp\readpolygonshp.cpp

     文件        216  2009-07-16 10:41  readpolygonshp\StdAfx.cpp

     文件       1581  2009-07-16 10:41  readpolygonshp\MainFrm.h

     文件       2515  2009-07-16 10:41  readpolygonshp\MainFrm.cpp

     文件       1563  2009-07-16 10:41  readpolygonshp\readpolygonshpDoc.h

     文件       1902  2009-07-16 10:41  readpolygonshp\readpolygonshpDoc.cpp

     文件        406  2009-07-16 10:41  readpolygonshp\res\readpolygonshp.rc2

     文件       1078  2009-07-16 10:41  readpolygonshp\res\readpolygonshpDoc.ico

     文件       1078  2009-07-16 10:41  readpolygonshp\res\readpolygonshp.ico

     文件       1078  2009-07-16 10:41  readpolygonshp\res\Toolbar.bmp

     文件        551  2009-07-16 10:41  readpolygonshp\readpolygonshp.dsw

     文件      58368  2009-07-16 12:43  readpolygonshp\readpolygonshp.ncb

     文件       7492  2009-07-16 10:45  readpolygonshp\Debug\readpolygonshp.res

     文件     222208  2009-07-16 12:43  readpolygonshp\Debug\vc60.idb

     文件    5511952  2009-07-16 10:43  readpolygonshp\Debug\readpolygonshp.pch

     文件     372736  2009-07-16 12:42  readpolygonshp\Debug\vc60.pdb

     文件     105877  2009-07-16 10:43  readpolygonshp\Debug\StdAfx.obj

     文件      15018  2009-07-16 10:43  readpolygonshp\Debug\readpolygonshpDoc.obj

     文件      19822  2009-07-16 10:43  readpolygonshp\Debug\MainFrm.obj

     文件     131141  2009-07-16 12:42  readpolygonshp\Debug\readpolygonshp.exe

     文件     476160  2009-07-16 12:42  readpolygonshp\Debug\readpolygonshp.pdb

     文件      23603  2009-07-16 11:14  readpolygonshp\Debug\readpolygonshp.obj

     文件     369336  2009-07-16 12:42  readpolygonshp\Debug\readpolygonshp.ilk

     文件      43042  2009-07-16 12:42  readpolygonshp\Debug\Export.obj

     文件      28753  2009-07-16 12:42  readpolygonshp\Debug\readpolygonshpView.obj

     文件      69632  2001-01-20 07:50  readpolygonshp\SHAPELIB.DLL

     文件       8848  2001-01-20 07:50  readpolygonshp\SHAPELIB.LIB

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

评论

共有 条评论

相关资源