Package com.gi.engine.carto

Examples of com.gi.engine.carto.Map


    try {
      MapService mapService = (MapService) pool.getParentService();
      serviceName = mapService.getServiceName();

      MapDesc mapDesc = mapService.getMapDesc();
      map = new Map();
      map.initByMapDesc(mapDesc, mapService.getServiceDir()
          + ArchitectureUtil.MAP_DESC_FILE_NAME);
    } catch (Exception e) {
      StringBuilder sb = new StringBuilder();
      sb.append(ResourceBundleManager.getResourceBundleMapServiceLog()
View Full Code Here


    initGUI();
  }

  private void addLevelFromMap() {
    try {
      Map map = app.getMap();
      ReferencedEnvelope env = map.getExtent();
      int width = app.getMapPane().getWidth();
      int height = app.getMapPane().getHeight();
      int dpi = Integer.valueOf(this.jTextFieldDPI.getText());
      double resolution = map.computeResolution(env, width, height);
      double scale = map.computeScale(env, width, height, dpi);
      TileLodInfo info = new TileLodInfo();
      info.setResolution(resolution);
      info.setScale(scale);
      LodItem item = new LodItem();
      item.setTileLodInfo(info);
View Full Code Here

  private void suggestLevels() {
    String levelNum = JOptionPane.showInputDialog("Level Numbers:");
    try {
      jListLevelsModel.removeAllElements();
      int num = Integer.valueOf(levelNum);
      Map map = app.getMap();
      ReferencedEnvelope fullEnv = map.getFullExtent();
      int width = app.getMapPane().getWidth();
      int height = app.getMapPane().getHeight();
      int dpi = Integer.valueOf(this.jTextFieldDPI.getText());
      double maxResolution = map
          .computeResolution(fullEnv, width, height);
      double maxScale = map.computeScale(fullEnv, width, height, dpi);
      for (int i = 0; i < num; i++) {
        TileLodInfo info = new TileLodInfo();
        double factor = Math.pow(2, i);
        info.setResolution(maxResolution / factor);
        info.setScale(maxScale / factor);
View Full Code Here

TOP

Related Classes of com.gi.engine.carto.Map

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.