forked from MapComplete/MapComplete
		
	Full code cleanup
This commit is contained in:
		
							parent
							
								
									3a4a2a2016
								
							
						
					
					
						commit
						fa971ffbbf
					
				
					 300 changed files with 16352 additions and 19284 deletions
				
			
		|  | @ -355,7 +355,7 @@ export default class GeoOperationsSpec extends T { | |||
|                     Assert.notEqual(p0, null) | ||||
|                     const p1 = turf.polygon(polyHouse.geometry.coordinates) | ||||
|                     Assert.notEqual(p1, null) | ||||
|                      | ||||
| 
 | ||||
|                     const overlaps = GeoOperations.calculateOverlap(polyGrb, [polyHouse]) | ||||
|                     Assert.equal(overlaps.length, 0) | ||||
|                     const overlapsRev = GeoOperations.calculateOverlap(polyHouse, [polyGrb]) | ||||
|  | @ -364,50 +364,52 @@ export default class GeoOperationsSpec extends T { | |||
|                 }], | ||||
|                 ["Overnode removal test", () => { | ||||
| 
 | ||||
|                    const feature = { "geometry": { | ||||
|                         "type": "Polygon", | ||||
|                     const feature = { | ||||
|                         "geometry": { | ||||
|                             "type": "Polygon", | ||||
|                             "coordinates": [ | ||||
|                             [ | ||||
|                                 [ | ||||
|                                     4.477944199999975, | ||||
|                                     51.02783550000022 | ||||
|                                 ], | ||||
|                                 [ | ||||
|                                     4.477987899999996, | ||||
|                                     51.027818800000034 | ||||
|                                 ], | ||||
|                                 [ | ||||
|                                     4.478004500000021, | ||||
|                                     51.02783399999988 | ||||
|                                 ], | ||||
|                                 [ | ||||
|                                     4.478025499999962, | ||||
|                                     51.02782489999994 | ||||
|                                 ], | ||||
|                                 [ | ||||
|                                     4.478079099999993, | ||||
|                                     51.027873899999896 | ||||
|                                 ], | ||||
|                                 [ | ||||
|                                     4.47801040000006, | ||||
|                                     51.027903799999955 | ||||
|                                 ], | ||||
|                                 [ | ||||
|                                     4.477964799999972, | ||||
|                                     51.02785709999982 | ||||
|                                 ], | ||||
|                                 [ | ||||
|                                     4.477964699999964, | ||||
|                                     51.02785690000006 | ||||
|                                 ], | ||||
|                                 [ | ||||
|                                     4.477944199999975, | ||||
|                                     51.02783550000022 | ||||
|                                     [ | ||||
|                                         4.477944199999975, | ||||
|                                         51.02783550000022 | ||||
|                                     ], | ||||
|                                     [ | ||||
|                                         4.477987899999996, | ||||
|                                         51.027818800000034 | ||||
|                                     ], | ||||
|                                     [ | ||||
|                                         4.478004500000021, | ||||
|                                         51.02783399999988 | ||||
|                                     ], | ||||
|                                     [ | ||||
|                                         4.478025499999962, | ||||
|                                         51.02782489999994 | ||||
|                                     ], | ||||
|                                     [ | ||||
|                                         4.478079099999993, | ||||
|                                         51.027873899999896 | ||||
|                                     ], | ||||
|                                     [ | ||||
|                                         4.47801040000006, | ||||
|                                         51.027903799999955 | ||||
|                                     ], | ||||
|                                     [ | ||||
|                                         4.477964799999972, | ||||
|                                         51.02785709999982 | ||||
|                                     ], | ||||
|                                     [ | ||||
|                                         4.477964699999964, | ||||
|                                         51.02785690000006 | ||||
|                                     ], | ||||
|                                     [ | ||||
|                                         4.477944199999975, | ||||
|                                         51.02783550000022 | ||||
|                                     ] | ||||
|                                 ] | ||||
|                             ] | ||||
|                         ] | ||||
|                     }} | ||||
|                  | ||||
|                         } | ||||
|                     } | ||||
| 
 | ||||
|                     const copy = GeoOperations.removeOvernoding(feature) | ||||
|                     Assert.equal(copy.geometry.coordinates[0].length, 7) | ||||
|                     T.listIdentical([ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue