More work on import flow

This commit is contained in:
Pieter Vander Vennet 2022-01-25 00:48:05 +01:00
parent 33ef83c4a9
commit fa179af601
8 changed files with 54 additions and 12 deletions

24
test.ts
View file

@ -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"
})