<?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>
  </categories>
  <description>訳あって、MySQLで「GEOMETRY型のカラムに、いったん SRID=0で登録したあと、一気に正しいSRIDに変換する」ということをやろうとしたところ、思惑通りにいかず随分悩んだので、整理しておきます。 やろうとしたこととエラー発生 ここではシンプルな例に置き換えた再現実験で紹介します。 まず、GEOMETRY型を入れられるテーブルを作りデータを1件登録します。 CREATE TABLE g1 (g GEOMETRY); INSERT INTO g1 VALUES (ST_GeomFromText(&quot;POINT(35 135)&quot;)); SRIDを指定していないので、SRID=0で登録されて…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsakaik.hateblo.jp%2Fentry%2F20191229%2Fmysql_gis_axis_order_srid_0&quot; title=&quot;MySQLのSRID()でSRID変換する際にaxis-orderで悩んだ話 - 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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-12-29 23:15:00</published>
  <title>MySQLのSRID()でSRID変換する際にaxis-orderで悩んだ話</title>
  <type>rich</type>
  <url>https://sakaik.hateblo.jp/entry/20191229/mysql_gis_axis_order_srid_0</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
