Package org.geoforge.ioogc.saver

Examples of org.geoforge.ioogc.saver.GfrIoSavImgLyrWmsLgdLeaf


       
         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);
View Full Code Here

TOP

Related Classes of org.geoforge.ioogc.saver.GfrIoSavImgLyrWmsLgdLeaf

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.