19 lines
284 B
Python
19 lines
284 B
Python
"""空间数据结构。"""
|
|
from dataclasses import dataclass
|
|
|
|
|
|
@dataclass(frozen=True)
|
|
class LayerInfo:
|
|
table_name: str
|
|
geom_col: str
|
|
pk_col: str
|
|
srs_id: int
|
|
|
|
|
|
@dataclass(frozen=True)
|
|
class MarketFeature:
|
|
fid: int
|
|
code: str
|
|
name: str
|
|
geometry: object
|