CountSimComparisonKMLWriter kmlWriter = new CountSimComparisonKMLWriter(comparisons.get(CountType.Occupancy), this.occupancyCounts, coordTransform, "ptCountsOccup") ; kmlWriter.setIterationNumber(iter); kmlWriter.writeFile(filename);
createStyles(); this.mainFolder.getAbstractFeatureGroup().add(this.kmlObjectFactory.createScreenOverlay(createLegend())); this.mainFolder.getAbstractFeatureGroup().add(this.kmlObjectFactory.createScreenOverlay(createLegendNormalized())); this.mainFolder.getAbstractFeatureGroup().add(this.kmlObjectFactory.createScreenOverlay(createLegendGEH())); } catch (IOException e) { log.error("Cannot add legend to the KMZ file.", e); ScreenOverlayType errorGraph = createBiasErrorGraph(filename); errorGraph.setVisibility(Boolean.TRUE); this.mainFolder.getAbstractFeatureGroup().add(this.kmlObjectFactory.createScreenOverlay(errorGraph)); ScreenOverlayType errorGraph = createBiasNormalizedErrorGraph(filename); errorGraph.setVisibility(Boolean.FALSE); this.mainFolder.getAbstractFeatureGroup().add(this.kmlObjectFactory.createScreenOverlay(errorGraph)); ScreenOverlayType errorGraph = createBoxPlotErrorGraph(); if (errorGraph != null) { errorGraph.setVisibility(Boolean.FALSE); ScreenOverlayType errorGraph = createBoxPlotNormalizedErrorGraph(); if (errorGraph != null) { errorGraph.setVisibility(Boolean.FALSE); awtv=this.createAWTVGraph(); } catch (Exception ee) { log.warn("generating awtv (average weekday traffic volumes) graph failed; printing stacktrace but continuing anyways ..."); this.createCountsLoadCurveGraphs();
coord = this.coordTransform.transform(calculatePlacemarkPosition(link)); } else { coord = this.coordTransform.transform(this.counts.getCount(itemId).getCoord()); placemark = createPlacemark(itemId.toString(), csc, relativeError, normalizedRelativeError, gehValue, csc.getHour(), this.countsLoadCurveGraphMap.get(itemId.toString())); placemark = createPlacemark(itemId.toString(), csc, relativeError, normalizedRelativeError, gehValue, csc.getHour(), this.countsLoadCurveGraphMap.get(itemId.toString())); placemark = createPlacemark(itemId.toString(), csc, relativeError, normalizedRelativeError, gehValue, csc.getHour(), this.countsGEHCurveGraphMap.get(itemId.toString()));
public void testKMLCreation() { CountsFixture fixture = new CountsFixture(); fixture.setUp(); CountsComparisonAlgorithm cca=fixture.getCCA(); cca.run(); String filename = this.getOutputDirectory() + "countscompare.kmz"; CountSimComparisonKMLWriter kmlWriter = new CountSimComparisonKMLWriter( cca.getComparison(), fixture.getNetwork(), new IdentityTransformation()); kmlWriter.setIterationNumber(0); kmlWriter.writeFile(filename); assertTrue(new File(filename).length() > 0); } }
CountSimComparisonKMLWriter kmlWriter = new CountSimComparisonKMLWriter(ccaOccupancy.getComparison(), this.occupCounts, coordTransform, "ptCountsOccup") ; kmlWriter.setIterationNumber(iter); kmlWriter.writeFile(filename);
this.config.getOutputFormat().contains("all")) { String filename = controlerIO.getIterationFilename(event.getIteration(), "countscompare.kmz"); CountSimComparisonKMLWriter kmlWriter = new CountSimComparisonKMLWriter( cca.getComparison(), network, TransformationFactory.getCoordinateTransformation(globalConfigGroup.getCoordinateSystem(), TransformationFactory.WGS84)); kmlWriter.setIterationNumber(event.getIteration()); kmlWriter.writeFile(filename);
CountSimComparisonKMLWriter kmlWriter = new CountSimComparisonKMLWriter(ccaOccupancy.getComparison(), occupancyFixture.counts, coordTransform, "ptCountsOccup") ; kmlWriter.setIterationNumber(0); kmlWriter.writeFile(filename);