Search in sources :

Example 1 with LabelPlacementType

use of org.geotoolkit.se.xml.v110.LabelPlacementType in project geotoolkit by Geomatys.

the class GTtoSE110Transformer method visit.

/**
 * Transform a GT label placement in jaxb label placement.
 *
 * @return
 */
public LabelPlacementType visit(final LabelPlacement labelPlacement, final Object data) {
    final LabelPlacementType lpt = se_factory.createLabelPlacementType();
    if (labelPlacement instanceof LinePlacement) {
        final LinePlacement lp = (LinePlacement) labelPlacement;
        lpt.setLinePlacement(visit(lp, null));
    } else if (labelPlacement instanceof PointPlacement) {
        final PointPlacement pp = (PointPlacement) labelPlacement;
        lpt.setPointPlacement(visit(pp, null));
    }
    return lpt;
}
Also used : LinePlacement(org.opengis.style.LinePlacement) PointPlacement(org.opengis.style.PointPlacement) LabelPlacementType(org.geotoolkit.se.xml.v110.LabelPlacementType)

Aggregations

LabelPlacementType (org.geotoolkit.se.xml.v110.LabelPlacementType)1 LinePlacement (org.opengis.style.LinePlacement)1 PointPlacement (org.opengis.style.PointPlacement)1