-
-
Save anonymous/d3567fc6704a1d3e6c34 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_coords(xml): | |
oui = minidom.parseString(xml) | |
yes = oui.getElementsByTagName("gml:coordinates") | |
yeah = yes[0].toxml() | |
mhm = yeah[yeah.find(">")+1:yeah.rfind("</")] | |
return tuple(mhm.split(","))[::-1] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment