<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sakaik</author_name>
  <author_url>https://blog.hatena.ne.jp/sakaik/</author_url>
  <blog_title>sakaikの日々雑感～(T)編</blog_title>
  <blog_url>https://sakaik.hateblo.jp/</blog_url>
  <categories>
    <anon>mysql</anon>
    <anon>gis</anon>
    <anon>spatial</anon>
    <anon>newfunc</anon>
  </categories>
  <description>自作の、Spatial(GIS)関連の関数をMySQLに追加するプラグインの関数をひとつひとつ動作確認しながら紹介するシリーズ。 STX_Dwithin(g1, g2, dist) ふたつのジオメトリの間の距離が、第3引数の範囲内かを判定して 1(範囲内)か 0(範囲外)を返す。 動作紹介 辺が 3,4,5の長さとなる直角三角形の斜辺の長さは5 (つまり 5 以内か、の判定は True(1)） mysql&gt; SELECT STX_DWithin( -&gt; ST_GeomFromText('POINT(0 0)'), -&gt; ST_GeomFromText('POINT(3 4)'), -&gt; 5 -…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsakaik.hateblo.jp%2Fentry%2F20260308%2FSTX_DWithin_func&quot; title=&quot; MySQL GIS拡張関数： STX_Dwithin() - sakaikの日々雑感～(T)編&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/s/sakaik/20260222/20260222081750.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-03-08 23:08:01</published>
  <title> MySQL GIS拡張関数： STX_Dwithin()</title>
  <type>rich</type>
  <url>https://sakaik.hateblo.jp/entry/20260308/STX_DWithin_func</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
