Enums

Details

class Shumate.FileCacheError(value)

Bases: GObject.GEnum

Error codes in the #SHUMATE_FILE_CACHE_ERROR domain.

classmethod quark()
Returns:

a #GQuark

Return type:

int

Gets the Shumate.FileCache error quark.

FAILED = 0

An unspecified error occurred during the operation.

class Shumate.GeometryType(value)

Bases: GObject.GEnum

A type of geometry.

New in version 1.2.

UNKNOWN = 0

Unknown geometry type

POINT = 1

A single point

MULTIPOINT = 2

A collection of points

LINESTRING = 3

A single line

MULTILINESTRING = 4

A collection of lines

POLYGON = 5

A single polygon

MULTIPOLYGON = 6

A collection of polygons

class Shumate.MapProjection(value)

Bases: GObject.GEnum

Projections supported by the library.

MERCATOR = 0

Currently the only supported projection

class Shumate.State(value)

Bases: GObject.GEnum

Tile loading state.

NONE = 0

Initial or undefined state

LOADING = 1

Tile is loading

LOADED = 2

Tile is loaded but not yet displayed

DONE = 3

Tile loading finished. Also used to inform map sources that tile loading has been cancelled.

class Shumate.StyleError(value)

Bases: GObject.GEnum

Error codes that occurs while parsing the style in [class`VectorRenderer`].

classmethod quark()
Returns:

a #GQuark

Return type:

int

FAILED = 0

An unspecified error occurred during the operation.

MALFORMED_STYLE = 1

A JSON node in the style has the wrong type (e.g. an object where there should be an array).

UNSUPPORTED_LAYER = 2

An unsupported layer type was encountered.

INVALID_EXPRESSION = 3

An invalid or unrecognized expression was encountered.

SUPPORT_OMITTED = 4

Libshumate was compiled without vector tile support.

UNSUPPORTED = 5

An unsupported style spec feature was encountered.

class Shumate.TileDownloaderError(value)

Bases: GObject.GEnum

Error codes in the #SHUMATE_TILE_DOWNLOADER_ERROR domain.

classmethod quark()
Returns:

a #GQuark

Return type:

int

Gets the Shumate.TileDownloader error quark.

FAILED = 0

An unspecified error occurred during the operation.

BAD_RESPONSE = 1

An unsuccessful HTTP response was received from the server.

COULD_NOT_CONNECT = 2

The server could not be reached.

MALFORMED_URL = 3

The provided URL isn’t valid

OFFLINE = 4

The tile source has been marked as offline.

class Shumate.Unit(value)

Bases: GObject.GEnum

Units used by the scale.

BOTH = 0

Both metric and imperial units

METRIC = 1

Metric units (meters)

IMPERIAL = 2

Imperial units (miles)