<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yuta-nakata</author_name>
  <author_url>https://blog.hatena.ne.jp/yuta-nakata/</author_url>
  <blog_title>Yuta NakataのBlog</blog_title>
  <blog_url>https://www.yuta-nakata.net/</blog_url>
  <categories>
    <anon>IT</anon>
    <anon>Python</anon>
    <anon>Lambda</anon>
    <anon>位置情報アプリケーション</anon>
  </categories>
  <description>課題背景 地理情報系のデータを扱う際、ベクトルデータとラスターデータがあります。 これらのデータは、度々巨大であることが多く、素直にデータを読み込むと、読み込み処理が重いという現象があります。 そこで、今回は、大きなデータであっても、データサイズの影響を受けることなく、スムーズにデータを抽出するコードを紹介します。 ラスターデータの場合 rasterioを使います。 import rasterio as rio def get_mesh(infile: str, lat: float, lon: float, N=3): with rio.open(infile) as dataset: py…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.yuta-nakata.net%2Fentry%2F2023%2F10%2F06%2F232403&quot; title=&quot;ベクトルデータ・ラスターデータから任意の緯度経度のデータを抽出する方法 - Yuta NakataのBlog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-10-06 23:24:03</published>
  <title>ベクトルデータ・ラスターデータから任意の緯度経度のデータを抽出する方法</title>
  <type>rich</type>
  <url>https://www.yuta-nakata.net/entry/2023/10/06/232403</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
