Skip to content

Commit

Permalink
Fixed issue introduced in menu refactor where kml data could not be w…
Browse files Browse the repository at this point in the history
…ritten properly.

Additionally, further simplified menu logic for metadataMainMenu()
  • Loading branch information
theRealBassist committed Apr 11, 2024
1 parent 398ea79 commit 6da3b86
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions MetadataToUTMv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,14 @@ def metadataMainMenu():
convertedCoordinates = convertCoordinates(importedData, 4326, epsg)
utm = True
elif userInput == "P" or userInput == "p":
convertedCoordinates = importedData
writtenData = writeLineString(importedData)
kml = True
elif userInput == "G" or userInput == "g":
convertedCoordinates = importedData
writtenData = writePoints(importedData)
kml = True

writtenData = writeData(convertedCoordinates, utm)
if kml : writtenData = writtenData
else : writtenData = writeData(convertedCoordinates, utm)
exportData(folder, writtenData, kml)

def coordinateConversionMenu():
Expand Down Expand Up @@ -257,8 +258,6 @@ def appendMetadata(data):
print("Please choose a valid option: [Y] or [N]")
return appendMetadata(data)



def convertCoordinates(importedData, EPSGFrom, EPSGTo):
names = []
convertedX = []
Expand Down

0 comments on commit 6da3b86

Please sign in to comment.