altair.Point#
- class altair.Point(coordinates=Undefined, type=Undefined, bbox=Undefined, **kwds)#
点模式包装器。
点几何对象。 https://tools.ietf.org/html/rfc7946#section-3.1.2
- Parameters:
- coordinatesSequence[float],
位置 位置是坐标的数组。 https://tools.ietf.org/html/rfc7946#section-3.1.1 数组应包含两个 到三个元素。之前的GeoJSON规范允许更多元素(例如, 可以用来表示M值),但当前规范仅允许定义X、Y和(可选的)Z。
- typeLiteral[‘Point’]
指定GeoJSON对象的类型。
- bbox
BBox, Sequence[float] 对象几何体、特征或特征集合的坐标范围的边界框。 https://tools.ietf.org/html/rfc7946#section-5
- coordinatesSequence[float],
- __init__(coordinates=Undefined, type=Undefined, bbox=Undefined, **kwds)#
方法
__init__([坐标, 类型, 边界框])copy([深度, 忽略])返回对象的副本。
from_dict(dct[, validate])从字典表示构造类。
from_json(json_string[, validate])从有效的 JSON 字符串实例化对象。
resolve_references([schema])解析此对象的架构或根架构中的引用。
to_dict([validate, ignore, context])返回对象的字典表示。
to_json([validate, indent, sort_keys, ...])以字符串形式输出该对象的 JSON 表示。
validate(instance[, schema])在rootschema的上下文中验证实例是否符合类模式。
validate_property(name, value[, schema])在根架构的上下文中,根据属性架构验证一个属性。