forked from MapComplete/MapComplete
		
	More work on import flow
This commit is contained in:
		
							parent
							
								
									33ef83c4a9
								
							
						
					
					
						commit
						fa179af601
					
				
					 8 changed files with 54 additions and 12 deletions
				
			
		
							
								
								
									
										24
									
								
								test.ts
									
										
									
									
									
								
							
							
						
						
									
										24
									
								
								test.ts
									
										
									
									
									
								
							|  | @ -0,0 +1,24 @@ | |||
| import {Utils} from "./Utils"; | ||||
| 
 | ||||
| const features = [] | ||||
| for (let lat = 49; lat < 52; lat+=0.05) { | ||||
|     for (let lon = 2.5; lon < 6.5; lon+=0.025) { | ||||
|         features.push({ | ||||
|             type:"Feature", | ||||
|             properties: {}, | ||||
|             geometry:{ | ||||
|                 type:"Point", | ||||
|                 coordinates: [lon, lat] | ||||
|             } | ||||
|         }) | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| const geojson = { | ||||
|     type:"FeatureCollection", | ||||
|     features | ||||
| } | ||||
| 
 | ||||
| Utils.offerContentsAsDownloadableFile(JSON.stringify(geojson, null, "  "), "raster.geojson",{ | ||||
|     mimetype:"application/geo+json" | ||||
| }) | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue