<?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>位置情報アプリケーション</anon>
    <anon>地理情報システム</anon>
    <anon>Pandas</anon>
    <anon>Python</anon>
  </categories>
  <description>はじめに ベクトルデータからデータを切り出す方法は以前、こちらでも紹介しました。 www.yuta-nakata.net 今回は、より高速に・Tipsも交えて追加の内容があるのでご紹介します。 結論 import pandas as pd import shapely # 取得したい緯度・経度 lon = 135 lat = 35 # 抽出した元データを読み込む df = pd.read_csv(&quot;dataset.csv&quot;) tree = shapely.STRtree(shapely.from_wkt(df['geometry'].astype(str)).to_numpy()) res =…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.yuta-nakata.net%2Fentry%2F2024%2F03%2F29%2F223239&quot; title=&quot;【爆速】pythonを使って、ポリゴンデータから地点データを取得する方法 - 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>https://cdn-ak.f.st-hatena.com/images/fotolife/y/yuta-nakata/20240329/20240329222501.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-03-29 22:32:39</published>
  <title>【爆速】pythonを使って、ポリゴンデータから地点データを取得する方法</title>
  <type>rich</type>
  <url>https://www.yuta-nakata.net/entry/2024/03/29/223239</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
