viz1090/map_conversion/write2bin.c
nathan 954f70dd04 changed doubles to float. wrote out mapdata.bin and read in, this is still hacky, but compiles faster now
Former-commit-id: 414d8aed65 [formerly 8894cdb766d205bf630d4de44701894a53b95b12] [formerly 59f44288ca1838e89e1f8c7463e88e91d5252c4b]
Former-commit-id: 197667cbaa98c5fd5d4b1ef504d579d5ff6f8100
Former-commit-id: a0e785034d5709b7f7fdfa9eb4fd1c8e0332f507
2020-02-26 22:44:30 -08:00

13 lines
211 B
C

//
#include<stdio.h>
extern float mapPoints[3878131];
int main(int argc, char **argv) {
FILE *file = fopen("mapdata.bin", "wb");
fwrite(mapPoints, sizeof(mapPoints), 1, file);
fclose(file);
return(0);
}