... を返します。これは、数値フィールド以外では意味がありません (ゼロに設定されます): >>> layer . field_precisions [0, 0, 15, 0] extent このレイヤーの空間範囲を Envelope オブジェクトとして返します。 >>> layer . extent . tuple (-104.609252, 29.763374, -95.235 ... None >>> print ( len ( layer )) 3 >>> [ feat . get ( "Name" ) for feat in layer ] ['Pueblo', 'Lawrence', 'Houston'] >>> ks_extent = ( - 102.051 , 36.99 , - 94.59 , 40.00 ) # Extent for state of Kansas >>> layer . spatial_filter = ks_extent >>> len ( la ... ity strings include: 'RandomRead' , 'SequentialWrite' , 'RandomWrite' , 'FastSpatialFilter' , 'FastFeatureCount' , 'FastGetExtent' , 'CreateField' , 'Transactions' , 'DeleteFeature' , and 'FastSetNextByIndex' . Feature class Feature Feature は OGR の f ... ... by the SDOAGGRTYPE procedure; the Oracle documentation has more details. 例: >>> from django.contrib.gis.db.models import Extent , Union >>> WorldBorder . objects . aggregate ( Extent ( "mpoly" ), Union ( "mpoly" )) Collect class Collect ( geo_field , ... にしないため、ユニオンを実行するよりも数桁高速です。 Changed in Django 6.0: MariaDB 12.0.1 以降のサポートが追加されました。 Extent class Extent ( geo_field , filter = None ) [ソース] 利用可能なDB : PostGIS , Oracle, SpatiaLite QuerySet 内のすべての geo_ ... 座標からなる4値タプルを返します。 例: >>> qs = City . objects . filter ( name__in = ( "Houston" , "Dallas" )) . aggregate ( Extent ( "poly" )) >>> print ( qs [ "poly__extent" ]) (-96.8016128540039, 29.7633724212646, -95.3631439208984, 32.782058715820) E ... ... to provide tighter validation in response to reported problems (primarily with third-party applications, but to a certain extent also within Django itself). This comes in two parts: 1. A new utility function, django.utils.http.is_safe_url , is added; ... ... to provide tighter validation in response to reported problems (primarily with third-party applications, but to a certain extent also within Django itself). This comes in two parts: 1. A new utility function, django.utils.http.is_safe_url , is added; ... ... odeFeed ( Feed ): def geometry ( self , obj ): # Can also return: `obj.poly`, and `obj.poly.centroid`. return obj . poly . extent # tuple like: (X0, Y0, X1, Y1). item_geometry ( item ) これをセットすると、フィードの各 アイテム のジオメトリを返します。こ ... ... oint__within=Country.objects.filter(continent='Africa').values('mpoly')) . The SpatiaLite backend now supports Collect and Extent aggregates when the database version is 3.0 or later. The PostGIS 2 CREATE EXTENSION postgis and the SpatiaLite SELECT Ini ... ModelFormMixin.success_url is deprecated and will be removed in Django 1.10. GeoQuerySet aggregate methods The collect() , extent() , extent3d() , make_line() , and unionagg() aggregate methods are deprecated and should be replaced by their function-ba ... sed aggregate equivalents ( Collect , Extent , Extent3D , MakeLine , and Union ). Signature of the allow_migrate router method The signature of the allow_migrate() met ... ... uccessful. Layer name: TM_WORLD_BORDERS-0.3 Metadata: DBF_DATE_LAST_UPDATE=2008-07-30 Geometry: Polygon Feature Count: 246 Extent: (-180.000000, -90.000000) - (180.000000, 83.623596) Layer SRS WKT: GEOGCRS["WGS 84", DATUM["World Geodetic System 1984", ... uccessful. Layer name: TM_WORLD_BORDERS-0.3 Metadata: DBF_DATE_LAST_UPDATE=2008-07-30 Geometry: Polygon Feature Count: 246 Extent: (-180.000000, -90.000000) - (180.000000, 83.623596) Layer SRS WKT: GEOGCRS["WGS 84", DATUM["World Geodetic System 1984", ... ... atures: Support for SpatiaLite -- a spatial database for SQLite -- as a spatial backend. Geographic aggregates ( Collect , Extent , MakeLine , Union ) and F expressions. New GeoQuerySet methods: collect , geojson , and snap_to_grid . A new list interfa ... ... S固有のアグリゲート関数の概要です。 集計関数 PostGIS Oracle MariaDB MySQL SpatiaLite Collect X X (≥ 12.0.1) X (≥ 8.0.24) X Extent X X X Extent3D X MakeLine X X Union X X X 脚注 [ 1 ] 参照 Open Geospatial Consortium, Inc. の OpenGIS Simple Feature Speci ... ... HTML characters that could be interpreted by the browser to malicious effect are instead safely displayed ). However, the extent of this protection and its limitations should be understood. Ambiguity between the developer's intention and how the brows ... 2026年10月08日