本文介紹 django.contrib.gis.db.models.Extent
的用法。
聲明
class Extent(geo_field)
Availability
:PostGIS,甲骨文,SpatiaLite
返回QuerySet
中所有geo_field
的範圍作為four-tuple,包括左下坐標和右上坐標。
例子:
>>> qs = City.objects.filter(name__in=('Houston', 'Dallas')).aggregate(Extent('poly'))
>>> print(qs['poly__extent'])
(-96.8016128540039, 29.7633724212646, -95.3631439208984, 32.782058715820)
相關用法
- Python Django Extent3D用法及代碼示例
- Python Django Expression.relabeled_clone用法及代碼示例
- Python Django Exp用法及代碼示例
- Python Django Expression.get_source_expressions用法及代碼示例
- Python Excel轉PDF用法及代碼示例
- Python Django ExclusionConstraint.expressions用法及代碼示例
- Python Django ExclusionConstraint.opclasses用法及代碼示例
- Python Django ExclusionConstraint.deferrable用法及代碼示例
- Python Excel轉CSV用法及代碼示例
- Python Django ExceptionReporter.get_traceback_data用法及代碼示例
- Python Django Exists用法及代碼示例
- Python Example filter()用法及代碼示例
- Python Enumerate()用法及代碼示例
- Python Django EmailBackend用法及代碼示例
- Python Event is_set()用法及代碼示例
- Python Event wait()用法及代碼示例
- Python Event clear()用法及代碼示例
- Python Event set()用法及代碼示例
- Python cudf.core.column.string.StringMethods.is_vowel用法及代碼示例
- Python torch.distributed.rpc.rpc_async用法及代碼示例
- Python torch.nn.InstanceNorm3d用法及代碼示例
- Python sklearn.cluster.MiniBatchKMeans用法及代碼示例
- Python pandas.arrays.IntervalArray.is_empty用法及代碼示例
- Python tf.compat.v1.distributions.Multinomial.stddev用法及代碼示例
- Python numpy.less()用法及代碼示例
注:本文由純淨天空篩選整理自djangoproject.com大神的英文原創作品 django.contrib.gis.db.models.Extent。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。