<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi! <div class=""><br class=""></div><div class="">I am in a trial evaluating Geonode for our research team (I setup two servers running 3.3.x). I am creating GeoStories in one server and I would like to export them to another server. I had a look at the options, but there are no available export nor download management commands for GeoStories. Is there any way to export them safely? I think this is probably a recurring question here, I mean that of how to move a layer/map/geostory/etc to another server.</div><div class=""><br class=""></div><div class="">If the answer is not :( I am exploring other ways, like serializing to JSON the GeoStory data, exporting it using a Django management command, and then import it using another Django management command. </div><div class=""><br class=""></div><div class="">I also had a look at the internal models on the source code. I found that the GeoStory is managed by GeoAppData in GeoApp model (see <a href="https://github.com/GeoNode/geonode/blob/4ff10aee6ee5d7022b987274227eaa7fabe553e8/geonode/geoapps/models.py#L141" class="">https://github.com/GeoNode/geonode/blob/4ff10aee6ee5d7022b987274227eaa7fabe553e8/geonode/geoapps/models.py#L141</a>). I had a look at the data representation and I think I can manage to export it to JSON, in fact, the blob is a escaped JSON string. The main issue is how to export map and layers.</div><div class=""><br class=""></div><div class="">I know that exporting a map that is inside a GeoStory is not trivial, I didn't pretend to export them, but at least exporting the minimum scaffolding of the GeoStory components (images, text, layout, etc), as well as the MapStore styling. Then I was considering manually editing the json file to patch maps and layers to use references on the target server. I was thinking the process will be something like this:</div><div class="">1. export the geostory in the source server to a json file, using the new export-geostory management command (to be done). It doesn't look like rocket science, </div><div class="">2. manually create the maps in the target server.</div><div class="">3. manually edit the json file to patch the map/layer resources.</div><div class="">4. import the geostory in the target server, using the new import-geostory management command (to be done).</div><div class=""><br class=""></div><div class="">Does it make sense? Do you suggest any other approach?</div><div class=""><br class=""></div><div class="">Regards.<br class=""><div class="">
<div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="orphans: auto; text-align: start; text-indent: 0px; widows: auto; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">--</div><div class="">“If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." - Red Adair<br class=""></div></div></div></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br class=""></div></div></body></html>