1# https://pyrocko.org - GPLv3
2#
3# The Pyrocko Developers, 21st Century
4# ---|P------/S----------~Lg----------
7from pyrocko.guts import String
8from .gshhg import GSHHGElement, GSHHGState
10guts_prefix = 'sparrow'
13class CoastlinesState(GSHHGState):
15 dataset = String.T(default='coastlines')
17 def create(self):
18 element = CoastlinesElement()
19 return element
22class CoastlinesElement(GSHHGElement):
24 def __init__(self):
25 GSHHGElement.__init__(self)
27 def get_name(self):
28 return 'Coastlines'
30 def bind_state(self, state):
31 GSHHGElement.bind_state(self, state)
34__all__ = [
35 'CoastlinesElement',
36 'CoastlinesState']