kopia lustrzana https://github.com/hholzgra/ocitysmap
				
				
				
			skip over empty geometries (Issue #117)
Umap may create exports with empty geometries, containing "coordinates": [] Mapnik does not consider those geometries as valid, so we now test for these and skip over them when generating the converted GEOjson output for renderingmaster
							rodzic
							
								
									b04960045a
								
							
						
					
					
						commit
						7fe57f1015
					
				|  | @ -247,6 +247,8 @@ class UmapStylesheet(Stylesheet): | |||
| 
 | ||||
|             # now go over the actual geometry features in that layer | ||||
|             for feature in layer['features']: | ||||
|                 if not feature['geometry']['coordinates']: | ||||
|                     continue | ||||
|                 try: | ||||
|                     # feature properties override previous defaults | ||||
|                     new_props = get_default_properties(feature, layer_defaults) | ||||
|  |  | |||
		Ładowanie…
	
		Reference in New Issue
	
	 Hartmut Holzgraefe
						Hartmut Holzgraefe