fix(geoportal): simplified info panel, preserve basemap zoom, DXF export, intravilan outline
- Feature panel: simplified (NR_CAD/NR_CF/SIRUTA/Suprafata/Proprietari), aligned top-right under basemap switcher, click empty space to close - Basemap switch: preserves zoom+center via viewStateRef + moveend listener - DXF export: use -s_srs + -t_srs (not -a_srs + -t_srs which ogr2ogr rejects) - Intravilan: double line (black outer + orange inner), z13+, no fill - Parcel labels: cadastral_ref shown at z16+ - UAT z12: original geometry (no simplification) - Removed MapLibre popup (only side panel) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -133,17 +133,10 @@ export async function POST(req: Request) {
|
||||
const outputPath = join(tmpDir, `output.${ext}`);
|
||||
const ogrFormat = format === "dxf" ? "DXF" : "GPKG";
|
||||
|
||||
// For DXF, convert to WGS84 (architects expect it). For GPKG keep native CRS.
|
||||
const ogrArgs = [
|
||||
"-f", ogrFormat,
|
||||
outputPath,
|
||||
inputPath,
|
||||
"-a_srs", "EPSG:3844",
|
||||
];
|
||||
|
||||
if (format === "dxf") {
|
||||
ogrArgs.push("-t_srs", "EPSG:4326");
|
||||
}
|
||||
// DXF: reproject to WGS84 (-s_srs + -t_srs). GPKG: assign CRS only (-a_srs).
|
||||
const ogrArgs = format === "dxf"
|
||||
? ["-f", ogrFormat, outputPath, inputPath, "-s_srs", "EPSG:3844", "-t_srs", "EPSG:4326"]
|
||||
: ["-f", ogrFormat, outputPath, inputPath, "-a_srs", "EPSG:3844"];
|
||||
|
||||
try {
|
||||
await execFileAsync("ogr2ogr", ogrArgs, { timeout: 30_000 });
|
||||
|
||||
Reference in New Issue
Block a user