def is_geographic(element, kdims=None):
if isinstance(element, (Overlay, NdOverlay)):<EOL><INDENT>return any(element.traverse(is_geographic, [_Element]))<EOL><DEDENT>if kdims:<EOL><INDENT>kdims = [element.get_dimension(d) for d in kdims]<EOL><DEDENT>else:<EOL><INDENT>kdims = element.kdims<EOL><DEDENT>if len(kdims) != <NUM_LIT:2> and not isinstance(element, (Graph, Nodes)):<EOL><INDENT>return False<EOL><DEDENT>if isinstance(element.data, geographic_types) or isinstance(element, (WMTS, Feature)):<EOL><INDENT>return True<EOL><DEDENT>elif isinstance(element, _Element):<EOL><INDENT>return kdims == element.kdims and element.crs<EOL><DEDENT>else:<EOL><INDENT>return False<EOL><DEDENT>
Utility to determine whether the supplied element optionally
a subset of its key dimensions represent a geographic coordinate
system.