{"id":974415,"date":"2024-12-27T06:04:57","date_gmt":"2024-12-26T22:04:57","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/974415.html"},"modified":"2024-12-27T06:04:59","modified_gmt":"2024-12-26T22:04:59","slug":"python%e5%a6%82%e4%bd%95%e7%bb%98%e5%88%b6%e5%87%bageotif","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/974415.html","title":{"rendered":"python\u5982\u4f55\u7ed8\u5236\u51fageotif"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24200128\/11de90e4-2be6-43a8-ac9d-4867098cf90f.webp\" alt=\"python\u5982\u4f55\u7ed8\u5236\u51fageotif\" \/><\/p>\n<p><p> <strong>\u8981\u5728Python\u4e2d\u7ed8\u5236GeoTIFF\uff0c\u53ef\u4ee5\u4f7f\u7528<code>geopandas<\/code>\u3001<code>rasterio<\/code>\u548c<code>matplotlib<\/code>\u5e93\u3002\u9996\u5148\uff0c\u4f7f\u7528<code>rasterio<\/code>\u8bfb\u53d6GeoTIFF\u6587\u4ef6\uff0c\u7136\u540e\u5229\u7528<code>matplotlib<\/code>\u8fdb\u884c\u7ed8\u56fe\uff0c<code>geopandas<\/code>\u5219\u53ef\u7528\u4e8e\u5904\u7406\u77e2\u91cf\u6570\u636e\u3002\u4ee5\u4e0b\u662f\u8be6\u7ec6\u6b65\u9aa4\uff1a\u5b89\u88c5\u5fc5\u8981\u7684\u5e93\u3001\u4f7f\u7528<code>rasterio<\/code>\u8bfb\u53d6\u6570\u636e\u3001\u5229\u7528<code>matplotlib<\/code>\u7ed8\u5236\u56fe\u50cf\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u8be6\u7ec6\u63cf\u8ff0\u5176\u4e2d\u4e00\u70b9\u4e4b\u524d\uff0c\u6211\u4eec\u9700\u8981\u4e86\u89e3\u5982\u4f55\u5728Python\u73af\u5883\u4e2d\u6709\u6548\u5730\u5904\u7406\u548c\u7ed8\u5236\u5730\u7406\u7a7a\u95f4\u6570\u636e\u3002\u5730\u7406\u7a7a\u95f4\u6570\u636e\u5904\u7406\u6d89\u53ca\u591a\u4e2a\u6b65\u9aa4\uff0c\u5305\u62ec\u6570\u636e\u8bfb\u53d6\u3001\u5904\u7406\u548c\u53ef\u89c6\u5316\u3002Python\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u5e93\u6765\u5e2e\u52a9\u5b8c\u6210\u8fd9\u4e9b\u4efb\u52a1\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u63a2\u8ba8Python\u4e2d\u5982\u4f55\u7ed8\u5236GeoTIFF\u6587\u4ef6\u7684\u5168\u8fc7\u7a0b\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5b89\u88c5\u5fc5\u8981\u7684\u5e93<\/p>\n<\/p>\n<p><p>\u5728\u5f00\u59cb\u4e4b\u524d\uff0c\u9700\u8981\u786e\u4fdd\u5b89\u88c5\u4e86\u4ee5\u4e0bPython\u5e93\uff1a<code>rasterio<\/code>\u3001<code>matplotlib<\/code>\u548c<code>geopandas<\/code>\u3002\u8fd9\u4e9b\u5e93\u53ef\u4ee5\u901a\u8fc7pip\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install rasterio matplotlib geopandas<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528Rasterio\u8bfb\u53d6GeoTIFF\u6587\u4ef6<\/p>\n<\/p>\n<p><p><code>rasterio<\/code>\u662f\u4e00\u4e2a\u4e13\u95e8\u7528\u4e8e\u5904\u7406\u5149\u6805\u6570\u636e\u7684Python\u5e93\u3002\u5b83\u80fd\u591f\u8bfb\u53d6\u3001\u5199\u5165\u548c\u5206\u6790\u5730\u7406\u7a7a\u95f4\u5149\u6805\u6570\u636e\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528<code>rasterio<\/code>\u8bfb\u53d6GeoTIFF\u6587\u4ef6\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import rasterio<\/p>\n<h2><strong>\u6253\u5f00GeoTIFF\u6587\u4ef6<\/strong><\/h2>\n<p>file_path = &#39;path\/to\/your\/geotiff\/file.tif&#39;<\/p>\n<p>with rasterio.open(file_path) as dataset:<\/p>\n<p>    # \u8bfb\u53d6\u6570\u636e<\/p>\n<p>    band1 = dataset.read(1)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong><code>rasterio<\/code>\u80fd\u591f\u8bfb\u53d6\u5730\u7406\u7a7a\u95f4\u6570\u636e\u7684\u5143\u6570\u636e\u4ee5\u53ca\u6295\u5f71\u4fe1\u606f\uff0c\u8fd9\u5bf9\u4e8e\u5730\u7406\u7a7a\u95f4\u5206\u6790\u81f3\u5173\u91cd\u8981\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u4e09\u3001\u5229\u7528Matplotlib\u7ed8\u5236\u56fe\u50cf<\/p>\n<\/p>\n<p><p><code>matplotlib<\/code>\u662fPython\u4e2d\u6700\u5e38\u7528\u7684\u7ed8\u56fe\u5e93\u4e4b\u4e00\uff0c\u5b83\u53ef\u4ee5\u7528\u4e8e\u7ed8\u5236\u5305\u62ec\u5730\u7406\u7a7a\u95f4\u6570\u636e\u5728\u5185\u7684\u5404\u79cd\u7c7b\u578b\u7684\u6570\u636e\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u5229\u7528<code>matplotlib<\/code>\u7ed8\u5236\u8bfb\u53d6\u7684GeoTIFF\u56fe\u50cf\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<h2><strong>\u521b\u5efa\u56fe\u5f62<\/strong><\/h2>\n<p>plt.figure(figsize=(10, 10))<\/p>\n<p>plt.imshow(band1, cmap=&#39;gray&#39;)<\/p>\n<p>plt.colorbar(label=&#39;Pixel Intensity&#39;)<\/p>\n<p>plt.title(&#39;GeoTIFF Visualization&#39;)<\/p>\n<p>plt.xlabel(&#39;Column #&#39;)<\/p>\n<p>plt.ylabel(&#39;Row #&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u901a\u8fc7\u8c03\u6574<code>imshow<\/code>\u7684\u53c2\u6570\uff0c\u53ef\u4ee5\u63a7\u5236\u56fe\u50cf\u7684\u663e\u793a\u65b9\u5f0f\uff0c\u6bd4\u5982\u989c\u8272\u6620\u5c04\uff08cmap\uff09\u7b49\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u56db\u3001\u4f7f\u7528Geopandas\u5904\u7406\u77e2\u91cf\u6570\u636e<\/p>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u60a8\u53ef\u80fd\u8fd8\u9700\u8981\u7ed3\u5408\u77e2\u91cf\u6570\u636e\u8fdb\u884c\u66f4\u590d\u6742\u7684\u5730\u7406\u7a7a\u95f4\u5206\u6790\u3002<code>geopandas<\/code>\u662fPython\u4e2d\u5904\u7406\u77e2\u91cf\u6570\u636e\u7684\u5f3a\u5927\u5de5\u5177\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u4f7f\u7528<code>geopandas<\/code>\u52a0\u8f7d\u548c\u7ed8\u5236\u77e2\u91cf\u6570\u636e\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import geopandas as gpd<\/p>\n<h2><strong>\u8bfb\u53d6\u77e2\u91cf\u6587\u4ef6<\/strong><\/h2>\n<p>vector_file_path = &#39;path\/to\/your\/vector\/file.shp&#39;<\/p>\n<p>gdf = gpd.read_file(vector_file_path)<\/p>\n<h2><strong>\u7ed8\u5236\u77e2\u91cf\u6570\u636e<\/strong><\/h2>\n<p>gdf.plot(edgecolor=&#39;black&#39;)<\/p>\n<p>plt.title(&#39;Vector Data Visualization&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong><code>geopandas<\/code>\u7b80\u5316\u4e86\u77e2\u91cf\u6570\u636e\u7684\u5904\u7406\u6d41\u7a0b\uff0c\u5b83\u80fd\u591f\u8f7b\u677e\u5730\u8fdb\u884c\u7a7a\u95f4\u64cd\u4f5c\uff0c\u5982\u53e0\u52a0\u3001\u7f13\u51b2\u548c\u88c1\u526a\u7b49\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u4e94\u3001\u7efc\u5408\u4f7f\u7528Rasterio\u3001Matplotlib\u548cGeopandas<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u5c06<code>rasterio<\/code>\u3001<code>matplotlib<\/code>\u548c<code>geopandas<\/code>\u7ed3\u5408\u4f7f\u7528\uff0c\u53ef\u4ee5\u5b9e\u73b0\u66f4\u52a0\u590d\u6742\u548c\u591a\u6837\u5316\u7684\u5730\u7406\u7a7a\u95f4\u6570\u636e\u53ef\u89c6\u5316\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u5c06\u5149\u6805\u6570\u636e\u4e0e\u77e2\u91cf\u6570\u636e\u53e0\u52a0\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u7ed8\u5236\u5149\u6805\u6570\u636e<\/p>\n<p>plt.figure(figsize=(10, 10))<\/p>\n<p>plt.imshow(band1, cmap=&#39;gray&#39;)<\/p>\n<h2><strong>\u53e0\u52a0\u77e2\u91cf\u6570\u636e<\/strong><\/h2>\n<p>gdf.boundary.plot(ax=plt.gca(), edgecolor=&#39;red&#39;, linewidth=2)<\/p>\n<p>plt.title(&#39;Combined GeoTIFF and Vector Data Visualization&#39;)<\/p>\n<p>plt.xlabel(&#39;Column #&#39;)<\/p>\n<p>plt.ylabel(&#39;Row #&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u53ef\u4ee5\u5728\u540c\u4e00\u56fe\u5f62\u4e0a\u663e\u793a\u5149\u6805\u548c\u77e2\u91cf\u6570\u636e\uff0c\u4fbf\u4e8e\u8fdb\u884c\u591a\u7ef4\u5ea6\u7684\u5730\u7406\u7a7a\u95f4\u5206\u6790\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u516d\u3001\u5904\u7406\u4e0d\u540c\u7c7b\u578b\u7684GeoTIFF\u6587\u4ef6<\/p>\n<\/p>\n<p><p>GeoTIFF\u6587\u4ef6\u53ef\u80fd\u5305\u542b\u591a\u4e2a\u6ce2\u6bb5\u7684\u6570\u636e\uff0c\u6bd4\u5982\u591a\u5149\u8c31\u5f71\u50cf\u3002\u5904\u7406\u591a\u6ce2\u6bb5\u6570\u636e\u9700\u8981\u4e00\u4e9b\u989d\u5916\u7684\u6b65\u9aa4\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u5904\u7406\u548c\u663e\u793a\u591a\u6ce2\u6bb5GeoTIFF\u6587\u4ef6\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u6253\u5f00\u591a\u6ce2\u6bb5GeoTIFF\u6587\u4ef6<\/p>\n<p>with rasterio.open(file_path) as dataset:<\/p>\n<p>    # \u8bfb\u53d6\u591a\u4e2a\u6ce2\u6bb5<\/p>\n<p>    band1 = dataset.read(1)<\/p>\n<p>    band2 = dataset.read(2)<\/p>\n<p>    band3 = dataset.read(3)<\/p>\n<h2><strong>\u4f7f\u7528matplotlib\u663e\u793aRGB\u5408\u6210\u56fe\u50cf<\/strong><\/h2>\n<p>plt.figure(figsize=(10, 10))<\/p>\n<p>rgb = np.dstack((band1, band2, band3))<\/p>\n<p>plt.imshow(rgb)<\/p>\n<p>plt.title(&#39;RGB Composite Image&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u5bf9\u4e8e\u591a\u6ce2\u6bb5GeoTIFF\uff0c\u901a\u5e38\u9700\u8981\u8fdb\u884c\u6ce2\u6bb5\u7ec4\u5408\u4ee5\u663e\u793a\u4e3aRGB\u56fe\u50cf\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u4e03\u3001\u5206\u6790\u5730\u7406\u7a7a\u95f4\u6570\u636e<\/p>\n<\/p>\n<p><p>\u9664\u4e86\u53ef\u89c6\u5316\u4e4b\u5916\uff0cPython\u8fd8\u53ef\u4ee5\u7528\u4e8e\u5206\u6790GeoTIFF\u6587\u4ef6\u4e2d\u7684\u6570\u636e\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u8ba1\u7b97\u5f71\u50cf\u4e2d\u7684\u5e73\u5747\u503c\u3001\u6700\u5927\u503c\u548c\u6700\u5c0f\u503c\u7b49\u7edf\u8ba1\u4fe1\u606f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<h2><strong>\u8ba1\u7b97\u7edf\u8ba1\u4fe1\u606f<\/strong><\/h2>\n<p>mean_value = np.mean(band1)<\/p>\n<p>max_value = np.max(band1)<\/p>\n<p>min_value = np.min(band1)<\/p>\n<p>print(f&quot;Mean: {mean_value}, Max: {max_value}, Min: {min_value}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8fd9\u4e9b\u7edf\u8ba1\u4fe1\u606f\u53ef\u4ee5\u5e2e\u52a9\u7406\u89e3\u5f71\u50cf\u7684\u6574\u4f53\u7279\u5f81\uff0c\u5e76\u7528\u4e8e\u8fdb\u4e00\u6b65\u7684\u5206\u6790\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u516b\u3001\u8f6c\u6362\u548c\u4fdd\u5b58\u5904\u7406\u540e\u7684\u6570\u636e<\/p>\n<\/p>\n<p><p>\u5904\u7406\u5b8cGeoTIFF\u6570\u636e\u540e\uff0c\u53ef\u80fd\u9700\u8981\u5c06\u7ed3\u679c\u4fdd\u5b58\u4e3a\u65b0\u7684\u6587\u4ef6\u683c\u5f0f\u3002<code>rasterio<\/code>\u5141\u8bb8\u5c06\u5904\u7406\u540e\u7684\u6570\u636e\u4fdd\u5b58\u4e3a\u65b0\u7684GeoTIFF\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u4fdd\u5b58\u5904\u7406\u540e\u7684\u6570\u636e<\/p>\n<p>output_file_path = &#39;path\/to\/save\/processed\/file.tif&#39;<\/p>\n<p>with rasterio.open(output_file_path, &#39;w&#39;, driver=&#39;GTiff&#39;, height=band1.shape[0], width=band1.shape[1], count=1, dtype=band1.dtype) as dst:<\/p>\n<p>    dst.write(band1, 1)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u53ef\u4ee5\u5c06\u5206\u6790\u548c\u5904\u7406\u540e\u7684\u7ed3\u679c\u4fdd\u5b58\u4e3a\u65b0\u7684GeoTIFF\u6587\u4ef6\uff0c\u4fbf\u4e8e\u540e\u7eed\u7684\u4f7f\u7528\u548c\u5171\u4eab\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u6211\u4eec\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5982\u4f55\u5728Python\u4e2d\u4f7f\u7528<code>rasterio<\/code>\u3001<code>matplotlib<\/code>\u548c<code>geopandas<\/code>\u5e93\u6765\u5904\u7406\u548c\u7ed8\u5236GeoTIFF\u6587\u4ef6\u3002\u5e0c\u671b\u8fd9\u4e9b\u4fe1\u606f\u80fd\u591f\u5e2e\u52a9\u60a8\u66f4\u597d\u5730\u7406\u89e3\u548c\u5e94\u7528\u8fd9\u4e9b\u5de5\u5177\u8fdb\u884c\u5730\u7406\u7a7a\u95f4\u6570\u636e\u5206\u6790\u548c\u53ef\u89c6\u5316\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5728Python\u4e2d\uff0c\u5982\u4f55\u8bfb\u53d6\u548c\u663e\u793aGeoTIFF\u6587\u4ef6\uff1f<\/strong><br \/>\u8981\u8bfb\u53d6\u548c\u663e\u793aGeoTIFF\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528<code>rasterio<\/code>\u5e93\u6765\u5904\u7406\u5730\u7406\u7a7a\u95f4\u6570\u636e\uff0c\u5e76\u7ed3\u5408<code>matplotlib<\/code>\u5e93\u8fdb\u884c\u53ef\u89c6\u5316\u3002\u9996\u5148\uff0c\u786e\u4fdd\u5b89\u88c5\u4e86\u8fd9\u4e24\u4e2a\u5e93\u3002\u4f7f\u7528<code>rasterio.open()<\/code>\u51fd\u6570\u8bfb\u53d6GeoTIFF\u6587\u4ef6\uff0c\u4e4b\u540e\u901a\u8fc7<code>imshow()<\/code>\u65b9\u6cd5\u5c06\u56fe\u50cf\u663e\u793a\u51fa\u6765\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-python\">import rasterio\nimport matplotlib.pyplot as plt\n\nwith rasterio.open(&#39;path\/to\/your\/file.tif&#39;) as src:\n    data = src.read(1)  # \u8bfb\u53d6\u7b2c\u4e00\u6ce2\u6bb5\n    plt.imshow(data, cmap=&#39;gray&#39;)\n    plt.colorbar()\n    plt.show()\n<\/code><\/pre>\n<p><strong>\u6709\u54ea\u4e9bPython\u5e93\u53ef\u4ee5\u7528\u4e8e\u5904\u7406GeoTIFF\u6587\u4ef6\uff1f<\/strong><br \/>\u5904\u7406GeoTIFF\u6587\u4ef6\u7684Python\u5e93\u6709\u5f88\u591a\uff0c\u5176\u4e2d\u6700\u5e38\u7528\u7684\u5305\u62ec<code>rasterio<\/code>\u3001<code>GDAL<\/code>\u548c<code>geopandas<\/code>\u3002<code>rasterio<\/code>\u4e13\u6ce8\u4e8e\u6805\u683c\u6570\u636e\u7684\u8bfb\u53d6\u548c\u5199\u5165\uff0c<code>GDAL<\/code>\u5219\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u5e93\uff0c\u652f\u6301\u591a\u79cd\u683c\u5f0f\u7684\u5730\u7406\u6570\u636e\u5904\u7406\uff0c\u800c<code>geopandas<\/code>\u53ef\u4ee5\u4e0e\u77e2\u91cf\u6570\u636e\u7ed3\u5408\u4f7f\u7528\uff0c\u63d0\u4f9b\u66f4\u9ad8\u5c42\u6b21\u7684\u7a7a\u95f4\u6570\u636e\u5206\u6790\u529f\u80fd\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u4fdd\u5b58\u5904\u7406\u540e\u7684GeoTIFF\u6587\u4ef6\uff1f<\/strong><br \/>\u4f7f\u7528<code>rasterio<\/code>\u5e93\u53ef\u4ee5\u8f7b\u677e\u4fdd\u5b58\u5904\u7406\u540e\u7684GeoTIFF\u6587\u4ef6\u3002\u53ef\u4ee5\u901a\u8fc7<code>rasterio.open()<\/code>\u51fd\u6570\u4ee5\u5199\u5165\u6a21\u5f0f\u6253\u5f00\u4e00\u4e2a\u65b0\u7684\u6587\u4ef6\uff0c\u5e76\u4f7f\u7528<code>write()<\/code>\u65b9\u6cd5\u5c06\u6570\u636e\u5199\u5165\u3002\u786e\u4fdd\u5728\u5199\u5165\u65f6\u6307\u5b9a\u6b63\u786e\u7684\u5143\u6570\u636e\u548c\u6570\u636e\u7c7b\u578b\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-python\">import rasterio\nfrom rasterio.transform import from_origin\n\ndata = ...  # \u5904\u7406\u540e\u7684\u6570\u636e\ntransform = from_origin(west, north, xsize, ysize)  # \u8bbe\u7f6e\u5730\u7406\u8f6c\u6362\n\nwith rasterio.open(&#39;path\/to\/save\/new_file.tif&#39;, &#39;w&#39;, driver=&#39;GTiff&#39;,\n                   height=data.shape[0], width=data.shape[1],\n                   count=1, dtype=data.dtype, crs=&#39;EPSG:4326&#39;,\n                   transform=transform) as dst:\n    dst.write(data, 1)\n<\/code><\/pre>\n<p>\u8fd9\u4e9b\u4fe1\u606f\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u66f4\u597d\u5730\u7406\u89e3\u5982\u4f55\u4f7f\u7528Python\u5904\u7406\u548c\u53ef\u89c6\u5316GeoTIFF\u6587\u4ef6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u5728Python\u4e2d\u7ed8\u5236GeoTIFF\uff0c\u53ef\u4ee5\u4f7f\u7528geopandas\u3001rasterio\u548cmatplotlib\u5e93\u3002\u9996 [&hellip;]","protected":false},"author":3,"featured_media":974421,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/974415"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=974415"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/974415\/revisions"}],"predecessor-version":[{"id":974423,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/974415\/revisions\/974423"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/974421"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=974415"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=974415"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=974415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}