KML to CSV file conversion using Python and Windows Powershell

Joined
Oct 14, 2022
Messages
1
Reaction score
0
I need a detailed step-by-step guide for someone who's never written a script using Python, to run in Windows Powershell, for converting KML to CSV files.

The idea is for another department who does not know how to code be able to navigate within the folder the KMZ file is in so that they can simply run it and convert the file.

I have this started code, but I am lost and keep Googling and starting different codes with no success:

#-------------------------------------------------------------------
# Run this in the Windows Powershell

# Navigate to where your file is
# ls to see your folders
# cd _________ to go where you want to go

# Import pandas
import pandas as pd

# Libraries from tkinter
from tkinter import Tk
from tkinter import *
from tkinter import filedialog
from tkinter.filedialog import askopenfilename

# To upload file
Tk().withdraw()
file = askopenfilename()
print("File Uploaded:", str(file))
#-------------------------------------------------------------------

TIA! :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,983
Messages
2,570,187
Members
46,747
Latest member
jojoBizaroo

Latest Threads

Top