Skip to content

Commit

Permalink
Merge pull request #4 from Stichting-CROW/fix-point-rdf-type
Browse files Browse the repository at this point in the history
fix: add rdf:type to Point export
  • Loading branch information
bartwr authored Nov 18, 2024
2 parents 1ad0d31 + 2b5b044 commit 4af93e7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/helpers/export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import { getDataStore } from "./dataStore";

// Import models
import type {
Object,
AttributeRelationValue
Object
} from '../models/Object';

export const generateExport = () => {
Expand Down Expand Up @@ -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 "<http://www.opengis.net/def/crs/EPSG/0/4326>POINT((${data.geometry.inputs[1] ? data.geometry.inputs[1] : ''} ${data.geometry.inputs[0]}))" ;`;
}
// Otherwise it's a SURFACE
Expand Down

0 comments on commit 4af93e7

Please sign in to comment.