if (! fleLgd.exists())
{
String strIdLyrOwner = GfrWrpBasDatObjNameTloWms.s_getIdOwnerLayerFromIdChildLegend(super.getId());
GfrIoSavImgLyrWmsLgdLeaf savLgd = new GfrIoSavImgLyrWmsLgdLeaf(strIdLyrOwner);
if (! savLgd.doJob())
{
String strWarning = "Failed to get image legend from WMS server";
GfrMimTrsAlrDisplayWmsYesImgLgdLeafSec._LOGGER_.warning(strWarning);
GfrOptionPaneAbs.s_showDialogWarning(frmOwner, strWarning);
return;
}
File fleLegend = savLgd.getResultFileImage();
if (fleLegend == null)
{
String strWarning = "Failed to get image legend from WMS server";
GfrMimTrsAlrDisplayWmsYesImgLgdLeafSec._LOGGER_.warning(strWarning);
GfrOptionPaneAbs.s_showDialogWarning(frmOwner, strWarning);
return;
}
String strNameChild = savLgd.getTitleLayer();
GfrMdlDatIdObjTloOgcWms.getInstance().newObjectImageLegendLayerLeaf(strIdLyrOwner, strNameChild, fleLegend.getAbsolutePath());
}
// send to observable
GfrMdlTogMltSecCbx.getInstance().doJob(this._strIdViewer_, super.getId(), true);