Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WiGLE Cellular .csv to .kml #6

Merged
merged 2 commits into from
Apr 7, 2024
Merged

WiGLE Cellular .csv to .kml #6

merged 2 commits into from
Apr 7, 2024

Conversation

D14b0l1c
Copy link
Contributor

@D14b0l1c D14b0l1c commented Apr 7, 2024

Description:
This Python script converts CSV files to KML (Keyhole Markup Language) files, which are commonly used for geographic visualization, particularly with mapping applications like Google Maps. It extracts specific columns from the CSV file (trilat, trilong, and id) and creates Placemarks in the KML file based on this information. The resulting KML file can be imported into mapping software for visualization and analysis.

Libraries used:

  • os: Provides functions for interacting with the operating system, used here to list files in a directory.
  • csv: Allows reading and writing CSV files, utilized to parse the input CSV file.

How to use:

  1. Specify the directory containing your CSV files in the input_directory variable.
  2. Run the script, which will iterate through all CSV files in the specified directory.
  3. For each CSV file, it will create a corresponding KML file with Placemarks based on the specified columns.

Note:

  • Make sure to adjust the input_directory variable to point to the correct directory containing your CSV files before running the script.

Description:
This Python script converts CSV files to KML (Keyhole Markup Language) files, which are commonly used for geographic visualization, particularly with mapping applications like Google Maps. It extracts specific columns from the CSV file (trilat, trilong, and id) and creates Placemarks in the KML file based on this information. The resulting KML file can be imported into mapping software for visualization and analysis.

Libraries used:
- `os`: Provides functions for interacting with the operating system, used here to list files in a directory.
- `csv`: Allows reading and writing CSV files, utilized to parse the input CSV file.
  
How to use:
1. Specify the directory containing your CSV files in the `input_directory` variable.
2. Run the script, which will iterate through all CSV files in the specified directory.
3. For each CSV file, it will create a corresponding KML file with Placemarks based on the specified columns.

Note:
- Make sure to adjust the `input_directory` variable to point to the correct directory containing your CSV files before running the script.
@jbjulia jbjulia merged commit b55fdb4 into jbjulia:master Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants