---
title: "地理情報データベース関数"
version: 5.0
locale: ja
source: https://docs.djangoproject.com/ja/5.0/ref/contrib/gis/functions/
canonical: https://djangodocs.dev/ja/5.0/ref/contrib/gis/functions/
---
# 地理情報データベース関数

このページで説明する関数を使えば、Django のアノテーションや集約、フィルタで使う地理情報データベース関数にアクセスできます。

例:

```pycon
>>> from django.contrib.gis.db.models.functions import Length
>>> Track.objects.annotate(length=Length("line")).filter(length__gt=100)
```

すべてのバックエンドがすべての関数をサポートしているわけではないので、それぞれの関数のドキュメントを参照して、使用したい関数をサポートしているかどうかを確認してください。サポートしていないバックエンドで地理情報関数を呼び出すと、 `NotImplementedError` 例外が発生します。

関数の概要:

| 測定 | リレーション | 操作 | 編集 | 入力フォーマット | 出力フォーマット | その他 |
| --- | --- | --- | --- | --- | --- | --- |
| [`Area`](#django.contrib.gis.db.models.functions.Area) | [`Azimuth`](#django.contrib.gis.db.models.functions.Azimuth) | [`Difference`](#django.contrib.gis.db.models.functions.Difference) | [`ForcePolygonCW`](#django.contrib.gis.db.models.functions.ForcePolygonCW) |  | [`AsGeoJSON`](#django.contrib.gis.db.models.functions.AsGeoJSON) | [`IsEmpty`](#django.contrib.gis.db.models.functions.IsEmpty) |
| [`Distance`](#django.contrib.gis.db.models.functions.Distance) | [`BoundingCircle`](#django.contrib.gis.db.models.functions.BoundingCircle) | [`Intersection`](#django.contrib.gis.db.models.functions.Intersection) | [`MakeValid`](#django.contrib.gis.db.models.functions.MakeValid) |  | [`AsGML`](#django.contrib.gis.db.models.functions.AsGML) | [`IsValid`](#django.contrib.gis.db.models.functions.IsValid) |
| [`GeometryDistance`](#django.contrib.gis.db.models.functions.GeometryDistance) | [`Centroid`](#django.contrib.gis.db.models.functions.Centroid) | [`SymDifference`](#django.contrib.gis.db.models.functions.SymDifference) | [`Reverse`](#django.contrib.gis.db.models.functions.Reverse) |  | [`AsKML`](#django.contrib.gis.db.models.functions.AsKML) | [`MemSize`](#django.contrib.gis.db.models.functions.MemSize) |
| [`Length`](#django.contrib.gis.db.models.functions.Length) | [`ClosestPoint`](#django.contrib.gis.db.models.functions.ClosestPoint) | [`Union`](#django.contrib.gis.db.models.functions.Union) | [`Scale`](#django.contrib.gis.db.models.functions.Scale) |  | [`AsSVG`](#django.contrib.gis.db.models.functions.AsSVG) | [`NumGeometries`](#django.contrib.gis.db.models.functions.NumGeometries) |
| [`Perimeter`](#django.contrib.gis.db.models.functions.Perimeter) | [`Envelope`](#django.contrib.gis.db.models.functions.Envelope)<br>[`LineLocatePoint`](#django.contrib.gis.db.models.functions.LineLocatePoint)<br>[`PointOnSurface`](#django.contrib.gis.db.models.functions.PointOnSurface) |  | [`SnapToGrid`](#django.contrib.gis.db.models.functions.SnapToGrid)<br>[`Transform`](#django.contrib.gis.db.models.functions.Transform)<br>[`Translate`](#django.contrib.gis.db.models.functions.Translate) | [`FromWKB`](#django.contrib.gis.db.models.functions.FromWKB)<br>[`FromWKT`](#django.contrib.gis.db.models.functions.FromWKT) | [`AsWKB`](#django.contrib.gis.db.models.functions.AsWKB)<br>[`AsWKT`](#django.contrib.gis.db.models.functions.AsWKT)<br>[`GeoHash`](#django.contrib.gis.db.models.functions.GeoHash) | [`NumPoints`](#django.contrib.gis.db.models.functions.NumPoints) |

## `Area`

#### `class Area(expression, **extra)`

*利用可能なDB*: MariaDB、[MySQL](https://dev.mysql.com/doc/refman/en/gis-polygon-property-functions.html#function_st-area)、Oracle、[PostGIS](https://postgis.net/docs/ST_Area.html)、SpatiaLite

単一の地理情報フィールドまたは式を受け取り、そのフィールドの面積を [`Area`](/ja/5.0/ref/contrib/gis/measure/#django.contrib.gis.measure.Area) 測定値として返します。

LWGEOM/RTTOPOを使用しないMySQLとSpatiaLiteは、地理SRSの面積計算をサポートしていません。

## `AsGeoJSON`

#### `class AsGeoJSON(expression, bbox=False, crs=False, precision=8, **extra)`

*利用可能なDB*: MariaDB, [MySQL](https://dev.mysql.com/doc/refman/en/spatial-geojson-functions.html#function_st-asgeojson), Oracle, [PostGIS](https://postgis.net/docs/ST_AsGeoJSON.html), SpatiaLite

単一の地理情報フィールドまたは式を受け取り、地理情報の [GeoJSON](https://geojson.org/) 表現を返す。結果は完全な GeoJSON 構造体ではなく、GeoJSON 構造体のキーコンテンツ `geometry` だけであることに注意してください。 [GeoJSON シリアライザ](/ja/5.0/ref/contrib/gis/serializers/) も参照。

例:

```pycon
>>> City.objects.annotate(json=AsGeoJSON("point")).get(name="Chicago").json
{"type":"Point","coordinates":[-87.65018,41.85039]}
```

| キーワード引数 | 説明 |
| --- | --- |
| `bbox` | 返される GeoJSON にバウンディングボックスを含めたい場合は、これを `True` に設定します。Oracle では無視される。 |
| `crs` | 返される GeoJSON に座標参照系を含めたい場合は、これを `True` に設定してください。MySQLとOracleでは無視されます。 |
| `precision` | GeoJSON 表現での座標の有効数字の桁数を指定します。デフォルト値は8です。Oracleでは無視されます。 |

## `AsGML`

#### `class AsGML(expression, version=2, precision=8, **extra)`

*利用可能なDB*: Oracle, [PostGIS](https://postgis.net/docs/ST_AsGML.html), SpatiaLite

単一の地理情報フィールドまたは式を受け取り、そのジオメトリの [Geographic Markup Language (GML)](https://en.wikipedia.org/wiki/Geography_Markup_Language) 表現を返します。

例:

```pycon
>>> qs = Zipcode.objects.annotate(gml=AsGML("poly"))
>>> print(qs[0].gml)
<gml:Polygon srsName="EPSG:4326"><gml:OuterBoundaryIs>-147.78711,70.245363 ...
-147.78711,70.245363</gml:OuterBoundaryIs></gml:Polygon>
```

| キーワード引数 | 説明 |
| --- | --- |
| `precision` | GML 表現における座標の有効桁数を指定します (デフォルト値は 8)。Oracle では無視されます。 |
| `version` | 使用するGMLバージョンを指定します: 2 (デフォルト) または 3。 |

## `AsKML`

#### `class AsKML(expression, precision=8, **extra)`

*利用可能なDB*: [PostGIS](https://postgis.net/docs/ST_AsKML.html)、SpatiaLite

単一の地理情報フィールドまたは式を受け取り、地理情報の [Keyhole Markup Language (KML)](https://developers.google.com/kml/documentation/) 表現を返す。

例:

```pycon
>>> qs = Zipcode.objects.annotate(kml=AsKML("poly"))
>>> print(qs[0].kml)
<Polygon><outerBoundaryIs><LinearRing><coordinates>-103.04135,36.217596,0 ...
-103.04135,36.217596,0</coordinates></LinearRing></outerBoundaryIs></Polygon>
```

| キーワード引数 | 説明 |
| --- | --- |
| `precision` | このキーワードは、KML表現で座標の有効桁数を指定するために使用できます。デフォルト値は8です。 |

## `AsSVG`

#### `class AsSVG(expression, relative=False, precision=8, **extra)`

*利用可能なDB*: [PostGIS](https://postgis.net/docs/ST_AsSVG.html), SpatiaLite

単一の地理情報フィールドまたは式を受け取り、そのジオメトリの [Scalable Vector Graphics (SVG)](https://www.w3.org/Graphics/SVG/) 表現を返します。

| キーワード引数 | 説明 |
| --- | --- |
| `relative` | `True` に設定すると、経路データは相対移動として実装されます。デフォルトは `False` で、代わりに絶対移動が使用されます。 |
| `precision` | このキーワードは、SVG 表現内の座標の有効桁数を指定するために使用できます。デフォルト値は 8 です。 |

## `AsWKB`

#### `class AsWKB(expression, **extra)`

*利用可能なDB*: MariaDB, [MySQL](https://dev.mysql.com/doc/refman/en/gis-format-conversion-functions.html#function_st-asbinary), Oracle, [PostGIS](https://postgis.net/docs/ST_AsBinary.html), SpatiaLite

単一の地理情報フィールドまたは式を受け取り、そのジオメトリの [Well-known binary (WKB)](https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry#Well-known_binary) 表現を返します。

例:

```pycon
>>> bytes(City.objects.annotate(wkb=AsWKB("point")).get(name="Chelyabinsk").wkb)
b'\x01\x01\x00\x00\x00]3\xf9f\x9b\x91K@\x00X\x1d9\xd2\xb9N@'
```

## `AsWKT`

#### `class AsWKT(expression, **extra)`

*利用可能なDB*: MariaDB, [MySQL](https://dev.mysql.com/doc/refman/en/gis-format-conversion-functions.html#function_st-astext), Oracle, [PostGIS](https://postgis.net/docs/ST_AsText.html), SpatiaLite

単一の地理情報フィールドまたは式を受け取り、ジオメトリの [Well-known text (WKT)](https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry) 表現を返します。

例:

```pycon
>>> City.objects.annotate(wkt=AsWKT("point")).get(name="Chelyabinsk").wkt
'POINT (55.137555 61.451728)'
```

## `Azimuth`

#### `class Azimuth(point_a, point_b, **extra)`

*利用可能なDB*: [PostGIS](https://postgis.net/docs/ST_Azimuth.html), SpatiaLite (LWGEOM/RTTOPO)

与えられた点のジオメトリで定義されるセグメントの方位をラジアンで返します。2つの点が重なっている場合は `None` を返します。方位は北を基準とした角度で、時計回りが正です: 北 = `0`; 東 = `π/2`; 南 = `π`; 西 = `3π/2` 。

## `BoundingCircle`

#### `class BoundingCircle(expression, num_seg=48, **extra)`

*利用可能なDB*: [PostGIS](https://postgis.net/docs/ST_MinimumBoundingCircle.html), [Oracle](https://docs.oracle.com/en/database/oracle/oracle-database/21/spatl/SDO_GEOM-reference.html#GUID-82A61626-BB64-4793-B53D-A0DBEC91831A)

単一の地理情報フィールドまたは式を受け取り、そのジオメトリを完全に含むことができる最小の円ポリゴンを返します。

`num_seg` パラメータは PostGIS 上でのみ使用されます。

## `Centroid`

#### `class Centroid(expression, **extra)`

*利用可能なDB*: MariaDB, [MySQL](https://dev.mysql.com/doc/refman/en/gis-polygon-property-functions.html#function_st-centroid), [PostGIS](https://postgis.net/docs/ST_Centroid.html), Oracle, SpatiaLite

単一の地理情報フィールドまたは式を受け取り、ジオメトリの `centroid` 値を返す。

## `ClosestPoint`

> **New in Django 5.0**

#### `class ClosestPoint(expr1, expr2, **extra)`

*利用可能なDB*: [PostGIS](https://postgis.net/docs/ST_ClosestPoint.html), SpatiaLite

2つの地理情報フィールドまたは式を受け取り、地理情報 A 上で地理情報 B に最も近い 2次元ポイントを返します。

## `Difference`

#### `class Difference(expr1, expr2, **extra)`

*利用可能なDB*: MariaDB, [MySQL](https://dev.mysql.com/doc/refman/en/spatial-operator-functions.html#function_st-difference), [PostGIS](https://postgis.net/docs/ST_Difference.html), Oracle, SpatiaLite

2つの地理情報フィールドまたは式を受け取り、幾何学的な差、つまり地理情報Aのうち地理情報Bと重ならない部分を返す。

## `Distance`

#### `class Distance(expr1, expr2, spheroid=None, **extra)`

*利用可能なDB*: MariaDB, [MySQL](https://dev.mysql.com/doc/refman/en/spatial-relation-functions-object-shapes.html#function_st-distance), [PostGIS](https://postgis.net/docs/ST_Distance.html), Oracle, SpatiaLite

2つの地理情報フィールドまたは式を受け取り、それらの間の距離を [`Distance`](/ja/5.0/ref/contrib/gis/measure/#django.contrib.gis.measure.Distance) オブジェクトとして返します。MySQL では、座標が測地系の場合、生の float 値が返されます。

測地座標での距離計算をサポートするバックエンドでは、ジオメトリの SRID 値に応じて適切なバックエンド関数が自動的に選択されます (例: PostGIS の [ST\_DistanceSphere](https://postgis.net/docs/ST_DistanceSphere.html))。

デフォルトのWGS84 (4326) SRIDのように測地 (角度) 座標で距離を計算する場合、 `spheroid` キーワード引数を設定することで、単純な球体 (精度が低く、リソースをあまり必要としない) か球体 (精度が高く、リソースを多く必要とする) のどちらに基づいて計算するかを決めることができます。

以下の例では、Hobart 市から `AustraliaCity` クエリセット内の他の [`PointField`](/ja/5.0/ref/contrib/gis/model-api/#django.contrib.gis.db.models.PointField) までの距離を計算しています:

```pycon
>>> from django.contrib.gis.db.models.functions import Distance
>>> pnt = AustraliaCity.objects.get(name="Hobart").point
>>> for city in AustraliaCity.objects.annotate(distance=Distance("point", pnt)):
...     print(city.name, city.distance)
...
Wollongong 990071.220408 m
Shellharbour 972804.613941 m
Thirroul 1002334.36351 m
...
```

> **Note**
>
> `distance` 属性は [`Distance`](/ja/5.0/ref/contrib/gis/measure/#django.contrib.gis.measure.Distance) オブジェクトなので、簡単に任意の単位で値を表現できます。例えば、 `city.distance.mi` はマイル単位の距離値であり、 `city.distance.km` はキロメートル単位の距離値です。使用方法の詳細や [サポートされる単位](/ja/5.0/ref/contrib/gis/measure/#supported-units) のリストについては、 [測定オブジェクト](/ja/5.0/ref/contrib/gis/measure/) を参照してください。

## `Envelope`

#### `class Envelope(expression, **extra)`

*利用可能なDB*: MariaDB, [MySQL](https://dev.mysql.com/doc/refman/en/gis-general-property-functions.html#function_st-envelope), [Oracle](https://docs.oracle.com/en/database/oracle/oracle-database/21/spatl/spatial-operators-reference.html#GUID-ACED800F-3435-44AA-9606-D40934A23ED0), [PostGIS](https://postgis.net/docs/ST_Envelope.html), SpatiaLite

1つの地理情報フィールドまたは式を受け取り、ジオメトリのバウンディングボックスを表すジオメトリを返します。

## `ForcePolygonCW`

#### `class ForcePolygonCW(expression, **extra)`

*利用可能なDB*: [PostGIS](https://postgis.net/docs/ST_ForcePolygonCW.html), SpatiaLite

1つの地理情報フィールドまたは式を受け取り、すべての外側のリングが時計回り、すべての内側のリングが反時計回りであるポリゴン/マルチポリゴンの修正版を返します。多角形以外のジオメトリは変更されずに返されます。

## `FromWKB`

> **New in Django 4.2**

#### `class FromWKB(expression, **extra)`

*利用可能なDB*: MariaDB, [MySQL](https://dev.mysql.com/doc/refman/en/gis-wkb-functions.html#function_st-geomfromwkb), Oracle, [PostGIS](https://postgis.net/docs/ST_GeomFromWKB.html), SpatiaLite

[Well-known binary (WKB)](https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry#Well-known_binary) 表現からジオメトリを作成します。

## `FromWKT`

> **New in Django 4.2**

#### `class FromWKT(expression, **extra)`

*利用可能なDB*: MariaDB, [MySQL](https://dev.mysql.com/doc/refman/en/gis-wkt-functions.html#function_st-geomfromtext), Oracle, [PostGIS](https://postgis.net/docs/ST_GeomFromText.html), SpatiaLite

[Well-known text (WKT)](https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry) 表現からジオメトリを作成します。

## `GeoHash`

#### `class GeoHash(expression, precision=None, **extra)`

*利用可能なDB*: [MySQL](https://dev.mysql.com/doc/refman/en/spatial-geohash-functions.html#function_st-geohash), [PostGIS](https://postgis.net/docs/ST_GeoHash.html), SpatiaLite (LWGEOM/RTTOPO)

単一の地理情報フィールドまたは式を受け取り、ジオメトリの [GeoHash](https://en.wikipedia.org/wiki/Geohash) 表現を返します。

キーワード引数 `precision` は結果の文字数をコントロールします。

## `GeometryDistance`

#### `class GeometryDistance(expr1, expr2, **extra)`

*利用可能なDB*: [PostGIS](https://postgis.net/docs/geometry_distance_knn.html)

2つの地理情報フィールドまたは式を受け取り、それらの間の距離を返します。 [`order_by()`](/ja/5.0/ref/models/querysets/#django.db.models.query.QuerySet.order_by) 節で使用すると、インデックスアシストされた最近傍の結果セットを提供します。

## `Intersection`

#### `class Intersection(expr1, expr2, **extra)`

*利用可能なDB*: MariaDB, [MySQL](https://dev.mysql.com/doc/refman/en/spatial-operator-functions.html#function_st-intersection), [PostGIS](https://postgis.net/docs/ST_Intersection.html), Oracle, SpatiaLite

2 つの地理情報フィールドや式を受け取り、それらの間の幾何学的な交点を返します。

## `IsEmpty`

> **New in Django 4.2**

#### `class IsEmpty(expr)`

*利用可能なDB*: [PostGIS](https://postgis.net/docs/ST_IsEmpty.html)

地理情報フィールドまたは式を受け取り、その値が空のジオメトリであるかどうかをテストします。値が空の場合は `True` を返し、そうでない場合は `False` を返します。

## `IsValid`

#### `class IsValid(expr)`

*利用可能なDB*: [MySQL](https://dev.mysql.com/doc/refman/en/spatial-convenience-functions.html#function_st-isvalid), [PostGIS](https://postgis.net/docs/ST_IsValid.html), Oracle, SpatiaLite

地理情報フィールドまたは式を受け取り、その値が整形されているかどうかをテストします。値が有効なジオメトリであれば `True` を返し、そうでなければ `False` を返します。

## `Length`

#### `class Length(expression, spheroid=True, **extra)`

*利用可能なDB*: MariaDB, [MySQL](https://dev.mysql.com/doc/refman/en/gis-linestring-property-functions.html#function_st-length), Oracle, [PostGIS](https://postgis.net/docs/ST_Length.html), SpatiaLite

単一の地理的な linestring または multilinestring フィールドまたは式を受け取り、その長さを [`Distance`](/ja/5.0/ref/contrib/gis/measure/#django.contrib.gis.measure.Distance) メジャーとして返します。

PostGISとSpatiaLiteでは、座標が測地系 (角度) である場合、単純な球 (精度が低く、リソースの消費量が少ない) か、球体 (精度が高く、リソースの消費量が多い) かを `spheroid` キーワード引数で指定できます。

MySQLは地理空間SRSにおける長さの計算をサポートしていません。

## `LineLocatePoint`

#### `class LineLocatePoint(linestring, point, **extra)`

*利用可能なDB*: [PostGIS](https://postgis.net/docs/ST_LineLocatePoint.html), SpatiaLite

与えられた `point` に最も近い `linestring` 上の点の位置を 0 から 1 までの float で表し、2D 線の長さに対する割合で返す。

## `MakeValid`

#### `class MakeValid(expr)`

*利用可能なDB*: [PostGIS](https://postgis.net/docs/ST_MakeValid.html), SpatiaLite (LWGEOM/RTTOPO)

地理情報フィールドまたは式を受け取り、入力頂点を失うことなくその値を有効なジオメトリに変換しようとします。すでに有効なジオメトリは変更されずに返されます。単純なポリゴンはマルチポリゴンになる可能性があり、結果は入力よりも低次元になる可能性があります。

## `MemSize`

#### `class MemSize(expression, **extra)`

*利用可能なDB*: [PostGIS](https://postgis.net/docs/ST_MemSize.html)

1つの地理情報フィールドまたは式を受け取り、その地理情報フィールドが必要とするメモリサイズ (バイト数) を返します。

## `NumGeometries`

#### `class NumGeometries(expression, **extra)`

*利用可能なDB*: MariaDB, [MySQL](https://dev.mysql.com/doc/refman/en/gis-geometrycollection-property-functions.html#function_st-numgeometries), [PostGIS](https://postgis.net/docs/ST_NumGeometries.html), Oracle, SpatiaLite

単一の地理情報フィールドまたは式を受け取り、地理情報フィールドがコレクション (たとえば `GEOMETRYCOLLECTION` または `MULTI*` フィールド) の場合は、ジオメトリ数を返します。単一のジオメトリの場合は 1 を返します。

MySQL では、単一のジオメトリに対して `None` を返します。

## `NumPoints`

#### `class NumPoints(expression, **extra)`

*利用可能なDB*: MariaDB, [MySQL](https://dev.mysql.com/doc/refman/en/gis-linestring-property-functions.html#function_st-numpoints), [PostGIS](https://postgis.net/docs/ST_NPoints.html), Oracle, SpatiaLite

単一の地理情報フィールドまたは式を受け取り、ジオメトリ内のポイント数を返します。

MySQL では、`LINESTRING` でないジオメトリに対しては `None` を返します。

## `Perimeter`

#### `class Perimeter(expression, **extra)`

*利用可能なDB*: [PostGIS](https://postgis.net/docs/ST_Perimeter.html), Oracle, SpatiaLite

単一の地理情報フィールドまたは式を受け取り、ジオメトリフィールドの周長を [`Distance`](/ja/5.0/ref/contrib/gis/measure/#django.contrib.gis.measure.Distance) オブジェクトとして返します。

## `PointOnSurface`

#### `class PointOnSurface(expression, **extra)`

*利用可能なDB*: [PostGIS](https://postgis.net/docs/ST_PointOnSurface.html), MariaDB, Oracle, SpatiaLite

単一の地理情報フィールドまたは式を受け入れ、そのフィールドの表面上にあることが保証された `Point` ジオメトリを返します。そのような値がない場合は `None` を返します。

## `Reverse`

#### `class Reverse(expression, **extra)`

*利用可能なDB*: [PostGIS](https://postgis.net/docs/ST_Reverse.html), Oracle, SpatiaLite

単一の地理情報フィールドまたは式を受け取り、座標を反転したジオメトリを返します。

## `Scale`

#### `class Scale(expression, x, y, z=0.0, **extra)`

*利用可能なDB*: [PostGIS](https://postgis.net/docs/ST_Scale.html), SpatiaLite

単一の地理情報フィールドまたは式を受け取り、それらを `x`、`y`、任意で `z` パラメータで乗算してスケーリングした座標を持つジオメトリを返します。

## `SnapToGrid`

#### `class SnapToGrid(expression, *args, **extra)`

*利用可能なDB*: [PostGIS](https://postgis.net/docs/ST_SnapToGrid.html), SpatiaLite

1 つの地理情報フィールドまたは式を受け取り、すべての点が指定されたグリッドにスナップされたジオメトリを返します。ジオメトリがグリッドにスナップされる方法は、与えられた数値 (float、integer、long のいずれか) の数によって異なります。

| 引数の数 | 説明 |
| --- | --- |
| 1 | XグリッドとYグリッドの両方をスナップする単一のサイズ。 |
| 2 | グリッドをスナップさせるXとYのサイズ。 |
| 4 | X、Yのサイズと、対応するX、Yの原点。 |

## `SymDifference`

#### `class SymDifference(expr1, expr2, **extra)`

*利用可能なDB*: MariaDB, [MySQL](https://dev.mysql.com/doc/refman/en/spatial-operator-functions.html#function_st-symdifference), [PostGIS](https://postgis.net/docs/ST_SymDifference.html), Oracle, SpatiaLite

2つの地理情報フィールドまたは式を受け取り、与えられたパラメータ間の幾何学的対称差 (交差を除いた和) を返します。

## `Transform`

#### `class Transform(expression, srid, **extra)`

*利用可能なDB*: [PostGIS](https://postgis.net/docs/ST_Transform.html), Oracle, SpatiaLite

地理情報フィールドまたは式と SRID 整数コードを受け取り、`srid` パラメータで指定された空間参照系に変換されたジオメトリを返します。

> **Note**
>
> 整数のSRIDがどの空間参照系に対応するかは、使用する空間データベースによって異なります。つまり、Oracleで使用されるSRID番号は、必ずしもPostGISで使用されるSRID番号と同じではありません。

## `Translate`

#### `class Translate(expression, x, y, z=0.0, **extra)`

*利用可能なDB*: [PostGIS](https://postgis.net/docs/ST_Translate.html), SpatiaLite

単一の地理情報フィールドまたは式を受け取り、その座標を `x`, `y`, オプションで `z` の数値パラメータでオフセットしたジオメトリを返します。

## `Union`

#### `class Union(expr1, expr2, **extra)`

*利用可能なDB*: MariaDB, [MySQL](https://dev.mysql.com/doc/refman/en/spatial-operator-functions.html#function_st-union), [PostGIS](https://postgis.net/docs/ST_Union.html), Oracle, SpatiaLite

2 つの地理情報フィールドまたは式を受け取り、それらの両方のジオメトリの和集合を返します。
