(self, geoCursor)
| 65 | bounds[4]+(bounds[5]-bounds[4])/2) |
| 66 | |
| 67 | def shouldRefine(self, geoCursor): |
| 68 | if geoCursor.GetLevel() >= TARGET_LEVEL: |
| 69 | return False |
| 70 | bounds = range(6) |
| 71 | geoCursor.GetBounds( bounds ) |
| 72 | v0 = self.test(bounds[0],bounds[2],bounds[4]) |
| 73 | v1 = self.test(bounds[1],bounds[2],bounds[4]) |
| 74 | if v0 == v1: |
| 75 | v2 = self.test(bounds[0],bounds[3],bounds[4]) |
| 76 | if v0 == v2: |
| 77 | v3 = self.test(bounds[1],bounds[3],bounds[4]) |
| 78 | if v0 == v3: |
| 79 | return False |
| 80 | return True |
| 81 | |
| 82 | def handleNode(self, geoCursor, levelArray, scalarArray): |
| 83 | # Add value in fields |
no test coverage detected