mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #26124 -- Added missing code formatting to docs headers.
This commit is contained in:
parent
8bf8d0e0ec
commit
a6ef025dfb
93 changed files with 1658 additions and 1625 deletions
|
@ -35,8 +35,8 @@ Measurement Relationships Operations Editors
|
|||
:class:`Translate`
|
||||
================== ======================= ====================== =================== ================== =====================
|
||||
|
||||
Area
|
||||
====
|
||||
``Area``
|
||||
========
|
||||
|
||||
.. class:: Area(expression, **extra)
|
||||
|
||||
|
@ -47,8 +47,8 @@ field as an :class:`~django.contrib.gis.measure.Area` measure. On MySQL, a raw
|
|||
float value is returned, as it's not possible to automatically determine the
|
||||
unit of the field.
|
||||
|
||||
AsGeoJSON
|
||||
=========
|
||||
``AsGeoJSON``
|
||||
=============
|
||||
|
||||
.. class:: AsGeoJSON(expression, bbox=False, crs=False, precision=8, **extra)
|
||||
|
||||
|
@ -79,8 +79,8 @@ Keyword Argument Description
|
|||
representation -- the default value is 8.
|
||||
===================== =====================================================
|
||||
|
||||
AsGML
|
||||
=====
|
||||
``AsGML``
|
||||
=========
|
||||
|
||||
.. class:: AsGML(expression, version=2, precision=8, **extra)
|
||||
|
||||
|
@ -110,8 +110,8 @@ Keyword Argument Description
|
|||
|
||||
__ https://en.wikipedia.org/wiki/Geography_Markup_Language
|
||||
|
||||
AsKML
|
||||
=====
|
||||
``AsKML``
|
||||
=========
|
||||
|
||||
.. class:: AsKML(expression, precision=8, **extra)
|
||||
|
||||
|
@ -137,8 +137,8 @@ Keyword Argument Description
|
|||
|
||||
__ https://developers.google.com/kml/documentation/
|
||||
|
||||
AsSVG
|
||||
=====
|
||||
``AsSVG``
|
||||
=========
|
||||
|
||||
.. class:: AsSVG(expression, relative=False, precision=8, **extra)
|
||||
|
||||
|
@ -161,8 +161,8 @@ Keyword Argument Description
|
|||
|
||||
__ http://www.w3.org/Graphics/SVG/
|
||||
|
||||
BoundingCircle
|
||||
==============
|
||||
``BoundingCircle``
|
||||
==================
|
||||
|
||||
.. class:: BoundingCircle(expression, num_seg=48, **extra)
|
||||
|
||||
|
@ -171,8 +171,8 @@ BoundingCircle
|
|||
Accepts a single geographic field or expression and returns the smallest circle
|
||||
polygon that can fully contain the geometry.
|
||||
|
||||
Centroid
|
||||
========
|
||||
``Centroid``
|
||||
============
|
||||
|
||||
.. class:: Centroid(expression, **extra)
|
||||
|
||||
|
@ -181,8 +181,8 @@ Centroid
|
|||
Accepts a single geographic field or expression and returns the ``centroid``
|
||||
value of the geometry.
|
||||
|
||||
Difference
|
||||
==========
|
||||
``Difference``
|
||||
==============
|
||||
|
||||
.. class:: Difference(expr1, expr2, **extra)
|
||||
|
||||
|
@ -196,8 +196,8 @@ geometry B.
|
|||
|
||||
MySQL support was added.
|
||||
|
||||
Distance
|
||||
========
|
||||
``Distance``
|
||||
============
|
||||
|
||||
.. class:: Distance(expr1, expr2, spheroid=None, **extra)
|
||||
|
||||
|
@ -240,8 +240,8 @@ queryset is calculated::
|
|||
in kilometers. See :doc:`measure` for usage details and the list of
|
||||
:ref:`supported_units`.
|
||||
|
||||
Envelope
|
||||
========
|
||||
``Envelope``
|
||||
============
|
||||
|
||||
.. class:: Envelope(expression, **extra)
|
||||
|
||||
|
@ -250,8 +250,8 @@ Envelope
|
|||
Accepts a single geographic field or expression and returns the geometry
|
||||
representing the bounding box of the geometry.
|
||||
|
||||
ForceRHR
|
||||
========
|
||||
``ForceRHR``
|
||||
============
|
||||
|
||||
.. class:: ForceRHR(expression, **extra)
|
||||
|
||||
|
@ -261,8 +261,8 @@ Accepts a single geographic field or expression and returns a modified version
|
|||
of the polygon/multipolygon in which all of the vertices follow the
|
||||
right-hand rule.
|
||||
|
||||
GeoHash
|
||||
=======
|
||||
``GeoHash``
|
||||
===========
|
||||
|
||||
.. class:: GeoHash(expression, **extra)
|
||||
|
||||
|
@ -277,8 +277,8 @@ representation of the geometry.
|
|||
|
||||
__ https://en.wikipedia.org/wiki/Geohash
|
||||
|
||||
Intersection
|
||||
============
|
||||
``Intersection``
|
||||
================
|
||||
|
||||
.. class:: Intersection(expr1, expr2, **extra)
|
||||
|
||||
|
@ -291,8 +291,8 @@ intersection between them.
|
|||
|
||||
MySQL support was added.
|
||||
|
||||
Length
|
||||
======
|
||||
``Length``
|
||||
==========
|
||||
|
||||
.. class:: Length(expression, spheroid=True, **extra)
|
||||
|
||||
|
@ -308,8 +308,8 @@ specify if the calculation should be based on a simple sphere (less
|
|||
accurate, less resource-intensive) or on a spheroid (more accurate, more
|
||||
resource-intensive) with the ``spheroid`` keyword argument.
|
||||
|
||||
MemSize
|
||||
=======
|
||||
``MemSize``
|
||||
===========
|
||||
|
||||
.. class:: MemSize(expression, **extra)
|
||||
|
||||
|
@ -318,8 +318,8 @@ MemSize
|
|||
Accepts a single geographic field or expression and returns the memory size
|
||||
(number of bytes) that the geometry field takes.
|
||||
|
||||
NumGeometries
|
||||
=============
|
||||
``NumGeometries``
|
||||
=================
|
||||
|
||||
.. class:: NumGeometries(expression, **extra)
|
||||
|
||||
|
@ -329,8 +329,8 @@ Accepts a single geographic field or expression and returns the number of
|
|||
geometries if the geometry field is a collection (e.g., a ``GEOMETRYCOLLECTION``
|
||||
or ``MULTI*`` field); otherwise returns ``None``.
|
||||
|
||||
NumPoints
|
||||
=========
|
||||
``NumPoints``
|
||||
=============
|
||||
|
||||
.. class:: NumPoints(expression, **extra)
|
||||
|
||||
|
@ -339,8 +339,8 @@ NumPoints
|
|||
Accepts a single geographic field or expression and returns the number of points
|
||||
in the first linestring in the geometry field; otherwise returns ``None``.
|
||||
|
||||
Perimeter
|
||||
=========
|
||||
``Perimeter``
|
||||
=============
|
||||
|
||||
.. class:: Perimeter(expression, **extra)
|
||||
|
||||
|
@ -351,8 +351,8 @@ geometry field as a :class:`~django.contrib.gis.measure.Distance` object. On
|
|||
MySQL, a raw float value is returned, as it's not possible to automatically
|
||||
determine the unit of the field.
|
||||
|
||||
PointOnSurface
|
||||
==============
|
||||
``PointOnSurface``
|
||||
==================
|
||||
|
||||
.. class:: PointOnSurface(expression, **extra)
|
||||
|
||||
|
@ -361,8 +361,8 @@ PointOnSurface
|
|||
Accepts a single geographic field or expression and returns a ``Point`` geometry
|
||||
guaranteed to lie on the surface of the field; otherwise returns ``None``.
|
||||
|
||||
Reverse
|
||||
=======
|
||||
``Reverse``
|
||||
===========
|
||||
|
||||
.. class:: Reverse(expression, **extra)
|
||||
|
||||
|
@ -371,8 +371,8 @@ Reverse
|
|||
Accepts a single geographic field or expression and returns a geometry with
|
||||
reversed coordinates.
|
||||
|
||||
Scale
|
||||
=====
|
||||
``Scale``
|
||||
=========
|
||||
|
||||
.. class:: Scale(expression, x, y, z=0.0, **extra)
|
||||
|
||||
|
@ -382,8 +382,8 @@ Accepts a single geographic field or expression and returns a geometry with
|
|||
scaled coordinates by multiplying them with the ``x``, ``y``, and optionally
|
||||
``z`` parameters.
|
||||
|
||||
SnapToGrid
|
||||
==========
|
||||
``SnapToGrid``
|
||||
==============
|
||||
|
||||
.. class:: SnapToGrid(expression, *args, **extra)
|
||||
|
||||
|
@ -402,8 +402,8 @@ Number of Arguments Description
|
|||
4 X, Y sizes and the corresponding X, Y origins.
|
||||
=================== =====================================================
|
||||
|
||||
SymDifference
|
||||
=============
|
||||
``SymDifference``
|
||||
=================
|
||||
|
||||
.. class:: SymDifference(expr1, expr2, **extra)
|
||||
|
||||
|
@ -417,8 +417,8 @@ parameters.
|
|||
|
||||
MySQL support was added.
|
||||
|
||||
Transform
|
||||
=========
|
||||
``Transform``
|
||||
=============
|
||||
|
||||
.. class:: Transform(expression, srid, **extra)
|
||||
|
||||
|
@ -434,8 +434,8 @@ the transformed geometry to the spatial reference system specified by the
|
|||
the spatial database used. In other words, the SRID numbers used for Oracle
|
||||
are not necessarily the same as those used by PostGIS.
|
||||
|
||||
Translate
|
||||
=========
|
||||
``Translate``
|
||||
=============
|
||||
|
||||
.. class:: Translate(expression, x, y, z=0.0, **extra)
|
||||
|
||||
|
@ -445,8 +445,8 @@ Accepts a single geographic field or expression and returns a geometry with
|
|||
its coordinates offset by the ``x``, ``y``, and optionally ``z`` numeric
|
||||
parameters.
|
||||
|
||||
Union
|
||||
=====
|
||||
``Union``
|
||||
=========
|
||||
|
||||
.. class:: Union(expr1, expr2, **extra)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue