Using today’s “After The Break” as inspiration, write a Java program that generates a simple KML file from spatial data stored within a text file. Your input dataset must contain at least 10 points.
Using today’s “After The Break” as inspiration, write a Java program that generates a simple KML file from spatial data stored within a text file. Your input dataset must contain at least 10 points. Your Java program does not have parse and plot a full huge dataset! You can pull out a few lines of data (at least 10) to be plotted. To make things easy on yourself, make sure your dataset contains location (lat and lon) data.
Your CSV text file containing at least 10 points to be plotted on the map
If you find data you want to use but it is not in CSV format, you can make your own CSV file out of it. Just make sure you describe your data methodology....where you got the data and how you modified it.
Read the data from a text file using a Scanner
Output the data to a KML file using a PrintWriter
Simple KML file that displays at least 10 points on the map. You can test your KML file using either Google Earth or Google My Maps.
In your email message, include a link to the site where you found your dataset, a short description of the dataset and its fields, and your reason for picking that dataset.
Using Google Earth or Google "My Maps" load your KML file and make sure it properly displays.
Have your Java program output your first and last name.
Email me your Java file, text input file, and output KML file as an attachment to firstname.lastname@example.org
Resources for KML:
KML tutorial: https://developers.google.com/kml/documentation/kml_tut (Links to an external site.)
KML reference: https://developers.google.com/kml/documentation/kmlreference (Links to an external site.)
Some suggestions for finding datasets:
Google Dataset Search: https://datasetsearch.research.google.com/ (Links to an external site.)
Reddit Datasets: https://www.reddit.com/r/datasets/ (Links to an external site.)
Public Datasets: https://github.com/awesomedata/awesome-public-datasets (Links to an external site.)
Do You Know ?
Established and helping students and professionals since 2012.
Have more than 4000+ expert tutors in all domains.
Have processed more than 70K+ orders with 4.9 average rating.
Have helped students of almost universities & colleges.
Have worked on almost all topics & concepts under each subject.
Have almost worked on all software's and programming languages.
Still any concern? Please feel free to ask us about the related sample work.