1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
<Comment># Normal YAML highlighting:</Comment><br/>
<Key>_parts</Key><Key Points Operator>:</Key Points Operator><br/>
<Attribute> </Attribute><Key>srid</Key><Key Points Operator>:</Key Points Operator><Attribute> </Attribute><Alias>&srid</Alias><Attribute> "3857"</Attribute><br/>
<Comment> # YAML comment</Comment><br/>
<Attribute> </Attribute><Key>world</Key><Key Points Operator>:</Key Points Operator><Attribute> </Attribute><Alias>&world</Alias><br/>
<Attribute> </Attribute><Operator>-</Operator><Normal Text> </Normal Text><Integer>-180</Integer><br/>
<Attribute> </Attribute><Key>extents</Key><Key Points Operator>:</Key Points Operator><Attribute> </Attribute><Alias>&extents</Alias><br/>
<Attribute> </Attribute><Key>extent</Key><Key Points Operator>:</Key Points Operator><Attribute> </Attribute><Reference>*world</Reference><br/>
<Attribute> </Attribute><Key>srs-name</Key><Key Points Operator>:</Key Points Operator><Attribute> </Attribute><Reference>*srid</Reference><br/>
<Key>scale</Key><Key Points Operator>:</Key Points Operator><Attribute> </Attribute><Integer>1</Integer><br/>
<Key>interactivity</Key><Key Points Operator>:</Key Points Operator><Attribute> </Attribute><Boolean>false</Boolean><br/>
<Attribute></Attribute><br/>
<Key>Layer</Key><Key Points Operator>:</Key Points Operator><br/>
<Attribute> </Attribute><Operator>-</Operator><Normal Text> </Normal Text><Key>id</Key><Key Points Operator>:</Key Points Operator><Attribute> water-lines-low-zoom</Attribute><br/>
<Attribute> </Attribute><Key>geometry</Key><Key Points Operator>:</Key Points Operator><Attribute> linestring</Attribute><br/>
<Attribute> </Attribute><Key>geometry2</Key><Key Points Operator>:</Key Points Operator><Attribute> </Attribute><String>"string"</String><br/>
<Attribute> </Attribute><Key>Datasource</Key><Key Points Operator>:</Key Points Operator><br/>
<Attribute> </Attribute><Key><<</Key><Key Points Operator>:</Key Points Operator><Attribute> </Attribute><Reference>*osm2pgsql</Reference><br/>
<Key> table</Key><Key Points Operator>: </Key Points Operator><Literal/Folded Operator>|-</Literal/Folded Operator><br/>
<Normal Text> </Normal Text><Comment>-- Highlighting the table SQL by including PostgreSQL highlighting:</Comment><br/>
<Normal Text> (</Normal Text><Keyword>SELECT</Keyword><br/>
<Normal Text> way,</Normal Text><br/>
<Normal Text> </Normal Text><Comment>-- SQL comment</Comment><br/>
<Normal Text> waterway,</Normal Text><br/>
<Normal Text> </Normal Text><ControlFlow>CASE</ControlFlow><Normal Text> </Normal Text><ControlFlow>WHEN</ControlFlow><Normal Text> tags</Normal Text><Operator>-></Operator><Verbatim string>'intermittent</Verbatim string><String delimiter>'</String delimiter><Normal Text> </Normal Text><Operator Keyword>IN</Operator Keyword><Normal Text> (</Normal Text><Verbatim string>'yes</Verbatim string><String delimiter>'</String delimiter><Normal Text>)</Normal Text><br/>
<Normal Text> </Normal Text><Operator Keyword>OR</Operator Keyword><Normal Text> tags</Normal Text><Operator>-></Operator><Verbatim string>'seasonal</Verbatim string><String delimiter>'</String delimiter><Normal Text> </Normal Text><Operator Keyword>IN</Operator Keyword><Normal Text> (</Normal Text><Verbatim string>'yes</Verbatim string><String delimiter>'</String delimiter><Normal Text>, </Normal Text><Verbatim string>'spring</Verbatim string><String delimiter>'</String delimiter><Normal Text>, </Normal Text><Verbatim string>'summer</Verbatim string><String delimiter>'</String delimiter><Normal Text>, </Normal Text><Verbatim string>'autumn</Verbatim string><String delimiter>'</String delimiter><Normal Text>, </Normal Text><Verbatim string>'winter</Verbatim string><String delimiter>'</String delimiter><Normal Text>, </Normal Text><Verbatim string>'wet_season</Verbatim string><String delimiter>'</String delimiter><Normal Text>, </Normal Text><Verbatim string>'dry_season</Verbatim string><String delimiter>'</String delimiter><Normal Text>)</Normal Text><br/>
<Normal Text> </Normal Text><ControlFlow>THEN</ControlFlow><Normal Text> </Normal Text><Verbatim string>'yes</Verbatim string><String delimiter>'</String delimiter><Normal Text> </Normal Text><ControlFlow>ELSE</ControlFlow><Normal Text> </Normal Text><Verbatim string>'no</Verbatim string><String delimiter>'</String delimiter><Normal Text> </Normal Text><ControlFlow>END</ControlFlow><Normal Text> </Normal Text><Keyword>AS</Keyword><Normal Text> int_intermittent</Normal Text><br/>
<Normal Text> </Normal Text><Keyword>FROM</Keyword><Normal Text> planet_osm_line</Normal Text><br/>
<Normal Text> </Normal Text><Keyword>WHERE</Keyword><Normal Text> waterway </Normal Text><Operator>=</Operator><Normal Text> </Normal Text><Verbatim string>'river</Verbatim string><String delimiter>'</String delimiter><br/>
<Normal Text> ) </Normal Text><Keyword>AS</Keyword><Normal Text> water_lines_low_zoom</Normal Text><br/>
<Attribute> </Attribute><Key>properties</Key><Key Points Operator>:</Key Points Operator><br/>
<Attribute> </Attribute><Key>minzoom</Key><Key Points Operator>:</Key Points Operator><Attribute> </Attribute><Integer>8</Integer><Comment> # number</Comment><br/>
<Attribute> </Attribute><Key>maxzoom</Key><Key Points Operator>:</Key Points Operator><Attribute> </Attribute><Integer>11</Integer><Comment> # number</Comment><br/>
|