Skip to content

Commit

Permalink
Updating lists of excluded libraries for coldfusion build to run with…
Browse files Browse the repository at this point in the history
… newer coldfusion. Adding TODO notes for tdwg/bdq#73 based on failures with the validation data.  Cleaning up indentation for clarity.
  • Loading branch information
chicoreus committed Jul 28, 2023
1 parent 23ced64 commit e65dab8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
5 changes: 4 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,9 @@
<exclude>javax.media:jai_imageio*</exclude>
<exclude>com.sun.xml.bind:jaxb-impl</exclude>
<exclude>com.sun.mail:jakarta.mail</exclude>
<exclude>javax.mail:mail</exclude>
<exclude>xerces:xercesImpl</exclude>
<exclude>commons-logging:commons</exclude>
</excludes>
</artifactSet>
<transformers>
Expand Down Expand Up @@ -405,4 +408,4 @@
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
</project>
</project>
12 changes: 11 additions & 1 deletion src/main/java/org/filteredpush/qc/georeference/DwCGeoRefDQ.java
Original file line number Diff line number Diff line change
Expand Up @@ -1260,6 +1260,14 @@ public static DQResponse<AmendmentValue> amendmentCountrycodeFromCoordinates(
result.addComment("No value supplied for dwc:decimalLongitude, unable to propose a dwc:countryCode .");
result.setResultState(ResultState.INTERNAL_PREREQUISITES_NOT_MET);
} else {

// TODO: Parameter
//551 #73 Fail got FILLED_IN expected EXTERNAL_PREREQUISITES_NOT_MET Propose filling in empty countryCode with value [AU] which contains the coordinate specified by dwc:decimalLatitude [-25.23], dwc:decimalLongitude [135.43].
// TODO: uninterpretable lat/long
//559 #73 Fail got NOT_AMENDED expected INTERNAL_PREREQUISITES_NOT_MET No unique dwc:contryCode found containing the coordinate specified by dwc:decimalLatitude [x], dwc:decimalLongitude [135.87].
//562 #73 Fail got NOT_AMENDED expected INTERNAL_PREREQUISITES_NOT_MET No unique dwc:contryCode found containing the coordinate specified by dwc:decimalLatitude [-25.23], dwc:decimalLongitude [x].


String countryCode3 = GEOUtil.getCountryForPoint(decimalLatitude, decimalLongitude);
if (countryCode3== null) {
result.addComment("No unique dwc:contryCode found containing the coordinate specified by dwc:decimalLatitude ["+decimalLatitude+"], dwc:decimalLongitude ["+decimalLongitude+"].");
Expand Down Expand Up @@ -1384,7 +1392,9 @@ public static DQResponse<ComplianceValue> validationDecimallatitudeInrange(
@Provides("1bf0e210-6792-4128-b8cc-ab6828aa4871")
@ProvidesVersion("https://rs.tdwg.org/bdq/terms/1bf0e210-6792-4128-b8cc-ab6828aa4871/2023-06-20")
@Specification("INTERNAL_PREREQUISITES_NOT_MET if dwc:decimalLatitude is EMPTY or is not interpretable as a number, or dwc:decimalLongitude is EMPTY or is not interpretable as a number; COMPLIANT if either the value of dwc:decimalLatitude is not = 0 or the value of dwc:decimalLongitude is not = 0; otherwise NOT_COMPLIANT ")
public static DQResponse<ComplianceValue> validationCoordinatesNotzero(@ActedUpon("dwc:decimalLatitude") String decimalLatitude, @ActedUpon("dwc:decimalLongitude") String decimalLongitude) {
public static DQResponse<ComplianceValue> validationCoordinatesNotzero(
@ActedUpon("dwc:decimalLatitude") String decimalLatitude,
@ActedUpon("dwc:decimalLongitude") String decimalLongitude) {
DQResponse<ComplianceValue> result = new DQResponse<ComplianceValue>();

// Specification
Expand Down

0 comments on commit e65dab8

Please sign in to comment.