why is this code failing?

  • Status: Closed
  • Præmier: $50
  • Modtagne indlæg: 1
  • Vinder: Inno4Future

Konkurrence Instruktioner

Attached is some Java code that reads some shapefiles and checks if a point is inside a shape. Why is the testcase failing? It was working before, and I'm not sure what I changed. FIRST CORRECT SOLUTION WINS THE AWARD.

Anbefalede færdigheder

Arbejdsgiverfeedback

“fast and accurate solution ”

Profilbillede afterhourstech, United States.

Offentlig Præciserings Opslagstavle

  • afterhourstech
    Konkurrenceafholder
    • 6 år siden

    UPDATE: There was a problem with the previously uploaded pom.xml. The updated project files are located here: https://drive.google.com/open?id=1dwMjq2CJ3UXBIUQqcpEBjQQJXBzDGWIa

    • 6 år siden
  • afterhourstech
    Konkurrenceafholder
    • 6 år siden

    Here's a screenshot of debug session: https://drive.google.com/open?id=1_wB2S91woGWLY8wwD6x-GxHcQ7T1AR3Q

    • 6 år siden
  • afterhourstech
    Konkurrenceafholder
    • 6 år siden

    Updated Problem Description: The code compiles fine on my machine and can execute the TestNG testcase, but the testcase fails with "false" returned where "true" was expected. The testcase is just checking if a specific point falls inside a shape boundary. I believe the problem is something wrong with the shapefile. Some shapefiles work fine and some don't. The ones that are not working were modified and re-saved in QGIS. The other ones are originals from a freelancer. Scroll down for project setup information.

    • 6 år siden
  • afterhourstech
    Konkurrenceafholder
    • 6 år siden

    PRIZE HAS BEEN INCREASED TO $50.

    • 6 år siden

Sådan kommer du i gang med konkurrencer

  • Opret din konkurrence

    Opret din konkurrence Hurtigt og nemt

  • Få tonsvis af indlæg

    Få tonsvis af indlæg Fra hele verden

  • Tildel det bedste indlæg

    Tildel det bedste indlæg Download filerne - Nemt!

Opret en Konkurrence Nu eller slut dig til os i dag!