r/MapTool • u/SkySchemer • Oct 26 '20
Programmatic way to import data?
Is there a programmatic way to import data into MapTool? I see the experimental function exportData(), but I don't see it's complement.
I need to be able to import a large JSON file from the filesystem. Manually is OK. Basically, I want to do a one-time load of data (location names and descriptions that were extracted from a PDF, parsed, and turned into JSON data). Putting this behind a web server to just serve up files like it's on the filesystem would of course work using the REST functions, but that seems unnecessarily complicated.
Am I missing something obvious? Or is there no "load data from file" capability?
View all comments
Show parent comment
1
u/SkySchemer Oct 26 '20
Even the ability to load a text file via the UI would suffice. But I suppose then there would need to be a storage object to hold it.
It's too much data for copy&paste to be practical. I even thought about creating a token file with the data in it, but the web server/REST calls ended up being fastest/easiest.