Skip to content

Vector Module🔗

The earthdaily.earthone.vector module provides access to the EarthOne Vector API for managing vector data, features, layers, and tiles.

VectorClient🔗

VectorClient 🔗

Bases: ApiService, DefaultClientMixin

Client for the Vector service.

Source code in earthdaily/earthone/core/vector/vector_client.py
class VectorClient(ApiService, DefaultClientMixin):
    """Client for the Vector service."""

    # We need a long timeout until we rewrite uploading and downloading
    # features to work in chunks. Note that this is not applied by default
    # to the session (which has a 30 second read timeout), but we use it
    # where we need it.
    READ_TIMEOUT = 300

    def __init__(self, url=None, auth=None, retries=None):
        if auth is None:
            auth = Auth.get_default_auth()

        if url is None:
            url = get_settings().vector_url

        super().__init__(url, auth=auth, retries=retries)