All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.fudaa.dodico.telemac.io.SinusxWriterV20 Maven / Gradle / Ivy

There is a newer version: 2.7
Show newest version
/*
 * @creation     10 f?vr. 2009
 * @modification $Date:$
 * @license      GNU General Public License 2
 * @copyright    (c)1998-2009 CETMEF 2 bd Gambetta F-60231 Compiegne
 * @mail         [email protected]
 */
package org.fudaa.dodico.telemac.io;

import java.io.IOException;

import org.fudaa.ctulu.CtuluLibString;
import org.fudaa.ctulu.ProgressionUpdater;
import org.fudaa.ctulu.fileformat.FileFormatVersionInterface;

import com.vividsolutions.jts.geom.CoordinateSequence;

/**
 * Une classe pour ecrire les fichiers Sinusx sous un format fixe. Version 2.0
 * @author Bertrand Marchand
 * @version $Id$
 */
public class SinusxWriterV20 extends SinusxWriterAbstract {
  
  /**
   * @param _v
   */
  public SinusxWriterV20(FileFormatVersionInterface _v) {
    super(_v);
  }

  @Override
  protected void writeCoordinateSequence(final CoordinateSequence _s, final ProgressionUpdater _up, final boolean _ferme)
      throws IOException {
    int n=_s.size();
    if (_ferme) {
      n--;
    }
    for (int k=0; k




© 2015 - 2024 Weber Informatics LLC | Privacy Policy