<div dir="ltr">Hello,<div><br></div><div>I would like to find out if there is a way to write unstructured grid vtk files containing scalar, tensor or vector data to any standard database format. This could be SQLite, JSON or XML for example.</div><div><br></div><div>The reason  for this is that I would like to conduct queries on the <i>data</i> contained in the vtk file. I have no need to create new geometries or select by frustum for example. I need only basic SQL select-where type functionality where I can query and extract numerical data based on simple conditions.</div><div><br></div><div>I saw that the vtk file contains some SQL readiness but as far as I can tell the tools are mainly to connect to an SQL database and extract data from it. I seek to go the other way, namely to start with an unstructured grid vtk dataset and write <i>that </i>into a database.</div><div><br></div><div>The following examples look promising</div><div><ul><li><a href="https://lorensen.github.io/VTKExamples/site/Cxx/Databases/SQL/MySQL/CreateDatabase/">https://lorensen.github.io/VTKExamples/site/Cxx/Databases/SQL/MySQL/CreateDatabase/</a><br></li><li><a href="https://lorensen.github.io/VTKExamples/site/Cxx/Databases/SQL/MySQL/WriteToDatabase/">https://lorensen.github.io/VTKExamples/site/Cxx/Databases/SQL/MySQL/WriteToDatabase/</a><br></li></ul><div>But I have no C++ background and use mainly Python. Furthermore I'm not sure if the above applies for Unstructured grid data.</div></div><div><br></div><div>Could anyone please enlighten me on this?</div><div><br></div><div>Thanks,</div><div><br></div><div>Amine</div></div>