According to the docs:
Filtering on Type¶
When dealing with data from multiple sources, it may be useful to provide rules that only affect one of those sources. This is done very simply; just specify the name of the layer as a filter:
states { stroke: black; }
So I created this style:
points [@scale > 5000000] ['state' = place] {
label: [name];
}
And got this error:
The requested Style can not be used with this layer. The style specifies an attribute of place and the layer is: cite:lines
My reading of the docs is that only features from the "points" layer should be considered, but my reading of the error message is a "lines" feature was used and found to not have a 'place' attribute. Am I misunderstanding the syntax?
On a side note, my entire css file is 3KB and the generated sld file is 55KB and the generated SLD looks correct:
<sld:FeatureTypeName>points</sld:FeatureTypeName>
<sld:Rule>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:Literal>state</ogc:Literal>
<ogc:PropertyName>place</ogc:PropertyName>
</ogc:PropertyIsEqualTo>
</ogc:Filter>