if (! fleLgd.exists())
{
String strIdLyrOwner = GfrWrpBasDatObjNameTloWms.s_getIdOwnerLayerFromIdChildLegend(super.getId());
GfrIoSavImgLyrWmsLgdFolder savLgd = new GfrIoSavImgLyrWmsLgdFolder(strIdLyrOwner);
if (! savLgd.doJob())
{
String strWarning = "Failed to get image legend from WMS server";
GfrMimTrsAlrDisplayWmsYesImgLgdFolderSec._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";
GfrMimTrsAlrDisplayWmsYesImgLgdFolderSec._LOGGER_.warning(strWarning);
GfrOptionPaneAbs.s_showDialogWarning(frmOwner, strWarning);
return;
}
String strNameChild = savLgd.getTitleLayer();
GfrMdlDatIdObjTloOgcWms.getInstance().newObjectImageLegendLayerFolder(
strIdLyrOwner, strNameChild, fleLegend.getAbsolutePath());
}