{"id":1097421,"date":"2025-01-08T15:11:44","date_gmt":"2025-01-08T07:11:44","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1097421.html"},"modified":"2025-01-08T15:11:47","modified_gmt":"2025-01-08T07:11:47","slug":"python%e5%a6%82%e4%bd%95%e6%a0%b9%e6%8d%ae%e5%9d%90%e6%a0%87%e7%82%b9%e8%af%bb%e5%8f%96%e6%a0%85%e6%a0%bc%e5%80%bc-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1097421.html","title":{"rendered":"python\u5982\u4f55\u6839\u636e\u5750\u6807\u70b9\u8bfb\u53d6\u6805\u683c\u503c"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24212205\/53935d51-137d-4af0-abc8-752ff772557a.webp\" alt=\"python\u5982\u4f55\u6839\u636e\u5750\u6807\u70b9\u8bfb\u53d6\u6805\u683c\u503c\" \/><\/p>\n<p><p> \u5728Python\u4e2d\uff0c\u6839\u636e\u5750\u6807\u70b9\u8bfb\u53d6\u6805\u683c\u503c\u53ef\u4ee5\u901a\u8fc7\u51e0\u79cd\u65b9\u6cd5\u5b9e\u73b0\uff0c<strong>\u5305\u62ec\u4f7f\u7528GDAL\u5e93\u3001Rasterio\u5e93\u3001\u4ee5\u53ca\u5176\u4ed6\u4e00\u4e9b\u5730\u7406\u7a7a\u95f4\u5904\u7406\u5e93<\/strong>\u3002\u8fd9\u4e9b\u5e93\u63d0\u4f9b\u4e86\u8bfb\u53d6\u6805\u683c\u6570\u636e\u3001\u5c06\u5750\u6807\u8f6c\u6362\u4e3a\u6805\u683c\u7d22\u5f15\u3001\u5e76\u63d0\u53d6\u6805\u683c\u503c\u7684\u529f\u80fd\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u4f7f\u7528Rasterio\u5e93\u6765\u5b9e\u73b0\u8fd9\u4e00\u4efb\u52a1\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h2>\u4e00\u3001Rasterio\u5e93\u7684\u5b89\u88c5\u548c\u57fa\u672c\u4f7f\u7528<\/h2>\n<\/p>\n<p><h3>\u5b89\u88c5Rasterio\u5e93<\/h3>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u5b89\u88c5Rasterio\u5e93\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u901a\u8fc7pip\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install rasterio<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u8bfb\u53d6\u6805\u683c\u6587\u4ef6<\/h3>\n<\/p>\n<p><p>Rasterio\u5e93\u63d0\u4f9b\u4e86\u65b9\u4fbf\u7684\u65b9\u6cd5\u6765\u8bfb\u53d6\u6805\u683c\u6587\u4ef6\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528<code>rasterio.open()<\/code>\u51fd\u6570\u6765\u6253\u5f00\u4e00\u4e2a\u6805\u683c\u6587\u4ef6\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import rasterio<\/p>\n<h2><strong>\u6253\u5f00\u6805\u683c\u6587\u4ef6<\/strong><\/h2>\n<p>raster_path = &#39;path\/to\/your\/rasterfile.tif&#39;<\/p>\n<p>with rasterio.open(raster_path) as dataset:<\/p>\n<p>    # \u6253\u5370\u6805\u683c\u6587\u4ef6\u7684\u57fa\u672c\u4fe1\u606f<\/p>\n<p>    print(dataset.name)<\/p>\n<p>    print(dataset.width, dataset.height)<\/p>\n<p>    print(dataset.crs)<\/p>\n<p>    print(dataset.transform)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6bb5\u4ee3\u7801\u5c06\u6253\u5f00\u6307\u5b9a\u8def\u5f84\u7684\u6805\u683c\u6587\u4ef6\uff0c\u5e76\u6253\u5370\u6587\u4ef6\u540d\u3001\u5bbd\u5ea6\u3001\u9ad8\u5ea6\u3001\u5750\u6807\u53c2\u8003\u7cfb\u7edf\uff08CRS\uff09\u548c\u4eff\u5c04\u53d8\u6362\u53c2\u6570\u3002<\/p>\n<\/p>\n<p><h2>\u4e8c\u3001\u6839\u636e\u5750\u6807\u70b9\u8bfb\u53d6\u6805\u683c\u503c<\/h2>\n<\/p>\n<p><h3>\u5c06\u5730\u7406\u5750\u6807\u8f6c\u6362\u4e3a\u6805\u683c\u7d22\u5f15<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u4ece\u6805\u683c\u6587\u4ef6\u4e2d\u63d0\u53d6\u503c\uff0c\u6211\u4eec\u9996\u5148\u9700\u8981\u5c06\u5730\u7406\u5750\u6807\uff08\u5982\u7ecf\u7eac\u5ea6\uff09\u8f6c\u6362\u4e3a\u6805\u683c\u7d22\u5f15\uff08\u884c\u5217\u53f7\uff09\u3002Rasterio\u5e93\u63d0\u4f9b\u4e86<code>dataset.index()<\/code>\u65b9\u6cd5\u6765\u5b9e\u73b0\u8fd9\u4e00\u8f6c\u6362\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u5730\u7406\u5750\u6807\uff08\u7ecf\u5ea6\u3001\u7eac\u5ea6\uff09<\/p>\n<p>longitude = -123.45<\/p>\n<p>latitude = 45.67<\/p>\n<p>with rasterio.open(raster_path) as dataset:<\/p>\n<p>    # \u5c06\u5730\u7406\u5750\u6807\u8f6c\u6362\u4e3a\u6805\u683c\u7d22\u5f15<\/p>\n<p>    row, col = dataset.index(longitude, latitude)<\/p>\n<p>    print(f&#39;Raster index: row={row}, col={col}&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u63d0\u53d6\u6805\u683c\u503c<\/h3>\n<\/p>\n<p><p>\u4e00\u65e6\u6211\u4eec\u6709\u4e86\u6805\u683c\u7d22\u5f15\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528<code>dataset.read()<\/code>\u65b9\u6cd5\u6765\u63d0\u53d6\u6805\u683c\u503c\u3002<code>dataset.read(1)<\/code>\u8868\u793a\u8bfb\u53d6\u6805\u683c\u7684\u7b2c\u4e00\u4e2a\u6ce2\u6bb5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">with rasterio.open(raster_path) as dataset:<\/p>\n<p>    # \u63d0\u53d6\u6805\u683c\u503c<\/p>\n<p>    value = dataset.read(1)[row, col]<\/p>\n<p>    print(f&#39;Raster value at ({longitude}, {latitude}): {value}&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u4e09\u3001\u5904\u7406\u591a\u6ce2\u6bb5\u6805\u683c\u6570\u636e<\/h2>\n<\/p>\n<p><p>\u4e00\u4e9b\u6805\u683c\u6587\u4ef6\u53ef\u80fd\u5305\u542b\u591a\u4e2a\u6ce2\u6bb5\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u6307\u5b9a\u6ce2\u6bb5\u53f7\u6765\u63d0\u53d6\u4e0d\u540c\u6ce2\u6bb5\u7684\u503c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">with rasterio.open(raster_path) as dataset:<\/p>\n<p>    # \u63d0\u53d6\u7b2c\u4e00\u4e2a\u6ce2\u6bb5\u7684\u503c<\/p>\n<p>    value_band1 = dataset.read(1)[row, col]<\/p>\n<p>    print(f&#39;Band 1 value: {value_band1}&#39;)<\/p>\n<p>    # \u5982\u679c\u6805\u683c\u6587\u4ef6\u6709\u591a\u4e2a\u6ce2\u6bb5\uff0c\u53ef\u4ee5\u63d0\u53d6\u5176\u4ed6\u6ce2\u6bb5\u7684\u503c<\/p>\n<p>    if dataset.count &gt; 1:<\/p>\n<p>        value_band2 = dataset.read(2)[row, col]<\/p>\n<p>        print(f&#39;Band 2 value: {value_band2}&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u56db\u3001\u5904\u7406\u5750\u6807\u53c2\u8003\u7cfb\u7edf<\/h2>\n<\/p>\n<p><p>\u6805\u683c\u6587\u4ef6\u548c\u5730\u7406\u5750\u6807\u53ef\u80fd\u4f7f\u7528\u4e0d\u540c\u7684\u5750\u6807\u53c2\u8003\u7cfb\u7edf\uff08CRS\uff09\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u9700\u8981\u5c06\u5750\u6807\u8f6c\u6362\u5230\u6805\u683c\u6587\u4ef6\u7684CRS\u3002Rasterio\u5e93\u63d0\u4f9b\u4e86\u65b9\u4fbf\u7684\u65b9\u6cd5\u6765\u5904\u7406CRS\u8f6c\u6362\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from rasterio.warp import transform<\/p>\n<h2><strong>\u793a\u4f8b\u5730\u7406\u5750\u6807\u548c\u5176CRS<\/strong><\/h2>\n<p>src_crs = &#39;EPSG:4326&#39;  # WGS84<\/p>\n<p>dst_crs = &#39;EPSG:32610&#39;  # UTM Zone 10N<\/p>\n<p>longitude = -123.45<\/p>\n<p>latitude = 45.67<\/p>\n<p>with rasterio.open(raster_path) as dataset:<\/p>\n<p>    # \u83b7\u53d6\u6805\u683c\u6587\u4ef6\u7684CRS<\/p>\n<p>    dst_crs = dataset.crs<\/p>\n<p>    # \u8f6c\u6362\u5750\u6807\u5230\u6805\u683c\u6587\u4ef6\u7684CRS<\/p>\n<p>    x, y = transform(src_crs, dst_crs, [longitude], [latitude])<\/p>\n<p>    print(f&#39;Transformed coordinates: x={x[0]}, y={y[0]}&#39;)<\/p>\n<p>    # \u5c06\u8f6c\u6362\u540e\u7684\u5750\u6807\u8f6c\u6362\u4e3a\u6805\u683c\u7d22\u5f15<\/p>\n<p>    row, col = dataset.index(x[0], y[0])<\/p>\n<p>    value = dataset.read(1)[row, col]<\/p>\n<p>    print(f&#39;Raster value at transformed coordinates: {value}&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u5c06WGS84\u5750\u6807\u8f6c\u6362\u4e3a\u6805\u683c\u6587\u4ef6\u7684CRS\uff08\u5047\u8bbe\u4e3aUTM Zone 10N\uff09\uff0c\u7136\u540e\u63d0\u53d6\u6805\u683c\u503c\u3002<\/p>\n<\/p>\n<p><h2>\u4e94\u3001\u5904\u7406\u65e0\u6548\u503c\u548c\u63a9\u7801<\/h2>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u6805\u683c\u6587\u4ef6\u4e2d\uff0c\u53ef\u80fd\u5b58\u5728\u65e0\u6548\u503c\u6216\u63a9\u7801\u503c\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528Rasterio\u5e93\u6765\u5904\u7406\u8fd9\u4e9b\u503c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">with rasterio.open(raster_path) as dataset:<\/p>\n<p>    # \u8bfb\u53d6\u6805\u683c\u6570\u636e\u548c\u63a9\u7801<\/p>\n<p>    data = dataset.read(1)<\/p>\n<p>    mask = dataset.dataset_mask()<\/p>\n<p>    # \u83b7\u53d6\u7279\u5b9a\u4f4d\u7f6e\u7684\u503c\u548c\u63a9\u7801<\/p>\n<p>    value = data[row, col]<\/p>\n<p>    is_valid = mask[row, col] &gt; 0<\/p>\n<p>    if is_valid:<\/p>\n<p>        print(f&#39;Valid raster value: {value}&#39;)<\/p>\n<p>    else:<\/p>\n<p>        print(&#39;Invalid raster value&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528<code>dataset.dataset_mask()<\/code>\u65b9\u6cd5\u6765\u83b7\u53d6\u63a9\u7801\uff0c\u5e76\u68c0\u67e5\u7279\u5b9a\u4f4d\u7f6e\u7684\u503c\u662f\u5426\u6709\u6548\u3002<\/p>\n<\/p>\n<p><h2>\u516d\u3001\u793a\u4f8b\u5b8c\u6574\u4ee3\u7801<\/h2>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u5b8c\u6574\u7684\u793a\u4f8b\u4ee3\u7801\uff0c\u5c55\u793a\u4e86\u5982\u4f55\u6839\u636e\u5750\u6807\u70b9\u8bfb\u53d6\u6805\u683c\u503c\uff0c\u5305\u62ecCRS\u8f6c\u6362\u548c\u5904\u7406\u65e0\u6548\u503c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import rasterio<\/p>\n<p>from rasterio.warp import transform<\/p>\n<h2><strong>\u6805\u683c\u6587\u4ef6\u8def\u5f84<\/strong><\/h2>\n<p>raster_path = &#39;path\/to\/your\/rasterfile.tif&#39;<\/p>\n<h2><strong>\u793a\u4f8b\u5730\u7406\u5750\u6807\uff08\u7ecf\u5ea6\u3001\u7eac\u5ea6\uff09\u548c\u5176CRS<\/strong><\/h2>\n<p>src_crs = &#39;EPSG:4326&#39;  # WGS84<\/p>\n<p>longitude = -123.45<\/p>\n<p>latitude = 45.67<\/p>\n<p>with rasterio.open(raster_path) as dataset:<\/p>\n<p>    # \u83b7\u53d6\u6805\u683c\u6587\u4ef6\u7684CRS<\/p>\n<p>    dst_crs = dataset.crs<\/p>\n<p>    # \u8f6c\u6362\u5750\u6807\u5230\u6805\u683c\u6587\u4ef6\u7684CRS<\/p>\n<p>    x, y = transform(src_crs, dst_crs, [longitude], [latitude])<\/p>\n<p>    print(f&#39;Transformed coordinates: x={x[0]}, y={y[0]}&#39;)<\/p>\n<p>    # \u5c06\u8f6c\u6362\u540e\u7684\u5750\u6807\u8f6c\u6362\u4e3a\u6805\u683c\u7d22\u5f15<\/p>\n<p>    row, col = dataset.index(x[0], y[0])<\/p>\n<p>    # \u8bfb\u53d6\u6805\u683c\u6570\u636e\u548c\u63a9\u7801<\/p>\n<p>    data = dataset.read(1)<\/p>\n<p>    mask = dataset.dataset_mask()<\/p>\n<p>    # \u83b7\u53d6\u7279\u5b9a\u4f4d\u7f6e\u7684\u503c\u548c\u63a9\u7801<\/p>\n<p>    value = data[row, col]<\/p>\n<p>    is_valid = mask[row, col] &gt; 0<\/p>\n<p>    if is_valid:<\/p>\n<p>        print(f&#39;Valid raster value: {value}&#39;)<\/p>\n<p>    else:<\/p>\n<p>        print(&#39;Invalid raster value&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u4e03\u3001\u603b\u7ed3<\/h2>\n<\/p>\n<p><p>\u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u6211\u4eec\u8be6\u7ec6\u4e86\u89e3\u4e86\u5982\u4f55\u4f7f\u7528Python\u4e2d\u7684Rasterio\u5e93\u6839\u636e\u5750\u6807\u70b9\u8bfb\u53d6\u6805\u683c\u503c\u3002<strong>\u6211\u4eec\u9996\u5148\u4ecb\u7ecd\u4e86\u5982\u4f55\u5b89\u88c5\u548c\u4f7f\u7528Rasterio\u5e93\u8bfb\u53d6\u6805\u683c\u6587\u4ef6\uff0c\u5176\u6b21\u5c55\u793a\u4e86\u5982\u4f55\u5c06\u5730\u7406\u5750\u6807\u8f6c\u6362\u4e3a\u6805\u683c\u7d22\u5f15\u5e76\u63d0\u53d6\u6805\u683c\u503c\uff0c\u6700\u540e\u8fd8\u8ba8\u8bba\u4e86\u5904\u7406\u591a\u6ce2\u6bb5\u6570\u636e\u3001\u5750\u6807\u53c2\u8003\u7cfb\u7edf\u8f6c\u6362\u3001\u4ee5\u53ca\u65e0\u6548\u503c\u548c\u63a9\u7801\u5904\u7406<\/strong>\u3002\u8fd9\u4e9b\u6280\u5de7\u5728\u5730\u7406\u7a7a\u95f4\u6570\u636e\u5904\u7406\u548c\u5206\u6790\u4e2d\u975e\u5e38\u6709\u7528\uff0c\u5e0c\u671b\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u8bfb\u53d6\u6805\u683c\u6570\u636e\u4e2d\u7684\u7279\u5b9a\u5750\u6807\u70b9\u7684\u503c\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528Python\u4e2d\u7684\u591a\u4e2a\u5e93\u6765\u8bfb\u53d6\u6805\u683c\u6570\u636e\uff0c\u5982Rasterio\u548cGDAL\u3002Rasterio\u662f\u4e00\u4e2a\u7b80\u5355\u4e14\u9ad8\u6548\u7684\u5e93\uff0c\u9002\u5408\u5904\u7406\u6805\u683c\u6570\u636e\u3002\u9996\u5148\uff0c\u60a8\u9700\u8981\u5b89\u88c5Rasterio\u5e93\u3002\u901a\u8fc7\u6253\u5f00\u6805\u683c\u6587\u4ef6\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528<code>sample<\/code>\u65b9\u6cd5\u4f20\u5165\u5750\u6807\u70b9\uff0c\u5feb\u901f\u83b7\u53d6\u5bf9\u5e94\u7684\u6805\u683c\u503c\u3002<\/p>\n<p><strong>\u5728\u4f7f\u7528Python\u8bfb\u53d6\u6805\u683c\u503c\u65f6\uff0c\u5982\u4f55\u5904\u7406\u4e0d\u540c\u5750\u6807\u7cfb\u7edf\u7684\u95ee\u9898\uff1f<\/strong><br \/>\u4e0d\u540c\u7684\u6805\u683c\u6570\u636e\u53ef\u80fd\u91c7\u7528\u4e0d\u540c\u7684\u5750\u6807\u7cfb\u7edf\uff0c\u56e0\u6b64\u5728\u8bfb\u53d6\u65f6\u52a1\u5fc5\u786e\u8ba4\u5750\u6807\u70b9\u7684\u5750\u6807\u7cfb\u7edf\u4e0e\u6805\u683c\u6570\u636e\u4e00\u81f4\u3002\u53ef\u4ee5\u4f7f\u7528pyproj\u5e93\u6765\u8fdb\u884c\u5750\u6807\u8f6c\u6362\uff0c\u786e\u4fdd\u8bfb\u53d6\u7684\u5750\u6807\u70b9\u4e0e\u6805\u683c\u6570\u636e\u76f8\u5339\u914d\uff0c\u4ece\u800c\u83b7\u53d6\u51c6\u786e\u7684\u6805\u683c\u503c\u3002<\/p>\n<p><strong>\u8bfb\u53d6\u6805\u683c\u503c\u65f6\uff0c\u5982\u4f55\u63d0\u9ad8\u4ee3\u7801\u7684\u6267\u884c\u6548\u7387\uff1f<\/strong><br \/>\u4e3a\u4e86\u63d0\u9ad8\u4ee3\u7801\u7684\u6267\u884c\u6548\u7387\uff0c\u53ef\u4ee5\u8003\u8651\u4ee5\u4e0b\u51e0\u79cd\u65b9\u6cd5\uff1a\u4f7f\u7528NumPy\u6570\u7ec4\u8fdb\u884c\u6279\u91cf\u5904\u7406\uff0c\u51cf\u5c11\u6587\u4ef6\u7684\u8bfb\u53d6\u6b21\u6570\uff0c\u6216\u8005\u5728\u9700\u8981\u5904\u7406\u5927\u91cf\u6570\u636e\u65f6\u4f7f\u7528\u591a\u7ebf\u7a0b\u6216\u5f02\u6b65\u7f16\u7a0b\u3002\u6b64\u5916\uff0c\u8bfb\u53d6\u8f83\u5c0f\u7684\u533a\u57df\u800c\u4e0d\u662f\u6574\u4e2a\u6805\u683c\u6587\u4ef6\u4e5f\u53ef\u4ee5\u63d0\u9ad8\u6548\u7387\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u6839\u636e\u5750\u6807\u70b9\u8bfb\u53d6\u6805\u683c\u503c\u53ef\u4ee5\u901a\u8fc7\u51e0\u79cd\u65b9\u6cd5\u5b9e\u73b0\uff0c\u5305\u62ec\u4f7f\u7528GDAL\u5e93\u3001Rasterio\u5e93\u3001\u4ee5\u53ca\u5176\u4ed6\u4e00 [&hellip;]","protected":false},"author":3,"featured_media":1097426,"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\/1097421"}],"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=1097421"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1097421\/revisions"}],"predecessor-version":[{"id":1097427,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1097421\/revisions\/1097427"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1097426"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1097421"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1097421"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1097421"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}