why is this code failing?

  • Status: Closed
  • Pris: $50
  • Bidrag mottagna: 1
  • Vinnare: Inno4Future

Tävlingssammandrag

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.

Rekommenderade kompetenser

Arbetsgivares feedback

“fast and accurate solution ”

Profilbild afterhourstech, United States.

Topp bidrag från den här tävlingen

Visa fler bidag

Klargörandetavla

  • afterhourstech
    Tävlingsinnehavare
    • 6 år sedan

    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 sedan
  • afterhourstech
    Tävlingsinnehavare
    • 6 år sedan

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

    • 6 år sedan
  • afterhourstech
    Tävlingsinnehavare
    • 6 år sedan

    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 sedan
  • afterhourstech
    Tävlingsinnehavare
    • 6 år sedan

    PRIZE HAS BEEN INCREASED TO $50.

    • 6 år sedan

Hur du kommer igång med tävlingar

  • Lägg upp din tävling

    Lägg upp din tävling Snabbt och enkelt

  • Få massvis med bidrag

    Få massvis med bidrag Från världens alla hörn

  • Utse det bästa bidraget

    Utse det bästa bidraget Ladda ner filerna - enkelt!

Lägg upp en tävling nu eller gå med idag!