Examples of SbiGeoMaps


Examples of it.eng.spagobi.mapcatalogue.metadata.SbiGeoMaps

    logger.debug("IN");
    if (map == null) {
      logger.warn("SDKMaps in input is null!!");
      return null;
    }
    SbiGeoMaps sbiMap = null;
    try {
      sbiMap=new SbiGeoMaps();
      sbiMap.setMapId(map.getMapId());
      sbiMap.setName(map.getName());
      sbiMap.setDescr(map.getDescr());
      sbiMap.setFormat(map.getFormat());
      sbiMap.setUrl(map.getUrl());

      IBinContentDAO binContentDAO=DAOFactory.getBinContentDAO();
      byte[] binContentsContent=binContentDAO.getBinContent(map.getBinId());
      if(binContentsContent!=null){
        Integer contentId=map.getBinId();
        SbiBinContents sbiBinContents=new SbiBinContents();
        sbiBinContents.setId(contentId);
        sbiBinContents.setContent(binContentsContent);
        sbiMap.setBinContents(sbiBinContents);
      }

    } catch (Exception e) {
      logger.error("Error while converting SDKMap into SbiGeoFeature.", e);
      logger.debug("Returning null.");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.