Search in sources :

Example 1 with PolygonSymbolizerType

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

the class GTtoSE110Transformer method visit.

/**
 * Transform a GT polygon symbol in a jaxb version.
 */
@Override
public JAXBElement<PolygonSymbolizerType> visit(final PolygonSymbolizer polygon, final Object data) {
    final PolygonSymbolizerType pst = se_factory.createPolygonSymbolizerType();
    pst.setName(polygon.getName());
    pst.setDescription(visit(polygon.getDescription(), null));
    pst.setUom(visitUOM(polygon.getUnitOfMeasure()));
    pst.setGeometry(visitExpression(polygon.getGeometry()));
    if (polygon.getDisplacement() != null) {
        pst.setDisplacement(visit(polygon.getDisplacement(), null));
    }
    if (polygon.getFill() != null) {
        pst.setFill(visit(polygon.getFill(), null));
    }
    pst.setPerpendicularOffset(visitExpression(polygon.getPerpendicularOffset()));
    if (polygon.getStroke() != null) {
        pst.setStroke(visit(polygon.getStroke(), null));
    }
    return se_factory.createPolygonSymbolizer(pst);
}
Also used : PolygonSymbolizerType(org.geotoolkit.se.xml.v110.PolygonSymbolizerType)

Aggregations

PolygonSymbolizerType (org.geotoolkit.se.xml.v110.PolygonSymbolizerType)1