219mze 发表于 2024-10-10 11:51:55

测绘地图资源不足用?教你个万能图源制作办法


    <h1 style="color: black; text-align: left; margin-bottom: 10px;">图源是什么</h1>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">经常会听到XX图源这一说法,<span style="color: black;">那样</span>图源是什么呢?图源,并不是地图本身,而是地图的索引文件。<span style="color: black;">详细</span><span style="color: black;">来讲</span>,Web地图以瓦片金字塔形式存放在服务器上,数据量很大。在地图加载的时候,为了找到浏览区域对应的瓦片,就需要有一个索引<span style="color: black;">位置</span>,<span style="color: black;">经过</span>网页链接来找寻这个瓦片。图源<span style="color: black;">便是</span>这个对应的索引<span style="color: black;">位置</span>。简单地<span style="color: black;">来讲</span>,图源<span style="color: black;">便是</span>瓦片的门牌号,信箱号,邮寄<span style="color: black;">位置</span>。有了这个<span style="color: black;">位置</span>(图源),<span style="color: black;">咱们</span>就<span style="color: black;">能够</span>找到需要的瓦片,<span style="color: black;">从而</span>在软件内加载地图。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">咱们</span><span style="color: black;">晓得</span>,</span><strong style="color: blue;"><span style="color: black;">图新地球电脑端</span></strong><span style="color: black;">(以下简<span style="color: black;">叫作</span>LSV)和手机端</span><strong style="color: blue;"><span style="color: black;">外业精灵app</span></strong><span style="color: black;">(各大手机应用市场可下载)是支持加载自定义地图的,支持WEB墨卡托和经纬直投两种投影格式。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">LSV的图源,是LRC文件,<span style="color: black;">实质</span>上LSV的图源LRC文件,<span style="color: black;">便是</span>XML文件,只是后缀为LRC,<span style="color: black;">因此呢</span><span style="color: black;">咱们</span><span style="color: black;">能够</span>用记事本等文本编辑软件编辑。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;">网上有丰富的地图资源,即<span style="color: black;">能够</span><span style="color: black;">经过</span>此种方式接入图新地球软件和外业精灵app进行免费浏览、下载到本地<span style="color: black;">运用</span>。</span></strong></p>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;">LRC文件结构分析</h1>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">想要</span>自己制作一个LRC图源,<span style="color: black;">首要</span>需要先<span style="color: black;">认识</span>LRC的文件结构,<span style="color: black;">晓得</span><span style="color: black;">那些</span><span style="color: black;">能够</span>改,<span style="color: black;">那些</span><span style="color: black;">不可</span>改。<span style="color: black;">从而</span><span style="color: black;">根据</span>固定的格式,制作LRC图源<span style="color: black;">就可</span>。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">分析LRC文件,最好的方式是对LSV软件内自带的LRC文件进行分析。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">首要</span>在LSV主目录下找到内置的LRC文件:\LocaSpaceViewer\Resource\Layer。</span></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p26-sign.toutiaoimg.com/pgc-image/c7fc0fbfb81c45d5a5d92ec06e646a8d~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728798257&amp;x-signature=9MJyVYlCzan3LAqhDYIheJYVxBc%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">这儿</span>面都是<span style="color: black;">区别</span>归类的图源。分析LRC,最方便的以OSM为例。<span style="color: black;">那样</span><span style="color: black;">咱们</span>打开OSM文件夹:</span></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/d986bcd150014249bd22d870cbaf4468~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728798257&amp;x-signature=EdBD4nxiWxihgIRqS%2B%2B%2BW3YAFcA%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">这些都是LRC文件,<span style="color: black;">选取</span>其中任意一个,右键,打开方式:记事本。</span></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/726dfde5a0084866a16aee67071591ee~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728798257&amp;x-signature=z3EDKt305sfKMD58x%2B245RyhnSM%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">这般</span><span style="color: black;">咱们</span>就<span style="color: black;">能够</span>看到LRC文件内的原始内容。<span style="color: black;">经过</span>编辑这些内容,<span style="color: black;">就可</span>制作属于自己的特殊图源。当前还不<span style="color: black;">知道</span>每一行内容的含义,<span style="color: black;">不外</span>没事,接下来<span style="color: black;">咱们</span>说明<span style="color: black;">详细</span>图源的代码的<span style="color: black;">道理</span>。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">首要</span><span style="color: black;">第1</span>行:</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;?xml version=”1.0″ encoding=”GB18030″?&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">这儿</span>说明了XML文档的版本和编码,<span style="color: black;">不消</span>修改,<span style="color: black;">亦</span><span style="color: black;">能够</span>不<span style="color: black;">晓得</span>这是啥。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">接下来,从&lt;DataDefine&gt;到&lt;/DataDefine&gt;是图源的主体。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;Version&gt;0&lt;/Version&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;Name&gt;img&lt;/Name&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">Version标签内,说明了图源的版本;Name标签内,是图源的内部名<span style="color: black;">叫作</span>。这两条均<span style="color: black;">能够</span>不修改。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;GeoGridType&gt;WebMercatorWGS84&lt;/GeoGridType&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">GeoGridType标签对内部比较重要,说明了当前图源的投影格式,<span style="color: black;">例如</span><span style="color: black;">这儿</span>WebMercatorWGS84,<span style="color: black;">暗示</span>原始在线地图为Web墨卡托,WGS84的图。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">而天地图分省,多采用经纬直投,<span style="color: black;">那样</span><span style="color: black;">这儿</span>就需要填写:TianDiTuLatLon</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;GeoGridType&gt;TianDiTuLatLon&lt;/GeoGridType&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">注:天地图分省版的LRC制作,将会在后期教程中更加<span style="color: black;">仔细</span>地展开。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;SampleSize&gt;256&lt;/SampleSize&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">SampleSize标签对内填写的值,是地图瓦片的尺寸。<span style="color: black;">平常</span>地图瓦片是256*256,少量地图瓦片是512*512瓦片。这个要<span style="color: black;">按照</span><span style="color: black;">详细</span>获取到的瓦片值来填写。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;FileExt&gt;png&lt;/FileExt&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">FileExt标签对内填写的是原始的瓦片格式,比较<span style="color: black;">平常</span>JPG、PNG类型。<span style="color: black;">详细</span><span style="color: black;">按照</span>获取到的瓦片来填写。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;DataVersion&gt;&lt;/DataVersion&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;DataType&gt;urlformat&lt;/DataType&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">DataVersion和DataType是数据版本和数据类型,这两条<span style="color: black;">能够</span><span style="color: black;">不消</span>管。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;TileRowDir&gt;NorthToSouth&lt;/TileRowDir&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">TileRowDir<span style="color: black;">暗示</span>原始在线地图的瓦片组织形式。是从北到南编号,还是从南到北编号。<span style="color: black;">都数</span>都是从北到南编号,采用的谷歌编码原则。<span style="color: black;">然则</span>有些图,用的标准TMS切片,则是从南到北。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;LocalPath&gt;&lt;/LocalPath&gt;本地瓦片路径,<span style="color: black;">倘若</span>对<span style="color: black;">已然</span>下载好的本地瓦片,则<span style="color: black;">能够</span>用该标签调用。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;UrlParamOrder&gt;Z,X,Y&lt;/UrlParamOrder&gt;这个定义了下面标签中%d的顺序,Z是层级、X是行号、Y是列号。<span style="color: black;">这儿</span><span style="color: black;">倘若</span>定义为Z,X,Y,则下面的URL中的%d,%d,%d分别对应ZXY。即<span style="color: black;">这儿</span><span style="color: black;">掌控</span>了URL中%d的含义和<span style="color: black;">次序</span>。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;NetPath&gt;http://s0.outdooractive.com/osm/OSMSummer/%d/%d/%d.png&lt;/NetPath&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">这个里面的内容<span style="color: black;">暗示</span>瓦片的<span style="color: black;">详细</span><span style="color: black;">位置</span>,<span style="color: black;">亦</span>是图源最核心的一部分。%d对应的是ZXY,按UrlParamOrder标签对内的<span style="color: black;">次序</span><span style="color: black;">掌控</span>。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">接下来是Range标签对:</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;Range&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;West&gt;-160&lt;/West&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;East&gt;160&lt;/East&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;South&gt;-85&lt;/South&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;North&gt;85&lt;/North&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;LevelBegin&gt;1&lt;/LevelBegin&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;LevelEnd&gt;18&lt;/LevelEnd&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;/Range&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">Range内部定义了这个图源的区域,最大最小层级。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">West、East、South、North定义了图源的默认区域。<span style="color: black;">倘若</span>制作一个全国范围的图源,就<span style="color: black;">能够</span>配置<span style="color: black;">这儿</span>,配置后,双击图层,则只<span style="color: black;">转</span>到全国视角而不是<span style="color: black;">全世界</span>。省级范围同理。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">LevelBegin和LevelEnd<span style="color: black;">掌控</span>了图源的最小和最大层级,<span style="color: black;">通常</span>在图源分析的时候,<span style="color: black;">能够</span>找到<span style="color: black;">详细</span>的值。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">整体看<span style="color: black;">重点</span>修改的<span style="color: black;">地区</span>就三块:</span></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/21e92e7c38f24df2b1f69292e0dd5297~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728798257&amp;x-signature=f7PK%2FJS%2BrvGzLkJjfTOKd%2F39f6A%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <h1 style="color: black; text-align: left; margin-bottom: 10px;">LRC图源制作案例分享</h1>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">在<span style="color: black;">认识</span>了图源内容<span style="color: black;">详细</span><span style="color: black;">掌控</span>什么后,就<span style="color: black;">能够</span>准备<span style="color: black;">起始</span>制作一个图源。<span style="color: black;">这儿</span>以open Street Map地图为例:</p>http://www.openstreetmap.org
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">先看图源要编辑的内容,下面代码中,要编辑修改的内容<span style="color: black;">已然</span>标红处理。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;?xml version=”1.0″ encoding=”GB18030″?&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;DataDefine&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;Version&gt;0&lt;/Version&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;Name&gt;img&lt;/Name&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;GeoGridType&gt;WebMercatorWGS84&lt;/GeoGridType&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;SampleSize&gt;256&lt;/SampleSize&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;FileExt&gt;png&lt;/FileExt&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;DataVersion&gt;&lt;/DataVersion&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;DataType&gt;urlformat&lt;/DataType&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;TileRowDir&gt;NorthToSouth&lt;/TileRowDir&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;LocalPath&gt;&lt;/LocalPath&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;UrlParamOrder&gt;Z,X,Y&lt;/UrlParamOrder&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;NetPath&gt;http://s0.outdooractive.com/osm/OSMSummer/%d/%d/%d.png&lt;/NetPath&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;Range&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;West&gt;-160&lt;/West&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;East&gt;160&lt;/East&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;South&gt;-85&lt;/South&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;North&gt;85&lt;/North&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;LevelBegin&gt;1&lt;/LevelBegin&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;LevelEnd&gt;18&lt;/LevelEnd&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;/Range&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;/DataDefine&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">咱们</span>打开OSM地图的网页:</p>http://www.openstreetmap.org

    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/7eb5ef5ccc664c449a4d6c0fa015172c~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728798257&amp;x-signature=BUFuRgzOKodhgIV2eTuCdyClJzs%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;">按F12</span></strong><span style="color: black;">,打开<span style="color: black;">研发</span>人员工具。<span style="color: black;">或</span>在菜单里,找到<span style="color: black;">研发</span>人员工具,点击</span><strong style="color: blue;"><span style="color: black;">NetWork</span></strong><span style="color: black;">:</span></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/73331b35741349db90730575b4e437b4~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728798257&amp;x-signature=YVboX3%2B264ghzCpJ5gGDpzbYryA%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">而后</span>随意拖拽地图,<span style="color: black;">能够</span>看到<span style="color: black;">研发</span>人员工具<span style="color: black;">已然</span>抓取到了浏览器的后台传输信息。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">找到任意一个瓦片,</span><strong style="color: blue;"><span style="color: black;">双击打开</span></strong><span style="color: black;">。</span></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/98a30bf022604a359917680640b9a6a2~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728798257&amp;x-signature=iI3WPMJsATM7dPhzkSeV4Dfp5hg%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">这<span style="color: black;">便是</span>网页地图的<span style="color: black;">基本</span>,瓦片:</span></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/e418589159d943b7ab4699e9d1d66e84~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728798257&amp;x-signature=VROD9DhWzTANu8KE4k10LzmEb3Y%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">1是瓦片本身。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">2是瓦片尺寸信息,对应图源内的&lt;SampleSize&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">3是瓦片的文件类型,对应图源的&lt;FileExt&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">4是图源URL,对应图源文件的&lt;NetPath&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">有这几个信息,基本就<span style="color: black;">能够</span>搞定图源文件了。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">重点再来分析下图源URL:</p>http://b.tile.openstreetmap.org/12/3424/1671.png
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">这儿</span>面12,是Z,<span style="color: black;">便是</span>层级。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">3424是X,<span style="color: black;">亦</span><span style="color: black;">便是</span>行号,<span style="color: black;">都数</span><span style="color: black;">状况</span>下,X比Y的值大。<span style="color: black;">由于</span>X的索引范围是±180°,Y的索引范围是±85°。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">1671是Y,<span style="color: black;">亦</span><span style="color: black;">便是</span>列号。</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">由此<span style="color: black;">能够</span>确定三个变量即层级、行号、列号的<span style="color: black;">次序</span>是:Z、X、Y,<span style="color: black;">因此</span>&lt;UrlParamOrder&gt;内应该填写:Z,X,Y</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">另一</span>,内应该填写:
    </p>http://b.tile.openstreetmap.org/%d/%d/%d.png

    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">至此,一个图源基本就写好了。<span style="color: black;">瞧瞧</span>写好的图源:</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;?xml version=”1.0″ encoding=”GB18030″?&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;DataDefine&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;Version&gt;0&lt;/Version&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;Name&gt;img&lt;/Name&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;GeoGridType&gt;WebMercatorWGS84&lt;/GeoGridType&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;SampleSize&gt;256&lt;/SampleSize&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;FileExt&gt;png&lt;/FileExt&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;DataVersion&gt;&lt;/DataVersion&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;DataType&gt;urlformat&lt;/DataType&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;TileRowDir&gt;NorthToSouth&lt;/TileRowDir&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;LocalPath&gt;&lt;/LocalPath&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;UrlParamOrder&gt;Z,X,Y&lt;/UrlParamOrder&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;NetPath&gt;http://b.tile.openstreetmap.org/%d/%d/%d.png&lt;/NetPath&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;Range&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;West&gt;-160&lt;/West&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;East&gt;160&lt;/East&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;South&gt;-85&lt;/South&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;North&gt;85&lt;/North&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;LevelBegin&gt;1&lt;/LevelBegin&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;LevelEnd&gt;18&lt;/LevelEnd&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;/Range&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">&lt;/DataDefine&gt;</span></p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">将<span style="color: black;">以上</span>内容,复制到记事本中,另存为,格式<span style="color: black;">选取</span>所有格式,起名:OSM地图.lrc。</span></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p26-sign.toutiaoimg.com/pgc-image/3d50b01ddaf94e4e86a90422d38878a5~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728798257&amp;x-signature=ymYyeO%2B%2BWSzUOfgJASSPMTq0hf8%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">接下来,打开LSV主程序,加载在线地图,<span style="color: black;">瞧瞧</span>制作的成果:</span></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/7b2df53f70644a0d92a3880afeb69e73~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728798257&amp;x-signature=HJgYdE7DzCk37LD2xeTl%2BFpqIxA%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">打开后,效果如图所示:</span></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/e914f750a15c480fa5520a588b5175cb~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728798257&amp;x-signature=taVvu2O6zbiscdhYWCzvqcTr2MM%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">放大<span style="color: black;">瞧瞧</span>:</span></p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><img src="https://p3-sign.toutiaoimg.com/pgc-image/2c0d7375277e45868110c26d4b126618~noop.image?_iz=58558&amp;from=article.pc_detail&amp;lk3s=953192f4&amp;x-expires=1728798257&amp;x-signature=NKHR6hNweE0dhKrBQNFGjQwAMW8%3D" style="width: 50%; margin-bottom: 20px;"></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">如此,在线图源就算制作完毕,就能正常<span style="color: black;">运用</span>了。网上有丰富的地图资源,即<span style="color: black;">能够</span><span style="color: black;">经过</span>此种方式接入图新地球进行浏览、下载到本地。</span></p>




nqkk58 发表于 2024-10-24 23:23:50

感谢你的精彩评论,为我的思绪打开了新的窗口。
页: [1]
查看完整版本: 测绘地图资源不足用?教你个万能图源制作办法