From b9d156761f459c889d0c51e6d421d29d8a2f8ae6 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Thu, 8 Apr 2021 09:31:57 +0200 Subject: [PATCH] Refs #31578 -- Removed outdated notes about MyISAM in GIS docs. InnoDB supports spatial data types in MySQL 5.7+ and MariaDB 10.2+. --- docs/ref/contrib/gis/db-api.txt | 16 ---------------- docs/ref/contrib/gis/install/index.txt | 4 ++-- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/docs/ref/contrib/gis/db-api.txt b/docs/ref/contrib/gis/db-api.txt index 3bc85fd66e..7921d53a8a 100644 --- a/docs/ref/contrib/gis/db-api.txt +++ b/docs/ref/contrib/gis/db-api.txt @@ -28,14 +28,6 @@ not conform to the OGC standard. Django supports spatial functions operating on real geometries available in modern MySQL versions. However, the spatial functions are not as rich as other backends like PostGIS. -.. warning:: - - True spatial indexes (R-trees) are only supported with - MyISAM tables on MySQL. [#fnmysqlidx]_ In other words, when using - MySQL spatial extensions you have to choose between fast spatial - lookups and the integrity of your data -- MyISAM tables do - not support transactions or foreign key constraints. - Raster Support -------------- @@ -412,12 +404,4 @@ Aggregate PostGIS Oracle SpatiaLite .. [#fnwkt] *See* Open Geospatial Consortium, Inc., `OpenGIS Simple Feature Specification For SQL `_, Document 99-049 (May 5, 1999), at Ch. 3.2.5, p. 3-11 (SQL Textual Representation of Geometry). .. [#fnewkb] *See* `PostGIS EWKB, EWKT and Canonical Forms `_, PostGIS documentation at Ch. 4.1.2. .. [#fndistsphere15] *See* `PostGIS documentation `_ on ``ST_DistanceSphere``. -.. [#fnmysqlidx] *See* `Creating Spatial Indexes `_ - in the MySQL Reference Manual: - - For MyISAM tables, ``SPATIAL INDEX`` creates an R-tree index. For storage - engines that support nonspatial indexing of spatial columns, the engine - creates a B-tree index. A B-tree index on spatial values will be useful - for exact-value lookups, but not for range scans. - .. [#] Refer :ref:`mysql-spatial-limitations` section for more details. diff --git a/docs/ref/contrib/gis/install/index.txt b/docs/ref/contrib/gis/install/index.txt index 56b5799891..90a857a074 100644 --- a/docs/ref/contrib/gis/install/index.txt +++ b/docs/ref/contrib/gis/install/index.txt @@ -43,8 +43,8 @@ how to install. Spatial database ---------------- -PostgreSQL (with PostGIS), MySQL (mostly with MyISAM engine), Oracle, and SQLite -(with SpatiaLite) are the spatial databases currently supported. +PostgreSQL (with PostGIS), MySQL, Oracle, and SQLite (with SpatiaLite) are the +spatial databases currently supported. .. note::