... ップに相当する SQL を示しています。同じパターンがすべての空間ルックアップに適用されます。 ケース ルックアップ 等価なSQL N, B rast__contains=rst ST_Contains(rast, rst) N, B rast__1__contains=(rst, 2) ST_Contains(rast, 1, rst, 2) B, C rast__contains=geom ... ST_Contains(ST_Polygon(rast), geom) B, C rast__1__contains=geom ST_Contains(ST_Polygon(rast, 1), geom) B, C poly__contains=rst ST_Contains(poly, ST_Po ... lygon(rst)) B, C poly__contains=(rst, 1) ST_Contains(poly, ST_Polygon(rst, 1)) C rast__crosses=rst ST_Crosses(ST_Polygon(rast), ST_Polygon(rst)) C rast__1__crosses=(rst, 2) ST_Crosses(ST_Polygon(rast, 1), ST_ ... ... ップに相当する SQL を示しています。同じパターンがすべての空間ルックアップに適用されます。 ケース ルックアップ 等価なSQL N, B rast__contains=rst ST_Contains(rast, rst) N, B rast__1__contains=(rst, 2) ST_Contains(rast, 1, rst, 2) B, C rast__contains=geom ... ST_Contains(ST_Polygon(rast), geom) B, C rast__1__contains=geom ST_Contains(ST_Polygon(rast, 1), geom) B, C poly__contains=rst ST_Contains(poly, ST_Po ... lygon(rst)) B, C poly__contains=(rst, 1) ST_Contains(poly, ST_Polygon(rst, 1)) C rast__crosses=rst ST_Crosses(ST_Polygon(rast), ST_Polygon(rst)) C rast__1__crosses=(rst, 2) ST_Crosses(ST_Polygon(rast, 1), ST_ ... ... 間関数をサポートしています。しかし、空間関数は PostGIS のような他のバックエンドほど豊富ではありません。 ラスターのサポート ¶ RasterField は現在、PostGIS バックエンドのみに実装されています。ラスターフィールドに対する空間ルックアップは可能ですが、空間デー ... ターフィールドを持つモデルの作成と保存 ¶ ラスターモデルを作成するとき、ラスターフィールドは、遅延評価を使用して、入力を GDALRaster に暗黙的に変換します。そのため、ラスタフィールドは GDALRaster コンストラクタが受け付けるすべての入力を受け入れます。 以下 ... 方法の例です ( Elevation モデルを想定) : >>> from elevation.models import Elevation >>> dem = Elevation ( name = "Volcano" , rast = "/path/to/raster/volcano.tif" ) >>> dem . save () GDALRaster オブジェクトもラスターモデルの保存に使用できます: >>> from ... ... 間関数をサポートしています。しかし、空間関数は PostGIS のような他のバックエンドほど豊富ではありません。 ラスターのサポート ¶ RasterField は現在、PostGIS バックエンドのみに実装されています。ラスターフィールドに対する空間ルックアップは可能ですが、空間デー ... ターフィールドを持つモデルの作成と保存 ¶ ラスターモデルを作成するとき、ラスターフィールドは、遅延評価を使用して、入力を GDALRaster に暗黙的に変換します。そのため、ラスタフィールドは GDALRaster コンストラクタが受け付けるすべての入力を受け入れます。 以下 ... 方法の例です ( Elevation モデルを想定) : >>> from elevation.models import Elevation >>> dem = Elevation ( name = "Volcano" , rast = "/path/to/raster/volcano.tif" ) >>> dem . save () GDALRaster オブジェクトもラスターモデルの保存に使用できます: >>> from ... ... h = 5 ) poly = models . PolygonField () class Elevation ( models . Model ): name = models . CharField ( max_length = 100 ) rast = models . RasterField () 空間フィールドのタイプ ¶ 空間フィールドは一連のジオメトリフィールド型と1つのラスターフィールド型 ... olygon を格納します。 GeometryCollectionField ¶ class GeometryCollectionField [ソース] ¶ GeometryCollection を格納します。 RasterField ¶ class RasterField [ソース] ¶ GDALRaster を格納します。 RasterField は現在、PostGIS バックエンドのみで実装されてい ... eld PointField LineStringField PolygonField MultiPointField MultiLineStringField MultiPolygonField GeometryCollectionField RasterField 空間フィールドのオプション srid SRID の選択 spatial_index ジオメトリフィールドのオプション dim geography max_geom_c ... ... h = 5 ) poly = models . PolygonField () class Elevation ( models . Model ): name = models . CharField ( max_length = 100 ) rast = models . RasterField () 空間フィールドのタイプ ¶ 空間フィールドは一連のジオメトリフィールド型と1つのラスターフィールド型 ... olygon を格納します。 GeometryCollectionField ¶ class GeometryCollectionField [ソース] ¶ GeometryCollection を格納します。 RasterField ¶ class RasterField [ソース] ¶ GDALRaster を格納します。 RasterField は現在、PostGIS バックエンドのみで実装されてい ... eld PointField LineStringField PolygonField MultiPointField MultiLineStringField MultiPolygonField GeometryCollectionField RasterField 空間フィールドのオプション srid SRID の選択 spatial_index ジオメトリフィールドのオプション dim geography max_geom_c ... ... s/data/cities/cities. { shp,prj,shx,dbf } $ wget https://raw.githubusercontent.com/django/django/main/tests/gis_tests/data/rasters/raster.tif ベクトルデータソースオブジェクト ¶ DataSource ¶ DataSource is a wrapper for the OGR data source object that ... . geom # getting clone of feature geometry ... geom . transform ( ct ) # transforming ... ラスターデータオブジェクト ¶ GDALRaster ¶ GDALRaster is a wrapper for the GDAL raster source object that supports reading data from a variety of GDAL-supported ... geospatial file formats and data sources using a consistent interface. Each data source is represented by a GDALRaster object which contains one or more layers of data named bands. Each band, represented by a GDALBand object, contains geor ... ... s/data/cities/cities. { shp,prj,shx,dbf } $ wget https://raw.githubusercontent.com/django/django/main/tests/gis_tests/data/rasters/raster.tif ベクトルデータソースオブジェクト ¶ DataSource ¶ DataSource is a wrapper for the OGR data source object that ... . geom # getting clone of feature geometry ... geom . transform ( ct ) # transforming ... ラスターデータオブジェクト ¶ GDALRaster ¶ GDALRaster is a wrapper for the GDAL raster source object that supports reading data from a variety of GDAL-supported ... geospatial file formats and data sources using a consistent interface. Each data source is represented by a GDALRaster object which contains one or more layers of data named bands. Each band, represented by a GDALBand object, contains geor ... 2026年10月08日