def convert_to_geotype(element, crs=None):
geotype = getattr(gv_element, type(element).__name__, None)<EOL>if crs is None or geotype is None or isinstance(element, _Element):<EOL><INDENT>return element<EOL><DEDENT>return geotype(element, crs=crs)<EOL>
Converts a HoloViews element type to the equivalent GeoViews
element if given a coordinate reference system.