Search in sources :

Example 21 with QuantityData

use of org.n52.io.response.dataset.quantity.QuantityData in project series-rest-api by 52North.

the class QuantityCsvIoHandler method writeData.

private void writeData(DataCollection<QuantityData> data, OutputStream stream) throws IOException {
    for (DatasetOutput metadata : seriesMetadatas) {
        QuantityData series = data.getSeries(metadata.getId());
        writeData(metadata, (QuantityData) series, stream);
    }
}
Also used : DatasetOutput(org.n52.io.response.dataset.DatasetOutput) QuantityData(org.n52.io.response.dataset.quantity.QuantityData)

Aggregations

QuantityData (org.n52.io.response.dataset.quantity.QuantityData)14 QuantityValue (org.n52.io.response.dataset.quantity.QuantityValue)7 IOException (java.io.IOException)3 IoParseException (org.n52.io.IoParseException)3 QuantityDatasetMetadata (org.n52.io.response.dataset.quantity.QuantityDatasetMetadata)3 Coordinate (com.vividsolutions.jts.geom.Coordinate)2 ArrayList (java.util.ArrayList)2 DateTime (org.joda.time.DateTime)2 GeneralizingQuantityService (org.n52.io.quantity.generalize.GeneralizingQuantityService)2 DatasetOutput (org.n52.io.response.dataset.DatasetOutput)2 TvpDataCollection (org.n52.io.series.TvpDataCollection)2 Line2D (java.awt.geom.Line2D)1 File (java.io.File)1 Result (javax.xml.transform.Result)1 Source (javax.xml.transform.Source)1 Transformer (javax.xml.transform.Transformer)1 TransformerConfigurationException (javax.xml.transform.TransformerConfigurationException)1 TransformerException (javax.xml.transform.TransformerException)1 TransformerFactory (javax.xml.transform.TransformerFactory)1 SAXResult (javax.xml.transform.sax.SAXResult)1