wind_tool_standortpruefung/debug_coords.js

19 lines
745 B
JavaScript

const turf = require('@turf/turf');
const proj4 = require('proj4');
// Test point within a known potential area (approximate)
// You might need to adjust these coords to match a known potential area
const testPoint = [7.63, 51.96]; // lon, lat
// Projection
proj4.defs("EPSG:25832", "+proj=utm +zone=32 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs");
proj4.defs("EPSG:4326", "+proj=longlat +datum=WGS84 +no_defs");
const [utmX, utmY] = proj4("EPSG:4326", "EPSG:25832", testPoint);
console.log(`Test Point (UTM32): ${utmX}, ${utmY}`);
// Mock features - We need to inspect what the server actually sees.
// Since we can't easily reproduce the large zip loading here without the file,
// we'll add logging to the server.cjs instead.