<s> """<STR_LIT>""" <EOL> from shapely . topology import Delegating <EOL> class LinearRefBase ( Delegating ) : <EOL> def _validate_line ( self , ob ) : <EOL> super ( LinearRefBase , self ) . _validate ( ob ) <EOL> if not ob . geom_type in [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] : <EOL> raise TypeError ( "<STR_LIT>" ) <EOL> class ProjectOp ( LinearRefBase ) : <EOL> def __call__ ( self , this , other ) : <EOL> self . _validate_line ( this ) <EOL> self . _validate ( other ) <EOL> return self . fn ( this . _geom , other . _geom ) <EOL> class InterpolateOp ( LinearRefBase ) : <EOL> def __call__ ( self , this , distance ) : <EOL> self . _validate_line ( this ) <EOL> return self . fn ( this . _geom , distance ) </s>
