Package es.emergya.gpx

Examples of es.emergya.gpx.GPXGenerator


      int i = 0;
      for (String recurso : listaRecursos) {
        List<HistoricoGPS> historico = HistoricoGPSConsultas
            .getPosicionesEnIntervalo(recurso, inicio, fin);
        if (historico.size() > 0) {
          GPXGenerator generator = new GPXGenerator(recurso);
          StringWriter sw = new StringWriter(historico.size() * 300);
          GpxType gpxtype = generator.generaGPX(historico);
          generator.writeGPX(gpxtype, sw);
          respuesta[i++] = sw.toString();
        } else {
          respuesta[i++] = null;
        }
      }
View Full Code Here


      int i = 0;
      for (String recurso : listaRecursos) {
        List<HistoricoGPS> historico = HistoricoGPSConsultas
            .getPosicionesEnIntervaloSoloBBDD(recurso, inicio, fin);
        if (historico.size() > 0) {
          GPXGenerator generator = new GPXGenerator(recurso);
          StringWriter sw = new StringWriter(historico.size() * 150);
          GpxType gpxtype = generator.generaGPX(historico);
          generator.writeGPX(gpxtype, sw);
          respuesta[i++] = sw.toString();
        } else {
          respuesta[i++] = null;
        }
      }
View Full Code Here

TOP

Related Classes of es.emergya.gpx.GPXGenerator

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.