資源簡(jiǎn)介
使用GDAL讀取矢量數(shù)據(jù)shp文件的一個(gè)例子,并提供了數(shù)據(jù)導(dǎo)出的接口,VS2013代碼!

代碼片段和文件信息
//?ChildFrm.cpp?:?implementation?of?the?CChildframe?class
//
#include?“stdafx.h“
#include?“shpRead.h“
#include?“ChildFrm.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CChildframe
IMPLEMENT_DYNCREATE(CChildframe?CMDIChildWnd)
BEGIN_MESSAGE_MAP(CChildframe?CMDIChildWnd)
//{{AFX_MSG_MAP(CChildframe)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code?!
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CChildframe?construction/destruction
CChildframe::CChildframe()
{
//?TODO:?add?member?initialization?code?here
}
CChildframe::~CChildframe()
{
}
BOOL?CChildframe::PreCreateWindow(CREATESTRUCT&?cs)
{
//?TODO:?Modify?the?Window?class?or?styles?here?by?modifying
//??the?CREATESTRUCT?cs
if(?!CMDIChildWnd::PreCreateWindow(cs)?)
return?FALSE;
return?TRUE;
}
/////////////////////////////////////////////////////////////////////////////
//?CChildframe?diagnostics
#ifdef?_DEBUG
void?CChildframe::AssertValid()?const
{
CMDIChildWnd::AssertValid();
}
void?CChildframe::Dump(CDumpContext&?dc)?const
{
CMDIChildWnd::Dump(dc);
}
#endif?//_DEBUG
/////////////////////////////////////////////////////////////////////////////
//?CChildframe?message?handlers
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件???????1534??2009-07-10?17:12??shpRead1\ChildFrm.cpp
?????文件???????1397??2009-07-10?17:12??shpRead1\ChildFrm.h
?????文件????1079808??2012-12-18?10:32??shpRead1\gdal\bin\cfitsio.dll
?????文件????????616??2012-12-18?09:21??shpRead1\gdal\bin\cfitsio.dll.manifest
?????文件????8167424??2012-12-24?15:56??shpRead1\gdal\bin\gdal19.dll
?????文件????????616??2012-03-15?13:53??shpRead1\gdal\bin\gdal19.dll.manifest
?????文件??????29184??2012-12-24?15:56??shpRead1\gdal\bin\gdaladdo.exe
?????文件??????74240??2012-12-24?15:56??shpRead1\gdal\bin\gdalbuildvrt.exe
?????文件??????59392??2012-12-24?15:56??shpRead1\gdal\bin\gdaldem.exe
?????文件??????53760??2012-12-24?15:56??shpRead1\gdal\bin\gdalenhance.exe
?????文件??????17408??2012-12-24?15:56??shpRead1\gdal\bin\gdalinfo.exe
?????文件??????22528??2012-12-24?15:56??shpRead1\gdal\bin\gdallocationinfo.exe
?????文件??????11264??2012-12-24?15:56??shpRead1\gdal\bin\gdalmanage.exe
?????文件??????78848??2012-12-24?15:56??shpRead1\gdal\bin\gdalsrsinfo.exe
?????文件??????12288??2012-12-24?15:56??shpRead1\gdal\bin\gdaltindex.exe
?????文件??????18432??2012-12-24?15:56??shpRead1\gdal\bin\gdaltransform.exe
?????文件??????41984??2012-12-24?15:56??shpRead1\gdal\bin\gdalwarp.exe
?????文件??????15360??2012-12-24?15:56??shpRead1\gdal\bin\gdal_contour.exe
?????文件??????71168??2012-12-24?15:56??shpRead1\gdal\bin\gdal_grid.exe
?????文件??????31744??2012-12-24?15:56??shpRead1\gdal\bin\gdal_rasterize.exe
?????文件??????65536??2012-12-24?15:56??shpRead1\gdal\bin\gdal_translate.exe
?????文件????1687040??2012-12-17?21:50??shpRead1\gdal\bin\geos_c.dll
?????文件????????616??2012-12-17?21:50??shpRead1\gdal\bin\geos_c.dll.manifest
?????文件?????481280??2011-06-17?13:47??shpRead1\gdal\bin\hd426m.dll
?????文件????1988096??2011-05-10?14:43??shpRead1\gdal\bin\hdf5dll.dll
?????文件??????91136??2011-05-10?14:44??shpRead1\gdal\bin\hdf5_hldll.dll
?????文件?????109568??2011-06-17?13:49??shpRead1\gdal\bin\hm426m.dll
?????文件?????228864??2012-12-17?20:35??shpRead1\gdal\bin\libcurl.dll
?????文件?????373248??2012-06-29?19:53??shpRead1\gdal\bin\libcurld.dll
?????文件????1017344??2009-11-15?21:37??shpRead1\gdal\bin\libeay32.dll
............此處省略211個(gè)文件信息
評(píng)論
共有 條評(píng)論