{"id":46650,"date":"2025-07-30T03:47:28","date_gmt":"2025-07-29T19:47:28","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/46650.html"},"modified":"2025-07-30T03:47:28","modified_gmt":"2025-07-29T19:47:28","slug":"%e6%90%ad%e5%bb%ba%e6%9c%ac%e5%9c%b0%e7%93%a6%e7%89%87%e5%9c%b0%e5%9b%be%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/46650.html","title":{"rendered":"\u642d\u5efa\u672c\u5730\u74e6\u7247\u5730\u56fe\u670d\u52a1\u5668"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"501\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729194726-6889254ef3445.png\" width=\"500\" \/><\/p>\n<h2>\u642d\u5efa\u672c\u5730\u74e6\u7247\u5730\u56fe\u670d\u52a1\u5668\u6307\u5357<\/h2>\n<p>\u4ec0\u4e48\u662f\u74e6\u7247\u5730\u56fe\u670d\u52a1\u5668<\/p>\n<p>\u74e6\u7247\u5730\u56fe\u670d\u52a1\u5668\u662f\u4e00\u79cd\u4e13\u95e8\u7528\u4e8e\u5b58\u50a8\u548c\u63d0\u4f9b\u5730\u7406\u7a7a\u95f4\u6570\u636e\u670d\u52a1\u7684\u7cfb\u7edf\u67b6\u6784&#xff0c;\u5176\u6838\u5fc3\u601d\u60f3\u662f\u5c06\u5730\u56fe\u6570\u636e\u9884\u5148\u5207\u5272\u6210\u6807\u51c6\u5316\u7684&#034;\u74e6\u7247&#034;(Tile)\u5355\u5143\u3002\u4ee5\u4e0b\u662f\u8be6\u7ec6\u8bf4\u660e&#xff1a;<\/p>\n<h2>\u74e6\u7247\u5730\u56fe\u7cfb\u7edf\u8be6\u89e3<\/h2>\n<h3>\u74e6\u7247\u7684\u57fa\u672c\u7279\u6027<\/h3>\n<ul>\n<li>\u5c3a\u5bf8\u89c4\u683c&#xff1a;\n<ul>\n<li>\u6807\u51c6\u74e6\u7247\u901a\u5e38\u91c7\u7528256\u00d7256\u50cf\u7d20\u7684\u6b63\u65b9\u5f62\u5c3a\u5bf8<\/li>\n<li>\u9ad8\u5206\u8fa8\u7387\u663e\u793a\u53ef\u80fd\u4f7f\u7528512\u00d7512\u50cf\u7d20\u89c4\u683c<\/li>\n<li>\u7279\u6b8a\u573a\u666f\u4e0b\u4e5f\u6709128\u00d7128\u62161024\u00d71024\u7b49\u5b9a\u5236\u5c3a\u5bf8<\/li>\n<\/ul>\n<\/li>\n<li>\u6587\u4ef6\u683c\u5f0f&#xff1a;\n<ul>\n<li>\u6805\u683c\u683c\u5f0f&#xff1a;PNG&#xff08;\u652f\u6301\u900f\u660e&#xff09;\u3001JPEG&#xff08;\u9002\u5408\u7167\u7247\u7c7b\u56fe\u50cf&#xff09;<\/li>\n<li>\u77e2\u91cf\u683c\u5f0f&#xff1a;PBF&#xff08;Protocolbuffer Binary Format&#xff09;\u7528\u4e8e\u77e2\u91cf\u74e6\u7247<\/li>\n<li>WebP\u7b49\u65b0\u578b\u683c\u5f0f\u4e5f\u9010\u6e10\u88ab\u91c7\u7528\u4ee5\u63d0\u9ad8\u538b\u7f29\u7387<\/li>\n<\/ul>\n<\/li>\n<li>\u5185\u5bb9\u7279\u6027&#xff1a;\n<ul>\n<li>\u6bcf\u4e2a\u74e6\u7247\u5bf9\u5e94\u7279\u5b9a\u5730\u7406\u5750\u6807\u7cfb&#xff08;\u5982WGS84\u6216Web\u58a8\u5361\u6258&#xff09;\u4e0b\u7684\u77e9\u5f62\u533a\u57df<\/li>\n<li>\u5305\u542b\u7279\u5b9a\u7f29\u653e\u7ea7\u522b(zoom level)\u4e0b\u7684\u5730\u7406\u6570\u636e<\/li>\n<li>\u53ef\u80fd\u5305\u542b\u5143\u6570\u636e\u4fe1\u606f\u5982\u65f6\u95f4\u6233\u3001\u6570\u636e\u6765\u6e90\u7b49<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>\u91d1\u5b57\u5854\u7ec4\u7ec7\u7ed3\u6784<\/h3>\n<ul>\n<li>\u5c42\u7ea7\u7ed3\u6784&#xff1a;\n<ul>\n<li>\u91c7\u7528\u91d1\u5b57\u5854\u6a21\u578b\u7ec4\u7ec7&#xff0c;\u4ece\u5168\u7403\u6982\u89c8\u5230\u5c40\u90e8\u7ec6\u8282<\/li>\n<li>\u9876\u5c42(zoom level 0)\u901a\u5e38\u4e3a1\u4e2a\u74e6\u7247\u8986\u76d6\u5168\u7403\u8303\u56f4<\/li>\n<li>\u91c7\u7528Web\u58a8\u5361\u6258\u6295\u5f71\u65f6&#xff0c;zoom level 0\u4e3a1\u4e2a\u74e6\u7247&#xff0c;\u91c7\u7528WGS84\u65f6\u53ef\u80fd\u4e3a2\u00d72&#061;4\u4e2a\u74e6\u7247<\/li>\n<\/ul>\n<\/li>\n<li>\u6570\u91cf\u589e\u957f\u89c4\u5f8b&#xff1a;\n<ul>\n<li>\u6bcf\u589e\u52a01\u4e2a\u7f29\u653e\u7ea7\u522b&#xff0c;\u74e6\u7247\u6570\u91cf\u53d8\u4e3a4\u500d<\/li>\n<li>\u5177\u4f53\u6570\u91cf&#xff1a;zoom level N\u7684\u74e6\u7247\u6570\u91cf\u4e3a4\u1d3a<\/li>\n<li>\u4f8b\u5982&#xff1a;zoom level 10\u9700\u89811,048,576\u4e2a\u74e6\u7247<\/li>\n<li>\u5b9e\u9645\u5e94\u7528\u4e2d\u6700\u9ad8zoom level\u901a\u5e38\u4e3a18-22\u7ea7<\/li>\n<\/ul>\n<\/li>\n<li>\u5750\u6807\u7cfb&#xff1a;\n<ul>\n<li>\u74e6\u7247\u91c7\u7528XYZ\u5750\u6807\u7cfb&#xff0c;x\u8868\u793a\u7ecf\u5ea6\u65b9\u5411&#xff0c;y\u8868\u793a\u7eac\u5ea6\u65b9\u5411<\/li>\n<li>\u74e6\u7247\u7f16\u53f7\u901a\u5e38\u4ece\u5de6\u4e0a\u89d2(0,0)\u5f00\u59cb\u8ba1\u7b97<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>\u5de5\u4f5c\u6d41\u7a0b<\/h3>\n<h4>(1) \u9884\u5904\u7406\u9636\u6bb5<\/h4>\n<ul>\n<li>\u6570\u636e\u51c6\u5907&#xff1a;\n<ul>\n<li>\u539f\u59cb\u6570\u636e\u6765\u6e90\u5305\u62ec&#xff1a;\u536b\u661f\u9065\u611f\u5f71\u50cf\u3001\u822a\u7a7a\u6444\u5f71\u3001\u77e2\u91cf\u5730\u56fe\u6570\u636e\u3001\u6fc0\u5149\u96f7\u8fbe\u6570\u636e\u7b49<\/li>\n<li>\u6570\u636e\u9700\u7ecf\u8fc7\u5750\u6807\u7cfb\u7edf\u4e00\u3001\u62fc\u63a5\u3001\u8c03\u8272\u7b49\u9884\u5904\u7406<\/li>\n<\/ul>\n<\/li>\n<li>\u74e6\u7247\u5207\u5272&#xff1a;\n<ul>\n<li>\u4f7f\u7528\u4e13\u4e1aGIS\u8f6f\u4ef6&#xff08;\u5982GDAL\u3001ArcGIS&#xff09;\u6216\u4e13\u7528\u74e6\u7247\u751f\u6210\u5de5\u5177<\/li>\n<li>\u6309\u91d1\u5b57\u5854\u5c42\u7ea7\u9010\u7ea7\u5207\u5272&#xff0c;\u751f\u6210\u4e0d\u540c\u7ec6\u8282\u7ea7\u522b\u7684\u74e6\u7247<\/li>\n<li>\u53ef\u8bbe\u7f6e\u4e0d\u540c\u53c2\u6570&#xff1a;\u538b\u7f29\u8d28\u91cf\u3001DPI\u3001\u6c34\u5370\u7b49<\/li>\n<\/ul>\n<\/li>\n<li>\u5b58\u50a8\u65b9\u6848&#xff1a;\n<ul>\n<li>\u6587\u4ef6\u7cfb\u7edf\u5b58\u50a8&#xff1a;\u6309z\/x\/y\u76ee\u5f55\u5c42\u7ea7\u7ec4\u7ec7&#xff08;\u5982\/10\/543\/321.png&#xff09;<\/li>\n<li>\u6570\u636e\u5e93\u5b58\u50a8&#xff1a;\u4f7f\u7528MBTiles\u7b49\u4e13\u7528\u683c\u5f0f\u6216PostGIS\u7b49\u7a7a\u95f4\u6570\u636e\u5e93<\/li>\n<li>\u4e91\u5b58\u50a8&#xff1a;AWS S3\u3001\u963f\u91cc\u4e91OSS\u7b49\u5bf9\u8c61\u5b58\u50a8\u670d\u52a1<\/li>\n<li>\u53ef\u914d\u5408CDN\u8fdb\u884c\u5168\u7403\u52a0\u901f\u5206\u53d1<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li>\u6bcf\u4e2a\u74e6\u7247\u901a\u5e38\u662f256\u00d7256\u50cf\u7d20\u7684\u6b63\u65b9\u5f62\u56fe\u7247&#xff08;\u4e5f\u6709512\u00d7512\u7b49\u5176\u4ed6\u89c4\u683c&#xff09;<\/li>\n<li>\u91c7\u7528\u6807\u51c6\u56fe\u50cf\u683c\u5f0f&#xff08;\u5982PNG\u3001JPEG&#xff09;\u6216\u77e2\u91cf\u683c\u5f0f&#xff08;\u5982PBF&#xff09;<\/li>\n<li>\u5305\u542b\u7279\u5b9a\u5730\u7406\u533a\u57df\u548c\u7279\u5b9a\u7f29\u653e\u7ea7\u522b\u7684\u6570\u636e<\/li>\n<\/ul>\n<li>\u91d1\u5b57\u5854\u7ec4\u7ec7\u7ed3\u6784<\/li>\n<ul>\n<li>\u6309\u7167\u7f29\u653e\u7ea7\u522b(zoom level)\u5206\u5c42&#xff0c;\u5f62\u6210\u91d1\u5b57\u5854\u72b6\u7684\u6570\u636e\u7ed3\u6784<\/li>\n<li>\u6700\u4e0a\u5c42&#xff08;zoom level 0&#xff09;\u901a\u5e38\u663e\u793a\u5168\u7403\u8303\u56f4&#xff0c;\u53ef\u80fd\u53ea\u5305\u542b1-4\u4e2a\u74e6\u7247<\/li>\n<li>\u6bcf\u589e\u52a0\u4e00\u4e2a\u7f29\u653e\u7ea7\u522b&#xff0c;\u74e6\u7247\u6570\u91cf\u5448\u6307\u6570\u589e\u957f&#xff08;\u7ea64\u500d&#xff09;<\/li>\n<li>\u4f8b\u5982&#xff1a;zoom level 1\u67094\u4e2a\u74e6\u7247&#xff0c;zoom level 2\u670916\u4e2a&#xff0c;\u4ee5\u6b64\u7c7b\u63a8<\/li>\n<\/ul>\n<li>\u5de5\u4f5c\u6d41\u7a0b (1) \u9884\u5904\u7406\u9636\u6bb5&#xff1a;<\/li>\n<p>(2) \u670d\u52a1\u9636\u6bb5&#xff1a;<\/p>\n<ul>\n<li>\u5ba2\u6237\u7aef&#xff08;\u5982Web\u6d4f\u89c8\u5668\u3001\u79fb\u52a8\u5e94\u7528&#xff09;\u6839\u636e\u5f53\u524d\u89c6\u56fe\u7684\u7ecf\u7eac\u5ea6\u8303\u56f4\u548c\u7f29\u653e\u7ea7\u522b\u8ba1\u7b97\u6240\u9700\u74e6\u7247<\/li>\n<li>\u5411\u670d\u52a1\u5668\u53d1\u9001\u5305\u542b\u74e6\u7247\u5750\u6807&#xff08;x,y,z&#xff09;\u7684\u8bf7\u6c42<\/li>\n<li>\u670d\u52a1\u5668\u8fd4\u56de\u5bf9\u5e94\u74e6\u7247&#xff0c;\u5ba2\u6237\u7aef\u5c06\u5176\u62fc\u63a5\u6210\u8fde\u7eed\u7684\u5730\u56fe\u663e\u793a<\/li>\n<\/ul>\n<li>\u5178\u578b\u5e94\u7528\u573a\u666f<\/li>\n<ul>\n<li>Web\u5730\u56fe\u670d\u52a1&#xff08;\u5982Google Maps\u3001OpenStreetMap&#xff09;<\/li>\n<li>\u79fb\u52a8\u7aef\u5730\u56fe\u5e94\u7528<\/li>\n<li>GIS\u7cfb\u7edf\u524d\u7aef\u5c55\u793a<\/li>\n<li>\u6e38\u620f\u5730\u56fe\u5f15\u64ce<\/li>\n<\/ul>\n<li>\u4f18\u52bf\u7279\u70b9<\/li>\n<ul>\n<li>\u5feb\u901f\u54cd\u5e94&#xff1a;\u9884\u751f\u6210\u7684\u74e6\u7247\u65e0\u9700\u5b9e\u65f6\u6e32\u67d3<\/li>\n<li>\u8282\u7701\u5e26\u5bbd&#xff1a;\u53ea\u4f20\u8f93\u5f53\u524d\u89c6\u56fe\u9700\u8981\u7684\u74e6\u7247<\/li>\n<li>\u826f\u597d\u7684\u7f13\u5b58\u6027\u80fd&#xff1a;\u76f8\u540c\u74e6\u7247\u53ef\u4ee5\u88ab\u91cd\u590d\u5229\u7528<\/li>\n<li>\u53ef\u6269\u5c55\u6027&#xff1a;\u652f\u6301\u5206\u5e03\u5f0f\u90e8\u7f72\u548cCDN\u52a0\u901f<\/li>\n<\/ul>\n<li>\u5e38\u89c1\u6280\u672f\u5b9e\u73b0<\/li>\n<ul>\n<li>\u5f00\u6e90\u65b9\u6848&#xff1a;GeoServer\u3001MapServer\u3001TileServer GL<\/li>\n<li>\u5546\u4e1a\u65b9\u6848&#xff1a;ArcGIS Server\u3001Mapbox<\/li>\n<li>\u5b58\u50a8\u683c\u5f0f&#xff1a;MBTiles\u3001GeoPackage<\/li>\n<\/ul>\n<h2>\u642d\u5efa\u524d\u7684\u51c6\u5907\u5de5\u4f5c<\/h2>\n<h3>\u786c\u4ef6\u8981\u6c42<\/h3>\n<h4>\u670d\u52a1\u5668\u914d\u7f6e<\/h4>\n<ul>\n<li>\u5904\u7406\u5668&#xff1a;\u81f3\u5c11\u9700\u89814\u6838CPU&#xff0c;\u63a8\u8350Intel Xeon\u6216AMD EPYC\u7cfb\u5217\u670d\u52a1\u5668\u7ea7\u5904\u7406\u5668\u3002\u5bf9\u4e8e\u5927\u89c4\u6a21\u5730\u56fe\u670d\u52a1&#xff0c;\u5efa\u8bae\u4f7f\u75288\u6838\u6216\u66f4\u9ad8\u914d\u7f6e\u3002<\/li>\n<li>\u5185\u5b58&#xff1a;\u6700\u4f4e8GB&#xff0c;\u5b9e\u9645\u9700\u6c42\u53d6\u51b3\u4e8e\u5e76\u53d1\u7528\u6237\u6570\u91cf\u3002\u6bcf100\u4e2a\u5e76\u53d1\u7528\u6237\u7ea6\u9700\u589e\u52a01-2GB\u5185\u5b58&#xff0c;\u9ad8\u8d1f\u8f7d\u573a\u666f\u53ef\u80fd\u9700\u898132GB\u6216\u66f4\u591a\u3002<\/li>\n<li>\u5b58\u50a8\u7a7a\u95f4&#xff1a;\n<ul>\n<li>\u5c0f\u578b\u57ce\u5e02\u5730\u56fe&#xff1a;\u7ea6\u970020-50GB\u5b58\u50a8<\/li>\n<li>\u7701\u7ea7\u5730\u56fe&#xff1a;100-500GB<\/li>\n<li>\u5168\u56fd\u6216\u5168\u7403\u5730\u56fe&#xff1a;TB\u7ea7\u5b58\u50a8<\/li>\n<li>\u5efa\u8bae\u4f7f\u7528SSD\u4ee5\u63d0\u9ad8I\/O\u6027\u80fd&#xff0c;\u7279\u522b\u662f\u5bf9\u4e8e\u9891\u7e41\u8bfb\u53d6\u7684\u74e6\u7247\u6570\u636e<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4>\u7f51\u7edc\u8981\u6c42<\/h4>\n<ul>\n<li>\u7a33\u5b9a\u7684\u5bbd\u5e26\u8fde\u63a5&#xff0c;\u5efa\u8bae\u4e0a\u884c\u5e26\u5bbd\u4e0d\u4f4e\u4e8e100Mbps<\/li>\n<li>\u5bf9\u4e8e\u5168\u7403\u670d\u52a1&#xff0c;\u63a8\u8350\u4f7f\u7528CDN\u52a0\u901f<\/li>\n<li>\u56fa\u5b9aIP\u5730\u5740\u6216\u57df\u540d\u89e3\u6790<\/li>\n<\/ul>\n<h3>\u8f6f\u4ef6\u7ec4\u4ef6<\/h3>\n<h4>\u64cd\u4f5c\u7cfb\u7edf<\/h4>\n<ul>\n<li>\u63a8\u8350\u7cfb\u7edf&#xff1a;Linux\u53d1\u884c\u7248\n<ul>\n<li>Ubuntu LTS (20.04\/22.04) \u63d0\u4f9b\u957f\u671f\u652f\u6301<\/li>\n<li>CentOS\/Rocky Linux \u9002\u5408\u4f01\u4e1a\u73af\u5883<\/li>\n<\/ul>\n<\/li>\n<li>\u4e0d\u63a8\u8350&#xff1a;Windows\u7cfb\u7edf&#xff0c;\u56e0\u6027\u80fd\u548c\u7ba1\u7406\u590d\u6742\u5ea6\u8f83\u9ad8<\/li>\n<\/ul>\n<h4>\u6570\u636e\u5e93\u7cfb\u7edf<\/h4>\n<ul>\n<li>PostgreSQL&#xff1a;\u7248\u672c12\u6216\u66f4\u9ad8\n<ul>\n<li>PostGIS\u6269\u5c55&#xff1a;3.0&#043;\u7248\u672c&#xff0c;\u63d0\u4f9b\u5730\u7406\u7a7a\u95f4\u6570\u636e\u5904\u7406\u80fd\u529b<\/li>\n<li>\u914d\u7f6e\u5efa\u8bae&#xff1a;\u4e13\u7528\u6570\u636e\u5e93\u670d\u52a1\u5668&#xff0c;\u4f18\u5316shared_buffers\u7b49\u53c2\u6570<\/li>\n<\/ul>\n<\/li>\n<li>\u66ff\u4ee3\u65b9\u6848&#xff1a;MySQL(\u5e26\u6709\u7a7a\u95f4\u6269\u5c55)\u3001MongoDB(\u9002\u5408\u6587\u6863\u578b\u5730\u7406\u6570\u636e)<\/li>\n<\/ul>\n<h4>\u5730\u56fe\u670d\u52a1\u5668\u8f6f\u4ef6<\/h4>\n<li>GeoServer&#xff1a;\n<ul>\n<li>\u9002\u5408WMS\/WFS\u670d\u52a1<\/li>\n<li>\u652f\u6301\u591a\u79cd\u6570\u636e\u6e90<\/li>\n<li>\u9700\u8981Java\u73af\u5883<\/li>\n<\/ul>\n<\/li>\n<li>MapServer&#xff1a;\n<ul>\n<li>\u8f7b\u91cf\u7ea7C\u8bed\u8a00\u5b9e\u73b0<\/li>\n<li>\u9ad8\u6027\u80fd\u4f46\u914d\u7f6e\u8f83\u590d\u6742<\/li>\n<\/ul>\n<\/li>\n<li>TileServer GL&#xff1a;\n<ul>\n<li>\u4e13\u6ce8\u4e8e\u77e2\u91cf\u74e6\u7247<\/li>\n<li>\u57fa\u4e8eNode.js<\/li>\n<li>\u652f\u6301GL\u6837\u5f0f\u89c4\u8303<\/li>\n<\/ul>\n<\/li>\n<h4>\u8f85\u52a9\u5de5\u5177<\/h4>\n<ul>\n<li>GDAL\/OGR&#xff1a;\u6570\u636e\u8f6c\u6362\u5de5\u5177<\/li>\n<li>QGIS&#xff1a;\u53ef\u89c6\u5316\u68c0\u67e5\u548c\u8c03\u8bd5<\/li>\n<\/ul>\n<h3>\u6570\u636e\u51c6\u5907<\/h3>\n<h4>\u5730\u56fe\u6570\u636e\u83b7\u53d6<\/h4>\n<li>\u5f00\u653e\u6570\u636e\u6e90&#xff1a;\n<ul>\n<li>OpenStreetMap&#xff1a;\n<ul>\n<li>\u5168\u7403\u6570\u636e&#xff1a;geofabrik.de\u63d0\u4f9b\u7684daily\/weekly\u66f4\u65b0<\/li>\n<li>\u533a\u57df\u63d0\u53d6&#xff1a;\u53ef\u901a\u8fc7osmosis\u6216osmconvert\u5de5\u5177<\/li>\n<li>\u683c\u5f0f&#xff1a;.osm(XML)\u6216.pbf(\u4e8c\u8fdb\u5236&#xff0c;\u66f4\u7d27\u51d1)<\/li>\n<\/ul>\n<\/li>\n<li>Natural Earth&#xff1a;\u57fa\u7840\u5730\u7406\u6570\u636e<\/li>\n<\/ul>\n<\/li>\n<li>\u5546\u4e1a\u6570\u636e\u6e90&#xff1a;\n<ul>\n<li>\u9ad8\u7cbe\u5ea6\u536b\u661f\u5f71\u50cf<\/li>\n<li>\u4e13\u4e1aPOI\u6570\u636e<\/li>\n<li>\u5b9e\u65f6\u4ea4\u901a\u6570\u636e<\/li>\n<\/ul>\n<\/li>\n<h4>\u6837\u5f0f\u914d\u7f6e<\/h4>\n<ul>\n<li>Mapbox GL\u6837\u5f0f&#xff1a;\n<ul>\n<li>\u5305\u542b\u591a\u4e2a\u56fe\u5c42\u5b9a\u4e49<\/li>\n<li>\u4f7f\u7528JSON\u683c\u5f0f<\/li>\n<li>\u9700\u8981\u914d\u5957\u7684\u5b57\u4f53\u5e93\u548c\u56fe\u6807\u96c6<\/li>\n<\/ul>\n<\/li>\n<li>\u4f20\u7edfSLD\u6837\u5f0f&#xff1a;\n<ul>\n<li>\u7528\u4e8eWMS\u670d\u52a1<\/li>\n<li>XML\u683c\u5f0f<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4>\u9ad8\u7a0b\u6570\u636e<\/h4>\n<ul>\n<li>SRTM&#xff1a;30\u7c73\/90\u7c73\u5206\u8fa8\u7387\u5168\u7403\u6570\u636e<\/li>\n<li>ASTER GDEM&#xff1a;30\u7c73\u5206\u8fa8\u7387<\/li>\n<li>LiDAR\u6570\u636e&#xff1a;\u9ad8\u7cbe\u5ea6&#xff0c;\u9700\u4e13\u95e8\u5904\u7406<\/li>\n<li>\u5904\u7406\u5de5\u5177&#xff1a;GDAL\u751f\u6210DEM&#xff0c;\u540e\u7eed\u53ef\u5236\u4f5c\u5730\u5f62\u9634\u5f71\u56fe\u62163D\u5730\u5f62<\/li>\n<\/ul>\n<h4>\u9884\u5904\u7406\u6b65\u9aa4<\/h4>\n<li>\u6570\u636e\u6e05\u6d17&#xff1a;\u53bb\u9664\u5197\u4f59\u8282\u70b9&#xff0c;\u4f18\u5316\u62d3\u6251<\/li>\n<li>\u6570\u636e\u8f6c\u6362&#xff1a;\u5982\u5c06OSM\u6570\u636e\u5bfc\u5165PostgreSQL<\/li>\n<li>\u5efa\u7acb\u7a7a\u95f4\u7d22\u5f15&#xff1a;\u52a0\u901f\u67e5\u8be2<\/li>\n<li>\u74e6\u7247\u9884\u751f\u6210&#xff1a;\u9759\u6001\u74e6\u7247\u9700\u8981\u9884\u5148\u6e32\u67d3<\/li>\n<h3>\u8be6\u7ec6\u642d\u5efa\u6b65\u9aa4<\/h3>\n<h4>\u6b65\u9aa41&#xff1a;\u5b89\u88c5\u57fa\u7840\u8f6f\u4ef6<\/h4>\n<p># Ubuntu\u793a\u4f8b<br \/>\nsudo apt update<br \/>\nsudo apt install -y postgresql postgis apache2<br \/>\nsudo apt install -y osm2pgsql git curl<\/p>\n<h4>\u6b65\u9aa42&#xff1a;\u914d\u7f6ePostgreSQL\u6570\u636e\u5e93<\/h4>\n<p>&#8212; \u521b\u5efa\u4e13\u7528\u6570\u636e\u5e93\u7528\u6237<br \/>\nCREATE USER gisuser WITH PASSWORD &#039;yourpassword&#039;;<\/p>\n<p>&#8212; \u521b\u5efa\u6570\u636e\u5e93<br \/>\nCREATE DATABASE gisdb WITH OWNER gisuser;<\/p>\n<p>&#8212; \u542f\u7528PostGIS\u6269\u5c55<br \/>\n\\\\c gisdb<br \/>\nCREATE EXTENSION postgis;<br \/>\nCREATE EXTENSION hstore;<\/p>\n<h4>\u6b65\u9aa43&#xff1a;\u5bfc\u5165\u5730\u56fe\u6570\u636e<\/h4>\n<p># \u4e0b\u8f7dOpenStreetMap\u6570\u636e<br \/>\nwget https:\/\/download.geofabrik.de\/asia\/china-latest.osm.pbf<\/p>\n<p># \u5bfc\u5165\u6570\u636e\u5230PostgreSQL<br \/>\nosm2pgsql -c -d gisdb -U gisuser -H localhost -W china-latest.osm.pbf \\\\<br \/>\n  &#8211;slim -C 4000 &#8211;number-processes 4<\/p>\n<h4>\u6b65\u9aa44&#xff1a;\u5b89\u88c5\u548c\u914d\u7f6e\u5730\u56fe\u670d\u52a1\u5668(\u4ee5TileServer GL\u4e3a\u4f8b)<\/h4>\n<p># \u5b89\u88c5Node.js\u548cTileServer GL<br \/>\ncurl -sL https:\/\/deb.nodesource.com\/setup_14.x | sudo -E bash &#8211;<br \/>\nsudo apt install -y nodejs<br \/>\nsudo npm install -g tileserver-gl<\/p>\n<p># \u51c6\u5907\u914d\u7f6e\u6587\u4ef6(config.json)<br \/>\n{<br \/>\n  &#034;options&#034;: {<br \/>\n    &#034;paths&#034;: {<br \/>\n      &#034;root&#034;: &#034;\/var\/www\/tiles&#034;,<br \/>\n      &#034;data&#034;: &#034;\/var\/www\/tiles\/data&#034;,<br \/>\n      &#034;styles&#034;: &#034;\/var\/www\/tiles\/styles&#034;<br \/>\n    }<br \/>\n  },<br \/>\n  &#034;data&#034;: {<br \/>\n    &#034;openstreetmap&#034;: {<br \/>\n      &#034;type&#034;: &#034;postgis&#034;,<br \/>\n      &#034;dbname&#034;: &#034;gisdb&#034;,<br \/>\n      &#034;user&#034;: &#034;gisuser&#034;,<br \/>\n      &#034;password&#034;: &#034;yourpassword&#034;,<br \/>\n      &#034;host&#034;: &#034;localhost&#034;<br \/>\n    }<br \/>\n  },<br \/>\n  &#034;styles&#034;: {<br \/>\n    &#034;basic&#034;: {<br \/>\n      &#034;style&#034;: &#034;styles\/basic\/style.json&#034;,<br \/>\n      &#034;tilejson&#034;: {<br \/>\n        &#034;bounds&#034;: [73.66, 18.16, 135.05, 53.55]<br \/>\n      }<br \/>\n    }<br \/>\n  }<br \/>\n}<\/p>\n<h4>\u6b65\u9aa45&#xff1a;\u542f\u52a8\u670d\u52a1<\/h4>\n<p># \u521b\u5efa\u670d\u52a1\u76ee\u5f55<br \/>\nsudo mkdir -p \/var\/www\/tiles\/{data,styles}<br \/>\nsudo chown -R $USER:$USER \/var\/www\/tiles<\/p>\n<p># \u4e0b\u8f7d\u793a\u4f8b\u6837\u5f0f<br \/>\ngit clone https:\/\/github.com\/openmaptiles\/osm-bright-gl-style.git \/var\/www\/tiles\/styles\/basic<\/p>\n<p># \u542f\u52a8TileServer<br \/>\ntileserver-gl -c config.json<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb885\u6b21\uff0c\u70b9\u8d5e21\u6b21\uff0c\u6536\u85cf9\u6b21\u3002\u74e6\u7247\u5730\u56fe\u670d\u52a1\u5668\u662f\u4e00\u79cd\u5c06\u5730\u7406\u7a7a\u95f4\u6570\u636e\u4ee5\u9884\u5148\u751f\u6210\u7684&quot;\u74e6\u7247&quot;(Tile)\u5f62\u5f0f\u5b58\u50a8\u5e76\u63d0\u4f9b\u670d\u52a1\u7684\u7cfb\u7edf\u3002\u6bcf\u4e2a\u74e6\u7247\u901a\u5e38\u662f256\u00d7256\u50cf\u7d20\u7684\u6b63\u65b9\u5f62\u56fe\u7247\uff0c\u6309\u7167\u4e0d\u540c\u7f29\u653e\u7ea7\u522b(zoom level)\u7ec4\u7ec7\u6210\u91d1\u5b57\u5854\u7ed3\u6784\u3002\u5f53\u7528\u6237\u6d4f\u89c8\u5730\u56fe\u65f6\uff0c\u5ba2\u6237\u7aef\u4f1a\u6839\u636e\u5f53\u524d\u89c6\u56fe\u8303\u56f4\u548c\u7f29\u653e\u7ea7\u522b\u8bf7\u6c42\u5bf9\u5e94\u7684\u74e6\u7247\u5e76\u62fc\u63a5\u6210\u5b8c\u6574\u5730\u56fe\u3002_\u5730\u56fe\u670d\u52a1\u5668\u642d\u5efa<\/p>\n","protected":false},"author":2,"featured_media":46649,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[43,44],"topic":[],"class_list":["post-46650","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u642d\u5efa\u672c\u5730\u74e6\u7247\u5730\u56fe\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/46650.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u642d\u5efa\u672c\u5730\u74e6\u7247\u5730\u56fe\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb885\u6b21\uff0c\u70b9\u8d5e21\u6b21\uff0c\u6536\u85cf9\u6b21\u3002\u74e6\u7247\u5730\u56fe\u670d\u52a1\u5668\u662f\u4e00\u79cd\u5c06\u5730\u7406\u7a7a\u95f4\u6570\u636e\u4ee5\u9884\u5148\u751f\u6210\u7684&quot;\u74e6\u7247&quot;(Tile)\u5f62\u5f0f\u5b58\u50a8\u5e76\u63d0\u4f9b\u670d\u52a1\u7684\u7cfb\u7edf\u3002\u6bcf\u4e2a\u74e6\u7247\u901a\u5e38\u662f256\u00d7256\u50cf\u7d20\u7684\u6b63\u65b9\u5f62\u56fe\u7247\uff0c\u6309\u7167\u4e0d\u540c\u7f29\u653e\u7ea7\u522b(zoom level)\u7ec4\u7ec7\u6210\u91d1\u5b57\u5854\u7ed3\u6784\u3002\u5f53\u7528\u6237\u6d4f\u89c8\u5730\u56fe\u65f6\uff0c\u5ba2\u6237\u7aef\u4f1a\u6839\u636e\u5f53\u524d\u89c6\u56fe\u8303\u56f4\u548c\u7f29\u653e\u7ea7\u522b\u8bf7\u6c42\u5bf9\u5e94\u7684\u74e6\u7247\u5e76\u62fc\u63a5\u6210\u5b8c\u6574\u5730\u56fe\u3002_\u5730\u56fe\u670d\u52a1\u5668\u642d\u5efa\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/46650.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-29T19:47:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729194726-6889254ef3445.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/46650.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/46650.html\",\"name\":\"\u642d\u5efa\u672c\u5730\u74e6\u7247\u5730\u56fe\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-07-29T19:47:28+00:00\",\"dateModified\":\"2025-07-29T19:47:28+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/46650.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/46650.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/46650.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u642d\u5efa\u672c\u5730\u74e6\u7247\u5730\u56fe\u670d\u52a1\u5668\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u642d\u5efa\u672c\u5730\u74e6\u7247\u5730\u56fe\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/46650.html","og_locale":"zh_CN","og_type":"article","og_title":"\u642d\u5efa\u672c\u5730\u74e6\u7247\u5730\u56fe\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb885\u6b21\uff0c\u70b9\u8d5e21\u6b21\uff0c\u6536\u85cf9\u6b21\u3002\u74e6\u7247\u5730\u56fe\u670d\u52a1\u5668\u662f\u4e00\u79cd\u5c06\u5730\u7406\u7a7a\u95f4\u6570\u636e\u4ee5\u9884\u5148\u751f\u6210\u7684&quot;\u74e6\u7247&quot;(Tile)\u5f62\u5f0f\u5b58\u50a8\u5e76\u63d0\u4f9b\u670d\u52a1\u7684\u7cfb\u7edf\u3002\u6bcf\u4e2a\u74e6\u7247\u901a\u5e38\u662f256\u00d7256\u50cf\u7d20\u7684\u6b63\u65b9\u5f62\u56fe\u7247\uff0c\u6309\u7167\u4e0d\u540c\u7f29\u653e\u7ea7\u522b(zoom level)\u7ec4\u7ec7\u6210\u91d1\u5b57\u5854\u7ed3\u6784\u3002\u5f53\u7528\u6237\u6d4f\u89c8\u5730\u56fe\u65f6\uff0c\u5ba2\u6237\u7aef\u4f1a\u6839\u636e\u5f53\u524d\u89c6\u56fe\u8303\u56f4\u548c\u7f29\u653e\u7ea7\u522b\u8bf7\u6c42\u5bf9\u5e94\u7684\u74e6\u7247\u5e76\u62fc\u63a5\u6210\u5b8c\u6574\u5730\u56fe\u3002_\u5730\u56fe\u670d\u52a1\u5668\u642d\u5efa","og_url":"https:\/\/www.wsisp.com\/helps\/46650.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-07-29T19:47:28+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729194726-6889254ef3445.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/46650.html","url":"https:\/\/www.wsisp.com\/helps\/46650.html","name":"\u642d\u5efa\u672c\u5730\u74e6\u7247\u5730\u56fe\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-07-29T19:47:28+00:00","dateModified":"2025-07-29T19:47:28+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/46650.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/46650.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/46650.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u642d\u5efa\u672c\u5730\u74e6\u7247\u5730\u56fe\u670d\u52a1\u5668"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/46650","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=46650"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/46650\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/46649"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=46650"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=46650"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=46650"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=46650"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}