根据图幅左下角经纬度计算其所在图幅号(According to the lower latitude of the map, the latitude and longitude are calculated).docVIP
- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
根据图幅左下角经纬度计算其所在图幅号(According to the lower latitude of the map, the latitude and longitude are calculated)
根据图幅左下角经纬度计算其所在图幅号(According to the lower latitude of the map, the latitude and longitude are calculated)
According to the latitude and longitude of the lower left of the map, the number is.Txt
//char *MapNo: plot number
//int lon_deg: longitude degrees
//lon_min: longitude - minute
//lon_sec: longitude seconds
//lat_deg: latitude degrees
//lat_min: latitude - points
//lat_sec: latitude seconds
//long lscale: scale
Bool, Trans (char, *MapNo, int, lon_deg, lon_min, lon_sec, lat_deg, lat_min, lat_sec, long, lscale)
{
Int ScaleID;
Char buf[10];
Char S[] = ABCDEFGHIJKLMNOPQRSTUV; / / Tutu 1:1000000 topographic latitude with amplitude character code
Long Scale[] = {10000005000002500001000005000025000100005000}; / / map scale
Double df[] = {14400720036001200600300150,75}; / / map difference of latitude, in seconds
Double dr[] = {216001080054001800900450225112.5}; / / map by the difference in seconds
Long r=lon_deg*3600+lon_min*60+lon_sec; / / longitude, in seconds
Long f=lat_deg*3600+lat_min*60+lat_sec; / / latitude in seconds
For (ScaleID=0; ScaleID8; ScaleID++) {
If (Scale[ScaleID]==lscale) {
Break;
}
}
If (ScaleID==8) {
Return false;
}
Int a = f/ (4*3600);
Int b = r/ (6*3600) +31;
Int, C = (int) (4*3600/df[ScaleID]) - (int) ((f% (4*3600)) /df[ScaleID]);
Int, d = (int) ((r% (6*3600)) /dr[ScaleID]) +1;
MapNo[0] = S[a];
Strcpy (MapNo+1, Itoa (B, buf, 10));
If (ScaleID==0) {
Return true;
}
MapNo[3] = S[ScaleID];
Itoa (C, buf, 10);
If (c10) {
MapNo[4]=MapNo[5]=0;
Strcpy (MapNo+6, buf);
}else if (c100) {
MapNo[4]=0;
Strcpy (MapNo+5, buf)}
Else if (c1000) {
Strcpy (MapNo+4, buf);
}else{
Return false;
}
Itoa (D, buf, 10);
If (d10) {
MapNo[7]=MapNo[8]=0;
Strcpy (MapNo+9, buf);
}else if (d100) {
MapNo[7]=0;
Strcpy (MapNo+8, buf);
}else if (d1000) {
Strcpy (MapNo+7, buf);
}else{
Return false;
}
MapNo[10] = 0;
Return true;
}
This article is from the GIS power station | original link: /article/dev/2009/720/0972093211BBBBG0BB3063IEDH8F8I.
HTML
Ask:
Want to format some numbers as st
您可能关注的文档
- 数百条百科小知识(绝对有用)(Hundreds of encyclopedic knowledge (absolutely useful)).doc
- 数码相机常见故障(Common faults in digital cameras).doc
- 文件小窍门(File tips).doc
- 整体衣柜十大品牌(Overall wardrobe ten brands).doc
- 文学长句(Literary long sentences).doc
- 文体局保持共产党员先进性教育先进个人事迹材料(The style and sports bureau maintains the advanced education of the Communist Party members, advanced personal deeds materials).doc
- 数控雕铣机和加工中心的优缺点(Advantages and disadvantages of CNC engraving and milling machine and machining center).doc
- 文明在身边(Civilization is around).doc
- 文明学生(Civilized student).doc
- 文明校园演讲稿(Civilized campus speech).doc
- 格兰仕十大营销定律 简单律领先律(Galanz's ten law of marketing, simple law, leading law).doc
- 样学好生物(Learn biology well).doc
- 格兰仕大学管理提炼隐性知识,加速内部讲师成长(Galanz University management, refining hidden knowledge, accelerate the growth of internal lecturers).doc
- 格兰仕的企业文化(Galanz's corporate culture).doc
- 格力电器公司简介(GREE Electric Company Profile).doc
- 格子铺如何吸引加盟者管理(How does the tartan shop attract franchise management).doc
- 格赛尔爬梯实验(Gesell's ladder experiment).doc
- 桂林服装城招商及开业宣传策划方案(Guilin clothing city investment and business promotion plan).doc
- 格言式管理与企业文化建设(Maxim style management and the construction of enterprise culture).doc
- 桂林电子科技大学主要事务办事流程(东区)(Main business process (East Side) of Guilin University of Electronic Technology).doc
最近下载
- 山东力明科技职业学院单招《数学》模拟题库附参考答案详解【突破训练】.docx VIP
- 2024山东科技职业学院单招数学题库附参考答案详解【综合卷】.docx VIP
- 建筑工程工艺标准化手册2024版(机电安装分册).docx
- Asprova排程算法及数据模型.docx VIP
- 2025年聊城职业技术学院单招语文测试试卷.docx VIP
- 2025年新疆公务员录用考试《行测》真题及答案解析.pdf VIP
- 知识创业思维与方法知到智慧树期末考试答案题库2025年湖南师范大学.docx VIP
- 3年级上册整本书阅读《格林童话》推进课教案.docx VIP
- 食品安全管理制度及职责.pdf VIP
- 天然气加工工程 讲义.ppt VIP
原创力文档


文档评论(0)