public boolean acceptFeature(Feature feature) {
return this.styleFilter.match(feature);
}
public Model getKmlModel(Feature feature, Point point) {
Model kmlModel = KmlFactory.createModel()
.withId(feature.getName().toString())
.withAltitudeMode(getAltitudeMode(feature, point));
kmlModel.createAndSetLocation().withLongitude(point.getCoordinate().x)
.withLatitude(point.getCoordinate().y)
.withAltitude(getAltitude(feature, point));
kmlModel.createAndSetOrientation()
.withHeading(
getGenericRotationValue(feature, model.getHeading()))
.withTilt(getGenericRotationValue(feature, model.getTilt()))
.withRoll(getGenericRotationValue(feature, model.getRoll()));
kmlModel.createAndSetLink()
.withHref(
styleFilter.getExpressionValue(model.getHref(), feature))
.withRefreshMode(RefreshMode.ON_CHANGE);
return kmlModel;
}