本文整理汇总了Python中django.contrib.gis.gdal.envelope.Envelope方法的典型用法代码示例。如果您正苦于以下问题:Python envelope.Envelope方法的具体用法?Python envelope.Envelope怎么用?Python envelope.Envelope使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类django.contrib.gis.gdal.envelope
的用法示例。
在下文中一共展示了envelope.Envelope方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: extent
# 需要导入模块: from django.contrib.gis.gdal import envelope [as 别名]
# 或者: from django.contrib.gis.gdal.envelope import Envelope [as 别名]
def extent(self):
"Returns the extent (an Envelope) of this layer."
env = OGREnvelope()
capi.get_extent(self.ptr, byref(env), 1)
return Envelope(env)
示例2: envelope
# 需要导入模块: from django.contrib.gis.gdal import envelope [as 别名]
# 或者: from django.contrib.gis.gdal.envelope import Envelope [as 别名]
def envelope(self):
"Returns the envelope for this Geometry."
# TODO: Fix Envelope() for Point geometries.
return Envelope(capi.get_envelope(self.ptr, byref(OGREnvelope())))
示例3: extent
# 需要导入模块: from django.contrib.gis.gdal import envelope [as 别名]
# 或者: from django.contrib.gis.gdal.envelope import Envelope [as 别名]
def extent(self):
"Returns the envelope as a 4-tuple, instead of as an Envelope object."
return self.envelope.tuple
# #### SpatialReference-related Properties ####
# The SRS property