Skip to content

Commit

Permalink
ENH: Update GebCo's link to the latest. [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Taher Chegini committed Oct 5, 2024
1 parent d20d66c commit b6a490d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/pygeoogc/pygeoogc.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import uuid
from dataclasses import dataclass, field
from pathlib import Path
from typing import TYPE_CHECKING, Any, Iterator, Literal, Sequence, Union, cast, overload
from typing import TYPE_CHECKING, Any, Literal, Union, cast, overload

import cytoolz.curried as tlz
import pyproj
Expand All @@ -19,6 +19,8 @@
from pygeoogc.exceptions import InputTypeError, InputValueError, ServiceError, ZeroMatchedError

if TYPE_CHECKING:
from collections.abc import Iterator, Sequence

from shapely import LineString, MultiPoint, MultiPolygon, Point, Polygon

RESPONSE = Union[
Expand Down Expand Up @@ -437,6 +439,7 @@ def getmap_bybox(
payload["crs"] = self.crs_str

precision = 2 if pyproj.CRS(self.crs).is_projected else 6

def _get_payloads(
args: tuple[str, tuple[tuple[float, float, float, float], str, int, int]],
) -> tuple[str, dict[str, str]]:
Expand Down Expand Up @@ -892,9 +895,7 @@ class WMSURLs:
nm_3dep: str = (
"https://elevation.nationalmap.gov/arcgis/services/3DEPElevation/ImageServer/WMSServer"
)
gebco: str = (
"https://www.gebco.net/data_and_products/gebco_web_services/web_map_service/mapserv"
)
gebco: str = "https://wms.gebco.net/mapserv"


@dataclass(frozen=True)
Expand Down

0 comments on commit b6a490d

Please sign in to comment.