实例介绍
使用GDAL读取矢量数据shp文件的一个例子,并提供了数据导出的接口,VS2013代码!
【实例截图】
【核心代码】
shpRead1.rar
└── shpRead1
├── ChildFrm.cpp
├── ChildFrm.h
├── gdal
│ ├── bin
│ │ ├── cfitsio.dll
│ │ ├── cfitsio.dll.manifest
│ │ ├── gdal19.dll
│ │ ├── gdal19.dll.manifest
│ │ ├── gdaladdo.exe
│ │ ├── gdalbuildvrt.exe
│ │ ├── gdal_contour.exe
│ │ ├── gdaldem.exe
│ │ ├── gdalenhance.exe
│ │ ├── gdal_grid.exe
│ │ ├── gdalinfo.exe
│ │ ├── gdallocationinfo.exe
│ │ ├── gdalmanage.exe
│ │ ├── gdal_rasterize.exe
│ │ ├── gdalsrsinfo.exe
│ │ ├── gdaltindex.exe
│ │ ├── gdaltransform.exe
│ │ ├── gdal_translate.exe
│ │ ├── gdalwarp.exe
│ │ ├── geos_c.dll
│ │ ├── geos_c.dll.manifest
│ │ ├── hd426m.dll
│ │ ├── hdf5dll.dll
│ │ ├── hdf5_hldll.dll
│ │ ├── hm426m.dll
│ │ ├── libcurld.dll
│ │ ├── libcurl.dll
│ │ ├── libeay32.dll
│ │ ├── libexpat.dll
│ │ ├── libiconv-2.dll
│ │ ├── libiconv2.dll
│ │ ├── libintl-8.dll
│ │ ├── libpq.dll
│ │ ├── lti_dsdk.dll
│ │ ├── lti_lidar_dsdk.dll
│ │ ├── msvcp100.dll
│ │ ├── msvcp90.dll
│ │ ├── msvcr100.dll
│ │ ├── msvcr90.dll
│ │ ├── NCScnet4.dll
│ │ ├── NCSEcw4_RO.dll
│ │ ├── NCSUtil4.dll
│ │ ├── nearblack.exe
│ │ ├── netcdf.dll
│ │ ├── ogr2ogr.exe
│ │ ├── ogrinfo.exe
│ │ ├── ogrtindex.exe
│ │ ├── OpenCL.dll
│ │ ├── proj.dll
│ │ ├── sqlite3.dll
│ │ ├── ssleay32.dll
│ │ ├── szip.dll
│ │ ├── tbb.dll
│ │ ├── testepsg.exe
│ │ └── zlib1.dll
│ ├── csharp
│ │ ├── gdalconst_csharp.dll
│ │ ├── gdalconst_wrap.dll
│ │ ├── gdal_csharp.dll
│ │ ├── gdal_wrap.dll
│ │ ├── ogr_csharp.dll
│ │ ├── ogr_wrap.dll
│ │ ├── osr_csharp.dll
│ │ └── osr_wrap.dll
│ ├── data
│ │ ├── compdcs.csv
│ │ ├── coordinate_axis.csv
│ │ ├── cubewerx_extra.wkt
│ │ ├── datum_shift.csv
│ │ ├── ecw_cs.wkt
│ │ ├── ellipsoid.csv
│ │ ├── epsg.wkt
│ │ ├── esri_extra.wkt
│ │ ├── esri_StatePlane_extra.wkt
│ │ ├── esri_Wisconsin_extra.wkt
│ │ ├── gcs.csv
│ │ ├── gcs.override.csv
│ │ ├── gdal_datum.csv
│ │ ├── gdalicon.png
│ │ ├── GDALLogoBW.svg
│ │ ├── GDALLogoColor.svg
│ │ ├── GDALLogoGS.svg
│ │ ├── geoccs.csv
│ │ ├── gt_datum.csv
│ │ ├── gt_ellips.csv
│ │ ├── header.dxf
│ │ ├── LICENSE.TXT
│ │ ├── nitf_spec.xml
│ │ ├── nitf_spec.xsd
│ │ ├── pci_datum.txt
│ │ ├── pci_ellips.txt
│ │ ├── pcs.csv
│ │ ├── pcs.override.csv
│ │ ├── prime_meridian.csv
│ │ ├── projop_wparm.csv
│ │ ├── s57agencies.csv
│ │ ├── s57attributes_aml.csv
│ │ ├── s57attributes.csv
│ │ ├── s57attributes_iw.csv
│ │ ├── s57expectedinput.csv
│ │ ├── s57objectclasses_aml.csv
│ │ ├── s57objectclasses.csv
│ │ ├── s57objectclasses_iw.csv
│ │ ├── seed_2d.dgn
│ │ ├── seed_3d.dgn
│ │ ├── stateplane.csv
│ │ ├── trailer.dxf
│ │ ├── unit_of_measure.csv
│ │ ├── vertcs.csv
│ │ └── vertcs.override.csv
│ ├── include
│ │ ├── cpl_atomic_ops.h
│ │ ├── cpl_base64.h
│ │ ├── cpl_config_extras.h
│ │ ├── cpl_config.h
│ │ ├── cpl_conv.h
│ │ ├── cpl_csv.h
│ │ ├── cpl_error.h
│ │ ├── cpl_hash_set.h
│ │ ├── cpl_http.h
│ │ ├── cplkeywordparser.h
│ │ ├── cpl_list.h
│ │ ├── cpl_minixml.h
│ │ ├── cpl_minizip_ioapi.h
│ │ ├── cpl_minizip_unzip.h
│ │ ├── cpl_minizip_zip.h
│ │ ├── cpl_multiproc.h
│ │ ├── cpl_odbc.h
│ │ ├── cpl_port.h
│ │ ├── cpl_quad_tree.h
│ │ ├── cpl_string.h
│ │ ├── cpl_time.h
│ │ ├── cpl_vsi.h
│ │ ├── cpl_vsi_virtual.h
│ │ ├── cpl_win32ce_api.h
│ │ ├── cpl_wince.h
│ │ ├── gdal_alg.h
│ │ ├── gdal_alg_priv.h
│ │ ├── gdal_csv.h
│ │ ├── gdal_frmts.h
│ │ ├── gdalgrid.h
│ │ ├── gdal.h
│ │ ├── gdaljp2metadata.h
│ │ ├── gdal_pam.h
│ │ ├── gdal_priv.h
│ │ ├── gdal_proxy.h
│ │ ├── gdal_rat.h
│ │ ├── gdal_version.h
│ │ ├── gdal_vrt.h
│ │ ├── gdalwarper.h
│ │ ├── gdalwarpkernel_opencl.h
│ │ ├── gvgcpfit.h
│ │ ├── memdataset.h
│ │ ├── ogr_api.h
│ │ ├── ogr_attrind.h
│ │ ├── ogr_core.h
│ │ ├── ogr_expat.h
│ │ ├── ogr_feature.h
│ │ ├── ogr_featurestyle.h
│ │ ├── ogrgeomediageometry.h
│ │ ├── ogr_geometry.h
│ │ ├── ogr_geos.h
│ │ ├── ogrpgeogeometry.h
│ │ ├── ogr_p.h
│ │ ├── ogrsf_frmts.h
│ │ ├── ogr_spatialref.h
│ │ ├── ogr_srs_api.h
│ │ ├── ogr_srs_esri_names.h
│ │ ├── rawdataset.h
│ │ ├── swq.h
│ │ ├── thinplatespline.h
│ │ └── vrtdataset.h
│ ├── java
│ │ ├── gdalconstjni.dll
│ │ ├── gdalconstjni.dll.manifest
│ │ ├── gdal.jar
│ │ ├── gdaljni.dll
│ │ ├── gdaljni.dll.manifest
│ │ ├── ogrjni.dll
│ │ ├── ogrjni.dll.manifest
│ │ ├── osrjni.dll
│ │ └── osrjni.dll.manifest
│ ├── lib
│ │ └── gdal_i.lib
│ └── python
│ ├── gdalconst.py
│ ├── gdalnumeric.py
│ ├── gdal.py
│ ├── ogr.py
│ ├── osgeo
│ │ ├── gdal_array.py
│ │ ├── _gdal_array.pyd
│ │ ├── gdalconst.py
│ │ ├── _gdalconst.pyd
│ │ ├── gdalnumeric.py
│ │ ├── gdal.py
│ │ ├── _gdal.pyd
│ │ ├── __init__.py
│ │ ├── ogr.py
│ │ ├── _ogr.pyd
│ │ ├── osr.py
│ │ └── _osr.pyd
│ └── osr.py
├── MainFrm.cpp
├── MainFrm.h
├── ReadMe.txt
├── res
│ ├── shpReadDoc.ico
│ ├── shpRead.ico
│ ├── shpRead.rc2
│ └── Toolbar.bmp
├── Resource.h
├── shpRead.aps
├── shpRead.clw
├── shpRead.cpp
├── shpReadDoc.cpp
├── shpReadDoc.h
├── shpRead.dsp
├── shpRead.dsw
├── shpRead.h
├── shpRead.opt
├── shpRead.plg
├── shpRead.rc
├── shpRead.sln
├── shpRead.suo
├── shpRead.v12.suo
├── shpRead.vcxproj
├── shpRead.vcxproj.filters
├── shpRead.vcxproj.user
├── shpReadView.cpp
├── shpReadView.h
├── StdAfx.cpp
└── StdAfx.h
11 directories, 227 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论