Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Kuethe committed Jul 19, 2024
1 parent b25d819 commit 103b500
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions maplibre/pmtiles_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def bounds(self):
)


class PMTilesMetaData(BaseModel):
class PMTilesMetadata(BaseModel):
# bounds: tuple
name: Optional[str] = None
description: Optional[str] = None
Expand Down Expand Up @@ -144,8 +144,8 @@ def header(self) -> PMTilesHeader:
return PMTilesHeader(**self._header)

@property
def metadata(self) -> PMTilesMetaData:
return PMTilesMetaData(**self._metadata)
def metadata(self) -> PMTilesMetadata:
return PMTilesMetadata(**self._metadata)

@property
def protocol_url(self) -> str:
Expand Down
4 changes: 2 additions & 2 deletions tests/test_pmtiles.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from maplibre.pmtiles_utils import (
DemoPMTiles,
PMTiles,
PMTilesMetaData,
PMTilesMetadata,
get_pmtiles_header,
get_pmtiles_metadata,
)
Expand All @@ -28,7 +28,7 @@ def test_get_pmtiles_metadata():
header, metadata = get_pmtiles_metadata(path)
print(metadata.keys())

metadata_model = PMTilesMetaData(**metadata)
metadata_model = PMTilesMetadata(**metadata)
print(metadata_model)
print(metadata_model.layer_ids)

Expand Down

0 comments on commit 103b500

Please sign in to comment.