Skip to content
Snippets Groups Projects
Commit d4ee89ef authored by Ruben Heinrich's avatar Ruben Heinrich
Browse files

Fixed some bugs in export functions

parent 9a17eeed
No related branches found
No related tags found
4 merge requests!57 vtkdiff,!47 parameter,!37 process borehole heat exchanger,!2Basic import and export functionality
......@@ -10,7 +10,7 @@ export_gml <- function(ogs6_obj) {
"xmlns:xsi" = "http://www.w3.org/2001/XMLSchema-instance",
"xmlns:ogs" = "http://www.opengeosys.org")
xml2::xml_add_child(gml_xml, xml2::as_xml_document(list(name = ogs6_obj$gml$name)), .copy = FALSE)
xml2::xml_add_child(gml_xml, xml2::as_xml_document(list(name = list(ogs6_obj$gml$name))), .copy = FALSE)
xml2::xml_add_child(gml_xml, points_to_xml(ogs6_obj$gml$points), .copy = FALSE)
......
......@@ -13,7 +13,7 @@ export_prj <- function(ogs6_obj) {
if(is.null(ogs6_obj$geometry)) {
meshes_node <- adopt_nodes("meshes", ogs6_obj$meshes)
}else{
meshes_node <- list(mesh = ogs6_obj$meshes[[1]])
meshes_node <- list(mesh = list(ogs6_obj$meshes[[1]]))
}
#Create wrapper nodes where necessary
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment