def export_campaign_visit_geojson(self): """ Export the current campaign visit information to a GeoJSON data file. """ dialog = extras.FileChooserDialog('Export Campaign Visit GeoJSON Data', self) file_name = self.config['campaign_name'] + '.geojson' response = dialog.run_quick_save(file_name) dialog.destroy() if not response: return destination_file = response['target_path'] export.campaign_visits_to_geojson(self.rpc, self.config['campaign_id'], destination_file)
def export_campaign_visit_geojson(self): """ Export the current campaign visit information to a GeoJSON data file. """ dialog = gui_utilities.FileChooser("Export Campaign Visit GeoJSON Data", self) file_name = self.config["campaign_name"] + ".geojson" response = dialog.run_quick_save(file_name) dialog.destroy() if not response: return destination_file = response["target_path"] export.campaign_visits_to_geojson(self.rpc, self.config["campaign_id"], destination_file)