GeoServer:使用CSS扩展样式“分离几何列”

huangapple go评论93阅读模式
英文:

GeoServer: using the CSS extension style the "Separate geometry columns"

问题

I'm using the GeoServer documentation for "Styling mixed geometry types" and exactle this part of it Separate geometry columns.

How can I repeat this SLD style using the CSS extension?

<PolygonSymbolizer>
    <Geometry><ogc:PropertyName>polygon</ogc:PropertyName></Geometry>
</PolygonSymbolizer>

I tried to use the ":nth-..." pseudo selector but had no success.

Maybe there are other selectors which I can use for my purposes.

英文:

I'm using the GeoServer documentation for "Styling mixed geometry types" and exactle this part of it Separate geometry columns.

How can I repeat this SLD style using the CSS extension?

&lt;PolygonSymbolizer&gt;
    &lt;Geometry&gt;&lt;ogc:PropertyName&gt;polygon&lt;/ogc:PropertyName&gt;&lt;/Geometry&gt;
&lt;/PolygonSymbolizer&gt;

I tried to use the ": nth-..." pseudo selector but had no success.

Maybe there are other selectors which I can use for my purposes.

答案1

得分: 1

检查CSS的属性列表:
https://docs.geoserver.org/2.23.x/en/user/styling/css/properties.html

您要查找的属性称为mark-geometrystroke-geometryfill-geometry等等。

英文:

Check the property listing for CSS:
https://docs.geoserver.org/2.23.x/en/user/styling/css/properties.html

The properties you are looking for are called mark-geometry, stroke-geometry, fill-geometry and so on.

huangapple
  • 本文由 发表于 2023年5月17日 21:03:41
  • 转载请务必保留本文链接:https://go.coder-hub.com/76272428.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定