首页 > 其他分享 >SLD面样式

SLD面样式

时间:2023-08-23 12:14:18浏览次数:42  
标签:filterFactory 样式 0.5 stroke literal styleFactory SLD

对于一个面,他是有两部分组成,一部分是边界,这里我们用Stroke表示,另外一部分是填充,我们使用Fill表示,这里有一个简单创建面样式的例子:

StyleFactory styleFactory = CommonFactoryFinder.getStyleFactory();
Stroke stroke = styleFactory.createStroke(filterFactory.literal(Color.BLUE),filterFactory.literal(1),filterFactory.literal(0.5));
Fill fill = styleFactory.createFill(filterFactory.literal(Color.CYAN), filterFactory.literal(0.5));
PolygonSymbolizer sym = styleFactory.createPolygonSymbolizer(stroke, fill, null);

参考:https://blog.csdn.net/oYinHeZhiGuang/article/details/118316802

标签:filterFactory,样式,0.5,stroke,literal,styleFactory,SLD
From: https://www.cnblogs.com/2008nmj/p/17650850.html

相关文章