Skip to content

GeoVar

topojson.GeoVar

Object used for mesh filter argument as a filter condition on geometry objects.

__add__

__add__(other: object) -> GeoVar

Indicates to add the current value with another value.

Parameters:

Name Type Description Default

other

object

Another value

required

Returns:

Type Description
GeoVar

New object with updated internal state

__and__

__and__(other: object) -> GeoVar

Indicates to associate the current value to a boolean (and respectively the same for other value) and to apply a 'and' operator between the two booleans.

Parameters:

Name Type Description Default

other

GeoVar

Another value

required

Returns:

Type Description
GeoVar

New object with updated internal state

__eq__

__eq__(other: object) -> GeoVar

Indicates to check the current value is equal with another value.

Parameters:

Name Type Description Default

other

object

Another value

required

Returns:

Type Description
GeoVar

New object with updated internal state

__getitem__

__getitem__(attribute: str) -> GeoVar

Indicates to access the specified attribute of the geometry.

Currently, only id, properties and bbox attributes are available through GeoVar.

Parameters:

Name Type Description Default

attribute

str

Geometry attribute

required

Returns:

Type Description
GeoVar

New object with updated internal state

__mul__

__mul__(other: object) -> GeoVar

Indicates to multiply the current value with another value.

Parameters:

Name Type Description Default

other

object

Another value

required

Returns:

Type Description
GeoVar

New object with updated internal state

__ne__

__ne__(other: object) -> GeoVar

Indicates to check the current value is not equal with another value.

Parameters:

Name Type Description Default

other

object

Another value

required

Returns:

Type Description
GeoVar

New object with updated internal state

__or__

__or__(other: object) -> GeoVar

Indicates to associate the current value to a boolean (and respectively the same for other value) and to apply a 'or' operator between the two booleans.

Parameters:

Name Type Description Default

other

object

Another value

required

Returns:

Type Description
GeoVar

New object with updated internal state

__str__

__str__() -> str

Converts the object into a string.

Returns:

Type Description
str

The current object as a string.

__sub__

__sub__(other: object) -> GeoVar

Indicates to substract the current value with another value.

Parameters:

Name Type Description Default

other

object

Another value

required

Returns:

Type Description
GeoVar

New object with updated internal state

__truediv__

__truediv__(other: object) -> GeoVar

Indicates to divide the current value with another value.

Parameters:

Name Type Description Default

other

object

Another value

required

Returns:

Type Description
GeoVar

New object with updated internal state

float

float() -> GeoVar

Indicates to cast the current value as an float.

Returns:

Type Description
GeoVar

New object with updated internal state

int

int() -> GeoVar

Indicates to cast the current value as an integer.

Returns:

Type Description
GeoVar

New object with updated internal state

len

len() -> GeoVar

Indicates to get the length of the current value.

Returns:

Type Description
GeoVar

New object with updated internal state