Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Saschl committed Sep 30, 2024
1 parent f3a9a3a commit 0e422ec
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 49 deletions.
44 changes: 0 additions & 44 deletions apps/server/src/terrain.ts

This file was deleted.

5 changes: 0 additions & 5 deletions apps/server/src/terrain/processing/maphandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ import { bearingWgs84, normalizeHeading, projectWgs84, wgs84toPixelCoordinate }
import { ElevationProfileConstants, LocalElevationMapConstants } from './gpu/interfaces';
import { uploadTextureData } from './gpu/upload';
import { Logger } from './logging/logger';
import { copyFileSync, existsSync } from 'fs';
import execute from '../../terrain';

// defines the maximum dimension length of the world map
const GpuMaxPixelSize = 16384;
Expand Down Expand Up @@ -148,9 +146,6 @@ export class MapHandler {

private async readTerrainMap(): Promise<TerrainMap | undefined> {
try {
/* if(!existsSync(join(getSimbridgeDir(), '/terrain/terrain.map'))){
copyFileSync(join(getExecutablePath(), '/terrain/terrain.map'), join(getSimbridgeDir(), '/terrain/terrain.map'));
} */
// TODO shall we move this as well? Currently the installer downloads the terrain.map file
const buffer = await readFile(join(getExecutablePath(), '/terrain/terrain.map'));
this.logging.info(`Read MB of terrainmap: ${(Buffer.byteLength(buffer) / (1024 * 1024)).toFixed(2)}`);
Expand Down

0 comments on commit 0e422ec

Please sign in to comment.