def test_srid_lookup(summariser: Summariser): srid = summariser._target_srid() assert srid is not None assert isinstance(srid, int) srid2 = summariser._target_srid() assert srid == srid2 assert summariser._get_srid_name(srid) == "EPSG:3577" # Cached? cache_hits = summariser._get_srid_name.cache_info().hits assert summariser._get_srid_name(srid) == "EPSG:3577" assert summariser._get_srid_name.cache_info().hits > cache_hits
def create(cls, index: Index, init_schema=False, log=_LOG) -> 'SummaryStore': return cls(index, Summariser(alchemy_engine(index)), init_schema=init_schema, log=log)
def create(cls, index: Index, log=_LOG) -> "SummaryStore": return cls(index, Summariser(_utils.alchemy_engine(index)), log=log)