91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 428KB
    文件類型: .rar
    金幣: 2
    下載: 1 次
    發布日期: 2021-01-09
  • 語言: C/C++
  • 標簽: shape??shapefile??.shp??

資源簡介

解析并顯示ESRI shapefile ,并附帶shape文件的中英文技術手冊,C++代碼,非常好使。

資源截圖

代碼片段和文件信息

//這里只解析了shapetype=3,13,5,15?四種,其他類型的解析方法類似,讀懂這個程序就ok了
//本代碼還附帶了三角剖分的代碼,算是送的(實際是我懶得刪)
#include
#include
#include
#include//圖形繪制庫,easyX
#include?
#include
#include
using?namespace?std;
template?
T?swap_bytes(T?x)
{
char(&a)[sizeof(T)]?=?(char(&)[sizeof(T)])x;
for?(int?i?=?0;?i? {
char?t?=?a[i];
a[i]?=?a[sizeof(T)?-?1?-?i];
a[sizeof(T)?-?1?-?i]?=?t;
}
return?(T?&)a;
}
struct?shp_Point
{
double?x;
double?y;
};
struct?shp_triangle
{
shp_Point?p1?p2?p3;
};
struct?Box?{
double?Xmin;
double?Ymin;
double?Xmax;
double?Ymax;
};
struct?PolyLineZ
{
//記錄頭
int?RecordNum;
int?FileLength;
//記錄內容
int?ShapeType;
Box?box;//范圍
int?NumParts;//線段數
i

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????8321??2018-05-31?10:27??readshape\main.cpp

?????文件?????126761??2018-04-23?20:48??readshape\shapefile.pdf

?????文件?????490496??2018-04-17?16:21??readshape\shapefileChinese.doc

?????目錄??????????0??2018-05-31?10:22??readshape

-----------?---------??----------?-----??----

???????????????625578????????????????????4


評論

共有 條評論