} else if (localName.equals("Placemark")) { this.in_placemarktag = true; navigationDataSet.setCurrentPlacemark(new Placemark()); } else if (localName.equals("name")) { this.in_nametag = true; public void characters(char ch[], int start, int length) { if(this.in_nametag){ if (navigationDataSet.getCurrentPlacemark()==null) navigationDataSet.setCurrentPlacemark(new Placemark()); navigationDataSet.getCurrentPlacemark().setTitle(new String(ch, start, length)); } else if(this.in_descriptiontag){ if (navigationDataSet.getCurrentPlacemark()==null) navigationDataSet.setCurrentPlacemark(new Placemark()); navigationDataSet.getCurrentPlacemark().setDescription(new String(ch, start, length)); } else if(this.in_coordinatestag){ if (navigationDataSet.getCurrentPlacemark()==null) navigationDataSet.setCurrentPlacemark(new Placemark());
)); Placemark p = new Placemark() .withName(name) .withTimePrimitive(ts) .withExtendedData(ed) .withStyleUrl( ( c.getpDop()<goodDopThreshold && c.eRes<goodEResThreshold )? "#Valid" : "#Invalid"); Point pt = p.createAndSetPoint(); pt.getCoordinates().add( new Coordinate(c.getGeodeticLongitude(), c.getGeodeticLatitude(), c.getGeodeticHeight())); pt.withAltitudeMode(altitudeMode);
.withDescription(point.getHTMLDescription()) .withVisibility(true) .withStyleUrl("karma") .createAndSetPoint() .withAltitudeMode(AltitudeMode.CLAMP_TO_GROUND) .addToCoordinates( .withDescription(line.getHTMLDescription()) .withVisibility(true).createAndSetLineString() .withAltitudeMode(AltitudeMode.CLAMP_TO_GROUND) .setCoordinates(line.getCoordinatesList()); .withDescription(featureTable.getHTMLDescription()) .withVisibility(true); placemark.setGeometry(kmlPolygon);
/** * fluent setter * @see #setGeometry(Geometry) * * @param geometry * required parameter */ public Placemark withGeometry(final Geometry geometry) { this.setGeometry(geometry); return this; }
trackPlacemark = new Placemark() .withName( "Track" ) .withStyleUrl("#track") .withGeometry(track);
Style style = pm.createAndAddStyle(); List<Symbolizer> symbolizers = context.getCurrentSymbolizers(); SimpleFeature sf = context.getCurrentFeature();
String styleID = getKMLStyle(category, folder); folder.createAndAddPlacemark().withName(label) .withDescription(htmlDescription).withVisibility(true) .withStyleUrl("#" + styleID).createAndSetPoint() .withAltitudeMode(AltitudeMode.CLAMP_TO_GROUND) .addToCoordinates(p.getX() + "," + p.getY()); String category = getKMLCategory(lineFeature); String styleID = getKMLStyle(category, folder); folder.createAndAddPlacemark().withName(label) .withDescription(htmlDescription).withVisibility(true) .withStyleUrl("#" + styleID).createAndSetLineString() .withAltitudeMode(AltitudeMode.CLAMP_TO_GROUND) .setCoordinates(coordsList); String styleID = getKMLStyle(category, folder); Placemark placemark = folder.createAndAddPlacemark() .withName(label).withDescription(htmlDescription) .withVisibility(true).withStyleUrl("#" + styleID); placemark.setGeometry(kmlPolygon);
/** * fluent setter * @see #setGeometry(Geometry) * * @param geometry * required parameter */ public Placemark withGeometry(final Geometry geometry) { this.setGeometry(geometry); return this; }
/** * Create an instance of {@link Placemark} * */ public static Placemark createPlacemark() { return new Placemark(); }
/** * Creates a new instance of {@link Polygon} and set it to geometry. * * This method is a short version for: * <code> * Polygon polygon = new Polygon(); * this.setGeometry(polygon); </code> * * */ public Polygon createAndSetPolygon() { Polygon newValue = new Polygon(); this.setGeometry(newValue); return newValue; }
/** * Create an instance of {@link Placemark} * */ public static Placemark createPlacemark() { return new Placemark(); }
/** * Creates a new instance of {@link Point} and set it to geometry. * * This method is a short version for: * <code> * Point point = new Point(); * this.setGeometry(point); </code> * * */ public Point createAndSetPoint() { Point newValue = new Point(); this.setGeometry(newValue); return newValue; }
/** * Creates a new instance of {@link Placemark} and adds it to feature. * This method is a short version for: * <code> * Placemark placemark = new Placemark(); * this.getFeature().add(placemark); </code> * * */ public Placemark createAndAddPlacemark() { Placemark newValue = new Placemark(); this.getFeature().add(newValue); return newValue; }
/** * Creates a new instance of {@link Model} and set it to geometry. * * This method is a short version for: * <code> * Model model = new Model(); * this.setGeometry(model); </code> * * */ public Model createAndSetModel() { Model newValue = new Model(); this.setGeometry(newValue); return newValue; }
/** * Creates a new instance of {@link Placemark} and adds it to feature. * This method is a short version for: * <code> * Placemark placemark = new Placemark(); * this.getFeature().add(placemark); </code> * * */ public Placemark createAndAddPlacemark() { Placemark newValue = new Placemark(); this.getFeature().add(newValue); return newValue; }
/** * Creates a new instance of {@link MultiTrack} and set it to geometry. * * This method is a short version for: * <code> * MultiTrack multiTrack = new MultiTrack(); * this.setGeometry(multiTrack); </code> * * */ public MultiTrack createAndSetMultiTrack() { MultiTrack newValue = new MultiTrack(); this.setGeometry(newValue); return newValue; }
/** * Creates a new instance of {@link Placemark} and adds it to feature. * This method is a short version for: * <code> * Placemark placemark = new Placemark(); * this.getFeature().add(placemark); </code> * * */ public Placemark createAndAddPlacemark() { Placemark newValue = new Placemark(); this.getFeature().add(newValue); return newValue; }
/** * Creates a new instance of {@link MultiGeometry} and set it to geometry. * * This method is a short version for: * <code> * MultiGeometry multiGeometry = new MultiGeometry(); * this.setGeometry(multiGeometry); </code> * * */ public MultiGeometry createAndSetMultiGeometry() { MultiGeometry newValue = new MultiGeometry(); this.setGeometry(newValue); return newValue; }