Package com.lbslocal.cc.objects.v0.common

Examples of com.lbslocal.cc.objects.v0.common.MapInfo


  }

  public MapInfo getZoomCity(String routeId, MapOptions mo, City city, int idLicenca) throws Exception {
    iniDate = System.currentTimeMillis();

    MapInfo mi = new MapInfo();
    try {
      mi = commonMap.getZoomCity(routeId, mo, city, idLicenca, CommonMap._getZoomCity);
      Functions.gravarLogUnique(idLicenca, CommonMap._getZoomCity, 0, iniDate, 0);
    } catch (Exception e) {
      throw e;
View Full Code Here


  }

  public MapInfo getZoomState(String routeId, MapOptions mo, String uf, int idLicenca) throws Exception {
    iniDate = System.currentTimeMillis();

    MapInfo mi = new MapInfo();
    try {
      mi = commonMap.getZoomState(routeId, mo, uf, idLicenca, CommonMap._getZoomState);
      Functions.gravarLogUnique(idLicenca, CommonMap._getZoomState, 0, iniDate, 0);
    } catch (Exception e) {
      throw e;
View Full Code Here

  }

  public MapInfo getZoomFullExtent(String routeId, MapOptions mo, int idLicenca) throws Exception {
    iniDate = System.currentTimeMillis();

    MapInfo mi = new MapInfo();
    try {
      MapOptions mapOptions = new MapOptions();
      mapOptions.setMapSize(mo.getMapSize());
      mapOptions.setScaleBar(mo.isScaleBar());
View Full Code Here

  }

  public MapInfo getMap(String routeId, Extent extent, MapOptions mo, int idLicenca, String mapType) throws Exception {
    iniDate = System.currentTimeMillis();

    MapInfo mi = new MapInfo();
    try {
      mi = commonMap.getMap(routeId, extent, mo, idLicenca, CommonMap._getMap, mapType);

      Functions.gravarLogUnique(idLicenca, CommonMap._getMap, 0, iniDate, 0);
    } catch (Exception e) {
View Full Code Here

  final static int getZoomState = 5;
  final static int getZoomCity = 6;

  public static String runService(Proxy proxy, TokenValidated tk) throws Exception {
    Object[] o;
    MapInfo mInfo;
    String respostaWs = "";
    ConfigurationManager cm = ConfigurationManager.getInstance();
    CMapRenderAPI mapRender = new CMapRenderAPI(cm.getAppSettings("Maquina"), cm.getAppSettings("Server"), 11188, cm.getAppSettings("dirOutPut"),
        cm.getAppSettings("webOutPut"), cm.getAppSettings("M_BASEDECARTA_MAPAS"));
View Full Code Here

       
        mapOptionsDependencyObjects[3] = cr.new ObjectsHelper();
        mapOptionsDependencyObjects[3].object = new Point();
        mapOptionsDependencyObjects[3].alias = "point";
 
        MapOptions mo = (MapOptions) cr.getObjectFromXML(ph.XMLFile, "mo", MapOptions.class, mapOptionsDependencyObjects);
       
        String routeId = cr.getFieldFromXML(ph.XMLFile, "routeId");
        int radius = Integer.valueOf(cr.getFieldFromXML(ph.XMLFile, "radius"));
       
        try
        {
          mi = cMr.getZoomRadius(routeId, point, radius, mo, id_licenca, mapType);
        }
        catch (Exception e)
        {
          e.printStackTrace();
        }
       
        response.setContentType("text/xml");
        response.setCharacterEncoding("UTF-8");
       
        ObjectsHelper[] dependencyObjects = new ObjectsHelper[2];
       
        dependencyObjects[0] = cr.new ObjectsHelper();
        dependencyObjects[0].object = new Extent();
        dependencyObjects[0].alias = "extent";
       
        dependencyObjects[1] = cr.new ObjectsHelper();
        dependencyObjects[1].object = new MapInfo();
        dependencyObjects[1].alias = "MapInfo";

        response.getWriter().write("<?xml version='1.0' encoding='UTF-8'?>\n" + cr.getXMLFromObject(mi, dependencyObjects) + "");
      }
      if (ph.fields[0].equals("getMap"))
      {
        MapInfo mi = new MapInfo();
       
        String mapType = cr.getFieldFromXML(ph.XMLFile, "maptype");
       
        if (!mapType.toLowerCase().equals("gif") && !mapType.toLowerCase().equals("png") && !mapType.toLowerCase().equals("jpg") ){
          mapType = "png";
        }
       
        Extent extent = (Extent) cr.getObjectFromXML(ph.XMLFile, "extent", Extent.class, null);
       
        ObjectsHelper[] mapOptionsDependencyObjects = new ObjectsHelper[4];
       
        mapOptionsDependencyObjects[0] = cr.new ObjectsHelper();
        mapOptionsDependencyObjects[0].object = new MapSize();
        mapOptionsDependencyObjects[0].alias = "mapSize";
       
        mapOptionsDependencyObjects[1] = cr.new ObjectsHelper();
        mapOptionsDependencyObjects[1].object = new Icon[0];
        mapOptionsDependencyObjects[1].alias = "icon";
       
        mapOptionsDependencyObjects[2] = cr.new ObjectsHelper();
        mapOptionsDependencyObjects[2].object = new Icon();
        mapOptionsDependencyObjects[2].alias = "Icon";
       
        mapOptionsDependencyObjects[3] = cr.new ObjectsHelper();
        mapOptionsDependencyObjects[3].object = new Point();
        mapOptionsDependencyObjects[3].alias = "point";
 
        MapOptions mo = (MapOptions) cr.getObjectFromXML(ph.XMLFile, "mo", MapOptions.class, mapOptionsDependencyObjects);
       
        String routeId = cr.getFieldFromXML(ph.XMLFile, "routeId");

       
        try
View Full Code Here

    String routeID = _maquina + "_" + Calendar.getInstance().getTimeInMillis();

    try {

      response = requestRoute(routeID, true, rs, ro, new Extent(), new MapSize(), null, idLicenca, _dataSource, methodID);

      ri.setRouteId(routeID);

      // ri.setProximityList(getRouteProximity(response, ro.radius,
      // idLicenca, ro.routeDetails.getRouteType()));
View Full Code Here

    SegmentDescription[] segRet = new SegmentDescription[0];

    String routeID = _maquina + "_" + Calendar.getInstance().getTimeInMillis();

    try {
      response = requestRoute(routeID, true, rs, ro, ext, new MapSize(), null, idLicenca, _dataSource, methodID);
      segRet = getSegmentDescriptionAlternative(response, ro.getVehicle().getTollFeeCat(), ro, rs, _dataSource, idLicenca);
    } catch (Exception ex) {
      Utils.LogError("CC", "getRouteWithMap - IdWebservice : Interno ", ex.getMessage() + "|" + ex.getStackTrace());

      throw (ex);
View Full Code Here

  }

  public RouteTotals getRouteTotals(int idLicenca, RouteStop[] rs, RouteProximityOptions ro, int methodID) throws Exception {
    String barriersRoute = "";

    String response = requestRoute("", false, rs, ro, new Extent(), new MapSize(), barriersRoute, idLicenca, _dataSource, methodID);

    SegmentDescription[] segDescription = getSegmentDescriptionAlternative(response, ro.getVehicle().getTollFeeCat(), ro, rs, _dataSource,
        idLicenca);
    RouteTotals rt = getTotals(segDescription, ro, rs, totalPedagios);
View Full Code Here

  }

  public RouteSummary[] getRouteSummary(int idLicenca, RouteStop[] rs, RouteProximityOptions ro, int methodID) throws Exception {
    String barriersRoute = "";

    String response = requestRoute("", false, rs, ro, new Extent(), new MapSize(), barriersRoute, idLicenca, _dataSource, methodID);

    SegmentDescription[] segDescription = getSegmentDescriptionAlternative(response, ro.getVehicle().getTollFeeCat(), ro, rs, _dataSource,
        idLicenca);
    RouteSummary[] routeSummary = getSummary(segDescription, rs, ro);
View Full Code Here

TOP

Related Classes of com.lbslocal.cc.objects.v0.common.MapInfo

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.