Package org.locationtech.udig.image.georeferencing.internal.process

Examples of org.locationtech.udig.image.georeferencing.internal.process.MarkModel


  private Map<String, MarkModel> sortMap(Map<Integer, MarkModel> unsortedMarkMap) {

    Map<String, MarkModel> sortedMap = new LinkedHashMap<String, MarkModel>();
    for (int i = 1; i <= highestIndex; i++) {

      MarkModel mark = unsortedMarkMap.get(i);
      String key = mark.getID();
      sortedMap.put(key, mark);
    }

    return sortedMap;
  }
View Full Code Here


    return sortedMap;
  }

  private MarkModel parseMarkData(String markValues) {

    MarkModel newMark = null;

    StringTokenizer tokenizer = new StringTokenizer(markValues, ";"); //$NON-NLS-1$
    String id = tokenizer.nextToken();

    // we don't know how many values have been set to the model, so try to
View Full Code Here

      int order = 1;
      while (iter.hasNext()) {
        Entry<String, MarkModel> entry = iter.next();

        String key = entry.getKey();
        MarkModel mark = entry.getValue();

        this.propertiesMarks.setProperty(key, mark.toString() + ";" + order); //$NON-NLS-1$
        order++;
      }
      out = new FileWriter(fileName);

      this.propertiesMarks.store(out, "georeferencing marks"); //$NON-NLS-1$
View Full Code Here

TOP

Related Classes of org.locationtech.udig.image.georeferencing.internal.process.MarkModel

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.