Ugly hack on polygon discontinuity
This commit is contained in:
		
							parent
							
								
									de2e3aed9b
								
							
						
					
					
						commit
						12442ad084
					
				
					 1 changed files with 1 additions and 3 deletions
				
			
		|  | @ -78,9 +78,7 @@ def each_poly(parts: list[str]): | ||||||
| 
 | 
 | ||||||
|     for part in parts: |     for part in parts: | ||||||
|         if part == '99999999': |         if part == '99999999': | ||||||
|             points.append(points[0]) |             continue | ||||||
|             yield shapely.Polygon(points) |  | ||||||
|             points = list() |  | ||||||
|         else: |         else: | ||||||
|             points.append(parse_coord(part)) |             points.append(parse_coord(part)) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue