Skip to content

Commit

Permalink
LOCAL: Add leopard_shark class
Browse files Browse the repository at this point in the history
  • Loading branch information
holmbergius committed Jan 22, 2025
1 parent b5f7160 commit 3290667
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/org/ecocean/servlet/SubmitSpotsAndImage.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ public void doPost(HttpServletRequest request, HttpServletResponse response)
Annotation ann = new Annotation(speciesString, crMa);
ann.setMatchAgainst(true);
String iaClass = "whalesharkCR"; // should we change this?
if(enc.getSpecificEpithet()!=null) {
if(enc.getSpecificEpithet().equals("tigrinum")) {
iaClass = "leopard_shark";
}
}
ann.setIAClass(iaClass);
if (rightSide) { ann.setViewpoint("right"); } else { ann.setViewpoint("left"); }
enc.addAnnotation(ann);
Expand Down

0 comments on commit 3290667

Please sign in to comment.