<s> """<STR_LIT>""" <EOL> from rasterio . dtypes import uint8 <EOL> class Profile : <EOL> """<STR_LIT>""" <EOL> driver = None <EOL> defaults = { } <EOL> def __call__ ( self , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> if kwargs . get ( '<STR_LIT>' , self . driver ) != self . driver : <EOL> raise ValueError ( <EOL> "<STR_LIT>" ) <EOL> profile = self . defaults . copy ( ) <EOL> profile . update ( ** kwargs ) <EOL> profile [ '<STR_LIT>' ] = self . driver <EOL> return profile <EOL> class DefaultGTiffProfile ( Profile ) : <EOL> """<STR_LIT>""" <EOL> driver = '<STR_LIT>' <EOL> defaults = { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : True , <EOL> '<STR_LIT>' : <NUM_LIT> , <EOL> '<STR_LIT>' : <NUM_LIT> , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : <NUM_LIT:0> , <EOL> '<STR_LIT>' : uint8 <EOL> } <EOL> default_gtiff_profile = DefaultGTiffProfile ( ) </s>
