From 2b5b0449a1d86742f19391527cad99e74389aa8b Mon Sep 17 00:00:00 2001 From: Redmer Kronemeijer <12477216+redmer@users.noreply.github.com> Date: Tue, 1 Oct 2024 10:28:56 +0200 Subject: [PATCH] fix: add rdf:type to Point export --- app/helpers/export.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/helpers/export.ts b/app/helpers/export.ts index 5c43de3..f637b26 100644 --- a/app/helpers/export.ts +++ b/app/helpers/export.ts @@ -2,8 +2,7 @@ import { getDataStore } from "./dataStore"; // Import models import type { - Object, - AttributeRelationValue + Object } from '../models/Object'; export const generateExport = () => { @@ -49,7 +48,7 @@ const generatePhysicalObject = (data: Object) => { // If [1] has a value: this is a POINT if(data.geometry.inputs[1]) { - txt += ` imbor:bdb53bb7-defc-4055-b047-271c5edda82a ; #GM_Point + txt += ` a imbor:bdb53bb7-defc-4055-b047-271c5edda82a ; #GM_Point geo:asWKT "POINT((${data.geometry.inputs[1] ? data.geometry.inputs[1] : ''} ${data.geometry.inputs[0]}))" ;`; } // Otherwise it's a SURFACE