Skip to main content

[agrosense-issues] [JIRA] Issue Comment Edited: (AGROSENSE-795) Exception on export isobus task

  • From: "gerbenfeenstra (JIRA)" <jira-no-reply@...>
  • To: issues@...
  • Subject: [agrosense-issues] [JIRA] Issue Comment Edited: (AGROSENSE-795) Exception on export isobus task
  • Date: Thu, 3 May 2012 14:57:21 +0000 (GMT+00:00)
  • Auto-submitted: auto-generated


    [ 
http://java.net/jira/browse/AGROSENSE-795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=338981#action_338981
 ] 

gerbenfeenstra edited comment on AGROSENSE-795 at 5/3/12 2:55 PM:
------------------------------------------------------------------

To determine which treatmentzone intersects with a gridcell, the intersection 
geometry is extracted to determine it's surface area. if it is bigger then 
0.0, then the gridcell intersects with that treatmentzones. (A gridcell can 
have only one treatmentzone. When more then one treatmentzone has an 
intersection with the gridcell, both their intersections are calculated to 
determine which of the treatmentzones has the biggest intersection with the 
gridcell, but that is besides this issue.)

The exception occurs when getting the intersection of a gridcell with a 
malformed treatmentzone geometry containing to linestrings intersecting, but 
not containing a node on that intersection. 

See attachment for a graphical representation of the gridGeneratorTest!

As shown, TZ3 is malformed, and does not have a node at the intersecting 
coordinate, the exception is thrown when testing this TZ. 

TZ4 is working correctly, using coordinates (8, 6), (9, 7), (8, 8), (10, 8), 
(9, 7), (10, 6), linestrings will not actually intersect this way, but only 
touch the same coordinate. 
When using coordinates (8, 6), (9, 7), (10, 8), (8, 8), (9, 7), (10, 6), so 
that the linestrings in this geometry actually intersect (cross eachother) 
the test fails, even though there is a node at the intersection coordinate.

      was (Author: gerbenfeenstra):
    To determine which treatmentzone intersects with a gridcell, the 
intersection geometry is extracted to determine it's surface area. if it is 
bigger then 0.0, then the gridcell intersects with that treatmentzones. (A 
gridcell can have only one treatmentzone. When more then one treatmentzone 
has an intersection with the gridcell, both their intersections are 
calculated to determine which of the treatmentzones has the biggest 
intersection with the gridcell, but that is besides this issue.)

The exception occurs when getting the intersection of a gridcell with a 
malformed treatmentzone geometry containing to linestrings intersecting, but 
not containing a node on that intersection. 

!See attachment for a graphical representation of the gridGeneratorTest.!

As shown, TZ3 is malformed, and does not have a node at the intersecting 
coordinate, the exception is thrown when testing this TZ. 

TZ4 is working correctly, using coordinates (8, 6), (9, 7), (8, 8), (10, 8), 
(9, 7), (10, 6), linestrings will not actually intersect this way, but only 
touch the same coordinate. 
When using coordinates (8, 6), (9, 7), (10, 8), (8, 8), (9, 7), (10, 6), so 
that the linestrings in this geometry actually intersect (cross eachother) 
the test fails, even though there is a node at the intersection coordinate.
  
> Exception on export isobus task
> -------------------------------
>
>                 Key: AGROSENSE-795
>                 URL: http://java.net/jira/browse/AGROSENSE-795
>             Project: agrosense
>          Issue Type: Bug
>          Components: Tasks
>    Affects Versions: 1.0.26
>            Reporter: Tom Verhage
>            Assignee: gerbenfeenstra
>
> Imported Dethmer Wage's soilcompany data as treatment zones (zandfractie 
> files, ask Tom for resources). Created a task, and added all those 
> treatmentzones. Export task launches the following error:
> com.vividsolutions.jts.geom.TopologyException: no outgoing dirEdge found [ 
> (6.907533648456976E-4, 3.807678228255895E-4, NaN) ]
>       at 
> com.vividsolutions.jts.geomgraph.DirectedEdgeStar.linkResultDirectedEdges(DirectedEdgeStar.java:241)
>       at 
> com.vividsolutions.jts.geomgraph.PlanarGraph.linkResultDirectedEdges(PlanarGraph.java:74)
>       at 
> com.vividsolutions.jts.operation.overlay.PolygonBuilder.add(PolygonBuilder.java:77)
>       at 
> com.vividsolutions.jts.operation.overlay.PolygonBuilder.add(PolygonBuilder.java:67)
>       at 
> com.vividsolutions.jts.operation.overlay.OverlayOp.computeOverlay(OverlayOp.java:189)
>       at 
> com.vividsolutions.jts.operation.overlay.OverlayOp.getResultGeometry(OverlayOp.java:127)
>       at 
> com.vividsolutions.jts.operation.overlay.OverlayOp.overlayOp(OverlayOp.java:66)
>       at 
> com.vividsolutions.jts.operation.overlay.snap.SnapOverlayOp.getResultGeometry(SnapOverlayOp.java:67)
>       at 
> com.vividsolutions.jts.operation.overlay.snap.SnapOverlayOp.overlayOp(SnapOverlayOp.java:24)
>       at 
> com.vividsolutions.jts.operation.overlay.snap.SnapIfNeededOverlayOp.getResultGeometry(SnapIfNeededOverlayOp.java:76)
>       at 
> com.vividsolutions.jts.operation.overlay.snap.SnapIfNeededOverlayOp.overlayOp(SnapIfNeededOverlayOp.java:25)
>       at 
> com.vividsolutions.jts.geom.Geometry.intersection(Geometry.java:1175)
>       at 
> nl.cloudfarming.client.isobus.model.GridGenerator.findTreatmentZoneFor(GridGenerator.java:113)
>       at 
> nl.cloudfarming.client.isobus.model.GridGenerator.generate(GridGenerator.java:69)
>       at 
> nl.cloudfarming.client.isobus.model.TaskdataWriter.run(TaskdataWriter.java:133)
> [catch] at java.lang.Thread.run(Thread.java:722)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[agrosense-issues] [JIRA] Created: (AGROSENSE-795) Exception on export isobus task

Tom Verhage (JIRA) 05/03/2012

[agrosense-issues] [JIRA] Assigned: (AGROSENSE-795) Exception on export isobus task

gerbenfeenstra (JIRA) 05/03/2012

[agrosense-issues] [JIRA] Issue Comment Edited: (AGROSENSE-795) Exception on export isobus task

gerbenfeenstra (JIRA) 05/03/2012

[agrosense-issues] [JIRA] Commented: (AGROSENSE-795) Exception on export isobus task

gerbenfeenstra (JIRA) 05/03/2012

[agrosense-issues] [JIRA] Issue Comment Edited: (AGROSENSE-795) Exception on export isobus task

gerbenfeenstra (JIRA) 05/03/2012

[agrosense-issues] [JIRA] Updated: (AGROSENSE-795) Exception on export isobus task

gerbenfeenstra (JIRA) 05/03/2012

[agrosense-issues] [JIRA] Issue Comment Edited: (AGROSENSE-795) Exception on export isobus task

gerbenfeenstra (JIRA) 05/03/2012

[agrosense-issues] [JIRA] Updated: (AGROSENSE-795) Exception on export isobus task

Tom Verhage (JIRA) 05/23/2012

[agrosense-issues] [JIRA] Commented: (AGROSENSE-795) Exception on export isobus task

gerbenfeenstra (JIRA) 05/31/2012

[agrosense-issues] [JIRA] Issue Comment Edited: (AGROSENSE-795) Exception on export isobus task

gerbenfeenstra (JIRA) 05/31/2012
 
 
Close
loading
Please Confirm
Close