<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>MySQL Forums - GIS</title>
        <description>Forum for OpenGIS discussions.</description>
        <link>https://forums.mysql.com/list.php?23</link>
        <lastBuildDate>Mon, 13 Apr 2026 21:18:25 +0000</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://forums.mysql.com/read.php?23,706952,706952#msg-706952</guid>
            <title>ST_Contains with multi polygon (no replies)</title>
            <link>https://forums.mysql.com/read.php?23,706952,706952#msg-706952</link>
            <description><![CDATA[ Hello<br />
<br />
I Have 2 type of data : point(car)  &amp; Polygons(Boundary of town)<br />
I want to know if my car is in town.<br />
<br />
My fonction work well but not when I have MultiPolygons for a Town<br />
When a town has Two or more boundaries my fonction return false even the car is in one Boundary<br />
<br />
SELECT name FROM town WHERE  ST_Contains(town.geom,GeomFromText(  &#039;Point( $x $y)&#039; ))<br />
<br />
<br />
Thanks]]></description>
            <dc:creator>tabs den</dc:creator>
            <category>GIS</category>
            <pubDate>Sun, 11 Dec 2022 09:42:34 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?23,706654,706654#msg-706654</guid>
            <title>Mysql 5.7.27 ST_INTERSECTS Problem (1 reply)</title>
            <link>https://forums.mysql.com/read.php?23,706654,706654#msg-706654</link>
            <description><![CDATA[ There are 2 same geometry(Polygon) data in one table. I want to use &#039;ST_INTERSECTS&#039; function with a bigger polygon to find proper data, but it dosen&#039;t work with error msg &quot;Invalid GIS data provided to function st_intersects.&quot; and error code 3037.]]></description>
            <dc:creator>Fantasy Black</dc:creator>
            <category>GIS</category>
            <pubDate>Fri, 04 Nov 2022 16:33:24 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?23,700332,700332#msg-700332</guid>
            <title>ST_Transform (no replies)</title>
            <link>https://forums.mysql.com/read.php?23,700332,700332#msg-700332</link>
            <description><![CDATA[ When i am trying to transform from SRID 4326 to SRID 32643 it displays an error that transform to SRID 32643 is not supported.<br />
Please help, I urgently need it.]]></description>
            <dc:creator>Jasnoor Singh</dc:creator>
            <category>GIS</category>
            <pubDate>Wed, 22 Dec 2021 10:36:14 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?23,699751,699751#msg-699751</guid>
            <title>Efficient Distance Querying in MySQL (no replies)</title>
            <link>https://forums.mysql.com/read.php?23,699751,699751#msg-699751</link>
            <description><![CDATA[ <a href="https://aaronfrancis.com/2021/efficient-distance-querying-in-my-sql"  rel="nofollow">https://aaronfrancis.com/2021/efficient-distance-querying-in-my-sql</a><br />
<br />
<a href="https://tighten.co/blog/a-mysql-distance-function-you-should-know-about/"  rel="nofollow">https://tighten.co/blog/a-mysql-distance-function-you-should-know-about/</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>GIS</category>
            <pubDate>Wed, 10 Nov 2021 16:58:59 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?23,694926,694926#msg-694926</guid>
            <title>ST_SRID() flips coordinates for SRID 4326; ST_GeomFromText() doesn&#039;t (no replies)</title>
            <link>https://forums.mysql.com/read.php?23,694926,694926#msg-694926</link>
            <description><![CDATA[ Hi,<br />
<br />
When I use ST_SRID() with SRID 4326 (WGS84) the X and Y coordinates are flipped. I was wondering whether this is a bug or as intended.<br />
<br />
In this example the X coordinate returned by ST_ASTEXT() (as well as with ST_X()) is 55 in all examples except for the last one.<br />
<br />
SELECT<br />
ST_ASTEXT(POINT(55,12)),<br />
ST_ASTEXT(ST_GeomFromText(&#039;POINT(55 12)&#039;)),<br />
ST_ASTEXT(ST_GeomFromText(&#039;POINT(55 12)&#039;, 25832)),<br />
ST_ASTEXT(ST_GeomFromText(&#039;POINT(55 12)&#039;, 4326)),<br />
ST_ASTEXT(ST_SRID(POINT(55,12),25832)),<br />
ST_ASTEXT(ST_SRID(POINT(55,12),4326)),<br />
ST_X(POINT(55,12)),<br />
ST_X(ST_GeomFromText(&#039;POINT(55 12)&#039;)),<br />
ST_X(ST_GeomFromText(&#039;POINT(55 12)&#039;, 25832)),<br />
ST_X(ST_GeomFromText(&#039;POINT(55 12)&#039;, 4326)),<br />
ST_X(ST_SRID(POINT(55,12),25832)),<br />
ST_X(ST_SRID(POINT(55,12),4326))<br />
\G<br />
<br />
*************************** 1. row ***************************<br />
                          ST_ASTEXT(POINT(55,12)): POINT(55 12)<br />
       ST_ASTEXT(ST_GeomFromText(&#039;POINT(55 12)&#039;)): POINT(55 12)<br />
ST_ASTEXT(ST_GeomFromText(&#039;POINT(55 12)&#039;, 25832)): POINT(55 12)<br />
 ST_ASTEXT(ST_GeomFromText(&#039;POINT(55 12)&#039;, 4326)): POINT(55 12)<br />
           ST_ASTEXT(ST_SRID(POINT(55,12),25832)): POINT(55 12)<br />
            ST_ASTEXT(ST_SRID(POINT(55,12),4326)): POINT(12 55)<br />
                               ST_X(POINT(55,12)): 55<br />
            ST_X(ST_GeomFromText(&#039;POINT(55 12)&#039;)): 55<br />
     ST_X(ST_GeomFromText(&#039;POINT(55 12)&#039;, 25832)): 55<br />
      ST_X(ST_GeomFromText(&#039;POINT(55 12)&#039;, 4326)): 55<br />
                ST_X(ST_SRID(POINT(55,12),25832)): 55<br />
                 ST_X(ST_SRID(POINT(55,12),4326)): 12<br />
1 row in set (0.00 sec)<br />
<br />
This might be based on an idea that WGS84 is usually written as Latitude,Longitude, roughly corresponding to Y,X instead of X,Y as mentioned here:<br />
&quot;Coordinate system: Ellipsoidal 2D CS. Axes: latitude, longitude. Orientations: north, east. UoM: degree&quot;<br />
<a href="https://epsg.io/4326"  rel="nofollow">https://epsg.io/4326</a><br />
<br />
However the manual specifically states:<br />
&quot;ST_SRID() changes the geometry SRID value without transforming its coordinates.&quot;<br />
<a href="https://dev.mysql.com/doc/refman/8.0/en/gis-general-property-functions.html#function_st-srid"  rel="nofollow">https://dev.mysql.com/doc/refman/8.0/en/gis-general-property-functions.html#function_st-srid</a><br />
<br />
I get that &quot;transformed&quot; might only refer to transformation due to different spatial reference systems, however flipping the X and Y coordinate also seems like a transformation.<br />
<br />
In any case it seems weird that the flip (if it is an intended feature) only happens when using ST_SRID() and not when specifying the same specific SRID as an argument for ST_GeomFromText()<br />
<br />
It might be related to this bug report:<br />
<a href="https://bugs.mysql.com/bug.php?id=94382"  rel="nofollow">https://bugs.mysql.com/bug.php?id=94382</a><br />
<br />
- Peter Brodersen]]></description>
            <dc:creator>Peter Brodersen</dc:creator>
            <category>GIS</category>
            <pubDate>Thu, 18 Feb 2021 14:50:30 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?23,694689,694689#msg-694689</guid>
            <title>`ST_DISTANCE_SPHERE` different output in 5.7 and 8.0 (no replies)</title>
            <link>https://forums.mysql.com/read.php?23,694689,694689#msg-694689</link>
            <description><![CDATA[ I write an open-source library that exposes an API to MySQL GIS functions from Laravel applications.<br />
I run the library&#039;s tests on both MySQL 5.7 and 8.0, everything works fine except `ST_DISTANCE_SPHERE` - this function outputs different values for each MySQL version.<br />
<br />
<br />
```sql<br />
SELECT ST_DISTANCE_SPHERE(POINT(55.5, 23.1), POINT(55.51, 23.1));<br />
# MySQL 5.7: 1022.792591459987<br />
# MySQL 8.0: 1022.7925914593363<br />
```<br />
<br />
The difference begins in the tenth digit after the zero.<br />
<br />
Any idea why it happens and how can I fix it?]]></description>
            <dc:creator>Matan Yadaev</dc:creator>
            <category>GIS</category>
            <pubDate>Sun, 07 Feb 2021 19:22:03 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?23,691645,691645#msg-691645</guid>
            <title>Distance between POINT and LINESTRING (5 replies)</title>
            <link>https://forums.mysql.com/read.php?23,691645,691645#msg-691645</link>
            <description><![CDATA[ Hi, <br />
how can I run a query to calculate the minimum distance between a POINT(lat lng) and a LINESTRING and the filter results where that distance is less than xxx meters ?<br />
<br />
<br />
I am trying with:<br />
<br />
SELECT ST_Distance(<br />
ST_GeomFromText( &#039;POINT(-34.647958 -58.388129)&#039;, 3857),<br />
ST_GeomFromText( geometry_fld, 3857)<br />
) as Distance2<br />
FROM `sec_cab_fo`<br />
HAVING Distance2 &lt; 200<br />
<br />
But it seems to be returning bad inaccurate results<br />
<br />
gemotry_fld is a Linestring field. It contains something like this:<br />
<br />
LINESTRING (<br />
-34.5976965433552 -58.483349327765,<br />
-34.5976879214475 -58.4832948928198, <br />
-34.5978127817356 -58.4828331022848, <br />
-34.5975919709953 -58.4829059127938, <br />
-34.5974830787817 -58.4832033974371, <br />
-34.5966875141324 -58.4839039527997, <br />
-34.5966531026929 -58.4838060055857, <br />
-34.5966888038735 -58.4836719190874, <br />
-34.5966522003641 -58.4836282139431, <br />
-34.5968243496615 -58.4833544201464, <br />
-34.5966164990581 -58.4833768839409 <br />
)<br />
<br />
My version of mysql is 8.0.21]]></description>
            <dc:creator>Omar Garro</dc:creator>
            <category>GIS</category>
            <pubDate>Sat, 05 Dec 2020 16:17:08 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?23,689773,689773#msg-689773</guid>
            <title>MySQL 8: ST_Interects works very strange (1 reply)</title>
            <link>https://forums.mysql.com/read.php?23,689773,689773#msg-689773</link>
            <description><![CDATA[ Hi!<br />
Since upgrading from Mysql 5.7 to 8.0.<br />
I&#039;m totally confused on how spatial functions work!<br />
Look: <br />
SELECT<br />
    st_intersects(<br />
    ST_GeomFromText(<br />
&#039;POLYGON((-90 -179, -90 180, 90 180, 90 -179, -90 -179))&#039;, 4326), <br />
    st_geomfromtext(&#039;POINT(44.041870130401 42.869292509262)&#039;, 4326)<br />
    ) as result<br />
<br />
returns result = 0! Which is wrong IMO.<br />
<br />
but SELECT<br />
    st_intersects(<br />
    ST_GeomFromText(&#039;POLYGON((-90 -179, -90 180, 90 180, 90 -179, -90 -179))&#039;, 0), <br />
    st_geomfromtext(&#039;POINT(44.041870130401 42.869292509262)&#039;, 0)<br />
    ) as result<br />
gives result = 1.<br />
<br />
How come? And How sholud I fix my query for it to work correctly with 4326 SRID?]]></description>
            <dc:creator>Борис Мартиросов</dc:creator>
            <category>GIS</category>
            <pubDate>Mon, 31 Aug 2020 22:17:14 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?23,687402,687402#msg-687402</guid>
            <title>MySQL 8.0:         GeoSpatial data handling made easy (no replies)</title>
            <link>https://forums.mysql.com/read.php?23,687402,687402#msg-687402</link>
            <description><![CDATA[ <a href="https://mydbops.wordpress.com/2020/05/03/geospatial-data-handling-made-easy-with-mysql-8-0/"  rel="nofollow">https://mydbops.wordpress.com/2020/05/03/geospatial-data-handling-made-easy-with-mysql-8-0/</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>GIS</category>
            <pubDate>Sun, 03 May 2020 21:38:15 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?23,686773,686773#msg-686773</guid>
            <title>Three Dimensional Points in WKB (no replies)</title>
            <link>https://forums.mysql.com/read.php?23,686773,686773#msg-686773</link>
            <description><![CDATA[ It seems that MySQL does not yet support Z axis in WKB. Is there any way I can track when this will arrive?]]></description>
            <dc:creator>Ephraim Khantsis</dc:creator>
            <category>GIS</category>
            <pubDate>Sat, 25 Apr 2020 20:47:35 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?23,686327,686327#msg-686327</guid>
            <title>Shape File import in mysql Database (2 replies)</title>
            <link>https://forums.mysql.com/read.php?23,686327,686327#msg-686327</link>
            <description><![CDATA[ HI, i want to load shapefile in mysql db. Is there any inbuilt tools or utility that can import shapefile data in table.? don&#039;t wnat to use any third part tools.]]></description>
            <dc:creator>Shreyas Kumar</dc:creator>
            <category>GIS</category>
            <pubDate>Mon, 13 Apr 2020 16:52:05 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?23,674483,674483#msg-674483</guid>
            <title>MySQL 8.0 GIS Units of Measure - Meter, foot, Clarke&#039;s yard, or Indian Foot (no replies)</title>
            <link>https://forums.mysql.com/read.php?23,674483,674483#msg-674483</link>
            <description><![CDATA[ <a href="https://elephantdolphin.blogspot.com/2019/04/mysql-80-gis-units-of-measure-meter.html"  rel="nofollow">https://elephantdolphin.blogspot.com/2019/04/mysql-80-gis-units-of-measure-meter.html</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>GIS</category>
            <pubDate>Mon, 29 Apr 2019 16:42:03 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?23,673775,673775#msg-673775</guid>
            <title>MySQL 8.0 GIS -- Inserting Data &amp; Fun Functions (no replies)</title>
            <link>https://forums.mysql.com/read.php?23,673775,673775#msg-673775</link>
            <description><![CDATA[ MySQL 8.0 GIS -- Inserting Data &amp; Fun Functions <br />
<a href="https://elephantdolphin.blogspot.com/2019/04/mysql-80-gis-inserting-data-fun.html"  rel="nofollow">https://elephantdolphin.blogspot.com/2019/04/mysql-80-gis-inserting-data-fun.html</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>GIS</category>
            <pubDate>Wed, 03 Apr 2019 03:18:41 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?23,673682,673682#msg-673682</guid>
            <title>MySQL 8.0 Geographic Information Systems (GIS) - How to get the distance between two cities (no replies)</title>
            <link>https://forums.mysql.com/read.php?23,673682,673682#msg-673682</link>
            <description><![CDATA[ MySQL 8.0 Geographic Information Systems (GIS) - How to get the distance between two cities <br />
<br />
<a href="https://elephantdolphin.blogspot.com/2019/03/mysql-80-geographic-information-systems.html"  rel="nofollow">https://elephantdolphin.blogspot.com/2019/03/mysql-80-geographic-information-systems.html</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>GIS</category>
            <pubDate>Wed, 27 Mar 2019 16:56:02 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?23,672110,672110#msg-672110</guid>
            <title>geometry number length limited to 6,how to change? (no replies)</title>
            <link>https://forums.mysql.com/read.php?23,672110,672110#msg-672110</link>
            <description><![CDATA[ when I insert a geometry ，the number in geometry be limited to 6 length。<br />
I input：select POINT(123456.78,1234.5678)<br />
I got:POINT(123457 1234.57)<br />
My spatial reference is customed，and I need to store longer numbers in the geometry，how can i change the limited of the number length？<br />
thank you very much!]]></description>
            <dc:creator>ysu whl</dc:creator>
            <category>GIS</category>
            <pubDate>Sun, 20 Jan 2019 03:46:46 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?23,670370,670370#msg-670370</guid>
            <title>The best way to locate, in MySQL 8 GIS (no replies)</title>
            <link>https://forums.mysql.com/read.php?23,670370,670370#msg-670370</link>
            <description><![CDATA[ <a href="https://medium.com/maatwebsite/the-best-way-to-locate-in-mysql-8-e47a59892443"  rel="nofollow">https://medium.com/maatwebsite/the-best-way-to-locate-in-mysql-8-e47a59892443</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>GIS</category>
            <pubDate>Thu, 08 Nov 2018 00:13:16 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?23,667421,667421#msg-667421</guid>
            <title>Upgrading to MySQL 8.0 with Spatial Data (no replies)</title>
            <link>https://forums.mysql.com/read.php?23,667421,667421#msg-667421</link>
            <description><![CDATA[ <a href="https://mysqlserverteam.com/upgrading-to-mysql-8-0-with-spatial-data/"  rel="nofollow">https://mysqlserverteam.com/upgrading-to-mysql-8-0-with-spatial-data/</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>GIS</category>
            <pubDate>Mon, 02 Jul 2018 15:22:05 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?23,667349,667349#msg-667349</guid>
            <title>Detecting Incompatible Use of Spatial Functions before Upgrading to MySQL 8.0 (no replies)</title>
            <link>https://forums.mysql.com/read.php?23,667349,667349#msg-667349</link>
            <description><![CDATA[ <a href="https://mysqlserverteam.com/detecting-incompatible-use-of-spatial-functions-before-upgrading-to-mysql-8-0/"  rel="nofollow">https://mysqlserverteam.com/detecting-incompatible-use-of-spatial-functions-before-upgrading-to-mysql-8-0/</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>GIS</category>
            <pubDate>Thu, 28 Jun 2018 19:29:38 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?23,667260,667260#msg-667260</guid>
            <title>Geo Coordinates calculating (1 reply)</title>
            <link>https://forums.mysql.com/read.php?23,667260,667260#msg-667260</link>
            <description><![CDATA[ Hi<br />
<br />
First of all ... I&#039;m new to mysql :)<br />
<br />
And here is my &quot;Problem&quot;.<br />
<br />
Lets say i have 5 tables (in reality a lot more).<br />
Each table contains an ID , Latitude and Longitude (in decimal format).<br />
The Tables gets updated every 30 seconds .... so the actual position is always in the last line of the table.<br />
And there is also a timestamp in each line.<br />
<br />
Table1:<br />
&#039;123456&#039;,&#039;10.34411&#039;,&#039;18.12345&#039;,&#039;2018-06-15 16:19:16&#039;<br />
&#039;123456&#039;,&#039;10.34411&#039;,&#039;18.12345&#039;,&#039;2018-06-15 16:19:30&#039;<br />
&#039;123456&#039;,&#039;10.34411&#039;,&#039;18.12345&#039;,&#039;2018-06-15 16:29:48&#039;<br />
&#039;123456&#039;,&#039;10.34411&#039;,&#039;18.12345&#039;,&#039;2018-06-15 16:34:45&#039;<br />
&#039;123456&#039;,&#039;10.34411&#039;,&#039;18.12345&#039;,&#039;2018-06-15 16:35:22&#039;<br />
<br />
Table2:<br />
&#039;654321&#039;,&#039;12.34411&#039;,&#039;15.12345&#039;,&#039;2018-06-15 16:19:16&#039;<br />
&#039;654321&#039;,&#039;12.34411&#039;,&#039;15.12345&#039;,&#039;2018-06-15 16:19:30&#039;<br />
&#039;654321&#039;,&#039;12.34411&#039;,&#039;15.12345&#039;,&#039;2018-06-15 16:29:48&#039;<br />
&#039;654321&#039;,&#039;12.34411&#039;,&#039;15.12345&#039;,&#039;2018-06-15 16:34:45&#039;<br />
&#039;654321&#039;,&#039;12.34411&#039;,&#039;15.12345&#039;,&#039;2018-06-15 16:35:22&#039;<br />
<br />
Table3:<br />
&#039;567891&#039;,&#039;17.34411&#039;,&#039;28.12345&#039;,&#039;2018-06-15 16:19:16&#039;<br />
&#039;567891&#039;,&#039;17.34411&#039;,&#039;28.12345&#039;,&#039;2018-06-15 16:19:30&#039;<br />
&#039;567891&#039;,&#039;17.34411&#039;,&#039;28.12345&#039;,&#039;2018-06-15 16:29:48&#039;<br />
&#039;567891&#039;,&#039;17.34411&#039;,&#039;28.12345&#039;,&#039;2018-06-15 16:34:45&#039;<br />
&#039;567891&#039;,&#039;17.34411&#039;,&#039;28.12345&#039;,&#039;2018-06-15 16:35:22&#039;<br />
<br />
what i would like to is:<br />
calculate the distance from the most recent entry from 1 to 2 to 3 and from 2 to 1 to 3 and from 3 to 1 to 2 and so on<br />
<br />
<br />
Thanks a lot for helping<br />
rainer]]></description>
            <dc:creator>Rainer Parzer</dc:creator>
            <category>GIS</category>
            <pubDate>Tue, 26 Jun 2018 13:41:45 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?23,666910,666910#msg-666910</guid>
            <title>POINT index is used in v5.7 but not in v8.0 (1 reply)</title>
            <link>https://forums.mysql.com/read.php?23,666910,666910#msg-666910</link>
            <description><![CDATA[ Dear MySQL Forum users,<br />
<br />
I am encountering a problem with using spatial indices. I have a table with 2 rows: id and location. Location is a POINT type, NOT NULL.<br />
<br />
The CREATE code is as follows:<br />
******************************<br />
CREATE TABLE `test` (<br />
	`id` INT(11) NOT NULL AUTO_INCREMENT,<br />
	`location` POINT NOT NULL,<br />
	`location2` GEOMETRY NOT NULL,<br />
	INDEX `id` (`id`),<br />
	SPATIAL INDEX `location` (`location`),<br />
)<br />
COLLATE=&#039;utf8_general_ci&#039;<br />
ENGINE=InnoDB<br />
AUTO_INCREMENT=16384<br />
;<br />
******************************<br />
<br />
Then, running the following query yields different results in MySQL v5.7 and v8.0:<br />
<br />
******************************<br />
EXPLAIN SELECT * FROM test WHERE MBRContains(ST_GeomFromText(&#039;LINESTRING(4.848402825923472 51.985867267867974,5.562753957891971 52.205296088730535)&#039;, 4326), location) LIMIT 1;<br />
******************************<br />
<br />
In v5.7 it works fine and the output is<br />
&quot;1&quot;	&quot;SIMPLE&quot;	&quot;test&quot;	\N	&quot;range&quot;	&quot;location&quot;	&quot;location&quot;	&quot;34&quot;	\N	&quot;1&quot;	&quot;100,00&quot;	&quot;Using where&quot;.<br />
<br />
However, in v8.0, the entry for possible_keys is (null).  Why is this the case? I would like to use an index to speed up my query.<br />
<br />
Thanks in advance!<br />
<br />
(Sorry if I posted this in the wrong part of the forum)]]></description>
            <dc:creator>J C</dc:creator>
            <category>GIS</category>
            <pubDate>Tue, 12 Jun 2018 07:18:13 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?23,666660,666660#msg-666660</guid>
            <title>MySQL 8.0:  GIS Creating Your Own Spatial Reference Systems (no replies)</title>
            <link>https://forums.mysql.com/read.php?23,666660,666660#msg-666660</link>
            <description><![CDATA[ MySQL 8.0:  GIS Creating Your Own Spatial Reference Systems<br />
<a href="https://mysqlserverteam.com/creating-your-own-spatial-reference-systems-in-mysql-8-0/"  rel="nofollow">https://mysqlserverteam.com/creating-your-own-spatial-reference-systems-in-mysql-8-0/</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>GIS</category>
            <pubDate>Fri, 01 Jun 2018 15:04:06 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?23,666613,666613#msg-666613</guid>
            <title>MySQL 8.0:  GIS Upgrading Spatial Indexes (no replies)</title>
            <link>https://forums.mysql.com/read.php?23,666613,666613#msg-666613</link>
            <description><![CDATA[ <a href="https://mysqlserverteam.com/upgrading-spatial-indexes-to-mysql-8-0/"  rel="nofollow">https://mysqlserverteam.com/upgrading-spatial-indexes-to-mysql-8-0/</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>GIS</category>
            <pubDate>Wed, 30 May 2018 19:30:55 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?23,666580,666580#msg-666580</guid>
            <title>MySQL 8.0:  GIS Projected Spatial Reference Systems (no replies)</title>
            <link>https://forums.mysql.com/read.php?23,666580,666580#msg-666580</link>
            <description><![CDATA[ MySQL 8.0:  GIS Projected Spatial Reference Systems<br />
<a href="https://mysqlserverteam.com/projected-spatial-reference-systems-in-mysql-8-0/"  rel="nofollow">https://mysqlserverteam.com/projected-spatial-reference-systems-in-mysql-8-0/</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>GIS</category>
            <pubDate>Mon, 28 May 2018 21:04:40 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?23,666542,666542#msg-666542</guid>
            <title>MySQL 8.0:  GIS Geographic Spatial Reference Systems (no replies)</title>
            <link>https://forums.mysql.com/read.php?23,666542,666542#msg-666542</link>
            <description><![CDATA[ MySQL 8.0:  GIS Geographic Spatial Reference Systems<br />
<a href="https://mysqlserverteam.com/geographic-spatial-reference-systems-in-mysql-8-0/"  rel="nofollow">https://mysqlserverteam.com/geographic-spatial-reference-systems-in-mysql-8-0/</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>GIS</category>
            <pubDate>Fri, 25 May 2018 16:20:32 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?23,666110,666110#msg-666110</guid>
            <title>MySQL 8.0:  GIS Geographic Indexes in InnoDB (no replies)</title>
            <link>https://forums.mysql.com/read.php?23,666110,666110#msg-666110</link>
            <description><![CDATA[ MySQL 8.0:  GIS Geographic Indexes in InnoDB<br />
<a href="https://mysqlserverteam.com/geographic-indexes-in-innodb/"  rel="nofollow">https://mysqlserverteam.com/geographic-indexes-in-innodb/</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>GIS</category>
            <pubDate>Fri, 04 May 2018 16:44:25 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?23,666086,666086#msg-666086</guid>
            <title>MySQL 8.0:  GIS  Axis Order in Spatial Reference Systems (no replies)</title>
            <link>https://forums.mysql.com/read.php?23,666086,666086#msg-666086</link>
            <description><![CDATA[ <a href="https://mysqlserverteam.com/axis-order-in-spatial-reference-systems/"  rel="nofollow">https://mysqlserverteam.com/axis-order-in-spatial-reference-systems/</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>GIS</category>
            <pubDate>Thu, 03 May 2018 16:50:32 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?23,666065,666065#msg-666065</guid>
            <title>MySQL 8.0:  GIS Geography (no replies)</title>
            <link>https://forums.mysql.com/read.php?23,666065,666065#msg-666065</link>
            <description><![CDATA[ <a href="https://mysqlserverteam.com/geography-in-mysql-8-0/"  rel="nofollow">https://mysqlserverteam.com/geography-in-mysql-8-0/</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>GIS</category>
            <pubDate>Wed, 02 May 2018 15:20:05 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?23,666020,666020#msg-666020</guid>
            <title>MySQL 8.0:  GIS Spatial Reference Systems (no replies)</title>
            <link>https://forums.mysql.com/read.php?23,666020,666020#msg-666020</link>
            <description><![CDATA[ MySQL 8.0:  GIS Spatial Reference Systems<br />
<a href="https://mysqlserverteam.com/spatial-reference-systems-in-mysql-8-0/"  rel="nofollow">https://mysqlserverteam.com/spatial-reference-systems-in-mysql-8-0/</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>GIS</category>
            <pubDate>Mon, 30 Apr 2018 14:48:41 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?23,665260,665260#msg-665260</guid>
            <title>How do you handle unknown POINT values in MySQL? (no replies)</title>
            <link>https://forums.mysql.com/read.php?23,665260,665260#msg-665260</link>
            <description><![CDATA[ I posted this in the InnoDB forum, but I think this is probably a better place for my question.<br />
<br />
MySQL 5.7 introduced Spatial Indexes on POINT columns. Apparently, you cannot have NULL values in a spatial index. At the same time, you cannot use a DEFAULT for POINT columns.<br />
<br />
So how do you handle the case where the value for POINT is unknown?<br />
<br />
I geocode every address in my database, but if the end user doesn&#039;t supply an address, what should I put there?<br />
<br />
In another question, someone suggested placing them at the North Pole POINT(0.0000,90.0000) but this takes 25 bytes for each unknown address.<br />
<br />
Is there a way to resolve this?<br />
<br />
FYI: I am not a DBA.]]></description>
            <dc:creator>Peter B</dc:creator>
            <category>GIS</category>
            <pubDate>Thu, 29 Mar 2018 22:26:23 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?23,664914,664914#msg-664914</guid>
            <title>MySQL 8.0 GIS Overview (no replies)</title>
            <link>https://forums.mysql.com/read.php?23,664914,664914#msg-664914</link>
            <description><![CDATA[ <a href="https://www.slideshare.net/NorvaldRyeng/mysql-80-gis-overview"  rel="nofollow">https://www.slideshare.net/NorvaldRyeng/mysql-80-gis-overview</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>GIS</category>
            <pubDate>Sat, 10 Mar 2018 05:43:01 +0000</pubDate>
        </item>
    </channel>
</rss>
