Skip to content
Snippets Groups Projects
Commit 11181cbc authored by Christopher Schankula's avatar Christopher Schankula :earth_africa:
Browse files

small update to main, readme for TA

parent 3f0f56c7
No related branches found
No related tags found
No related merge requests found
==== COMMAND LINE ====
In order to launch the command-line version of the TrawlExpert, launch src/main/Main.java
in Eclipse. This will load the command line tool with all the data needed to run the
program. Try typing "tree" and pressing Enter to see all of the possible searches in the
dataset. Then type "records Cottus cognates" for example to search for a certain species.
Then you can type "histogram", "sum", "list" or "cluster 3000" for example to see different
results.
==== TOMCAT ====
Tomcat is significantly more tricky. There is a makefile that when run from the main project
directory should allow the server to start. Accessing http://localhost:8080/Trawl should
then load the website. However, the amount of time needed to properly configure tomcat on
your machine will not be worth taking the time to figure out. As such, a live version of the
website is available at http://trawl.schankula.ca/Trawl. This runs the exact same code as
would run locally if you ran tomcat. For example, try selecting a species and then clicking
"load" on the "list" and seeing how many results there are. Then try viewing histogram,
heat map, map, etc. For results greater than ~20,000 results, don't attempt to view the
heat map or map as this will likely lag your browser (the server-side code handles this fine;
the client can get laggy). Try out the clustering by typing in a value of at least 1,000km^2
for any size of search (even "any" for all fields). You can also try out filtering by year
and seeing that there are only results in those years. Lastly, for "cluster" and "map"
options, try clicking the map markers to see more information.
......@@ -226,7 +226,8 @@ public class Main {
System.out.format(format, (i+1), String.format("%.5f", clusters.get(i).centroid().getY()), String.format("%.5f", clusters.get(i).centroid().getX()), clusters.get(i).N(), clusters.get(i).getCount());
while(true) {
System.out.println("Available commands: list (cluster #), clusters, exit");
System.out.println("Available commands: list (cluster #), clusters, exit\n");
System.out.print("> ");
Scanner s = new Scanner(System.in);
String command = s.nextLine();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment