Guest User

sld

a guest
Apr 13th, 2018
90
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="UTF-8"?><sld:StyledLayerDescriptor xmlns="http://www.opengis.net/sld" xmlns:sld="http://www.opengis.net/sld" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" version="1.0.0">
  2. <sld:NamedLayer>
  3. <sld:Name>Default Styler</sld:Name>
  4. <sld:UserStyle>
  5. <sld:Name>Default Styler</sld:Name>
  6. <sld:FeatureTypeStyle>
  7. <sld:Rule>
  8. <sld:Title>(A || B) AND vehicle</sld:Title>
  9. <ogc:Filter>
  10. <ogc:And>
  11. <ogc:Or>
  12. <ogc:PropertyIsEqualTo>
  13. <ogc:PropertyName>unit_status</ogc:PropertyName>
  14. <ogc:Literal>A</ogc:Literal>
  15. </ogc:PropertyIsEqualTo>
  16. <ogc:PropertyIsEqualTo>
  17. <ogc:PropertyName>unit_status</ogc:PropertyName>
  18. <ogc:Literal>B</ogc:Literal>
  19. </ogc:PropertyIsEqualTo>
  20. </ogc:Or>
  21. <ogc:Not>
  22. <ogc:PropertyIsNull>
  23. <ogc:PropertyName>vehicle_unit_detail_id</ogc:PropertyName>
  24. </ogc:PropertyIsNull>
  25. </ogc:Not>
  26. </ogc:And>
  27. </ogc:Filter>
  28. <sld:PointSymbolizer>
  29. <sld:Graphic>
  30. <sld:ExternalGraphic>
  31. <sld:OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://localhost:8080/geoserver/www/styles/images/vehicle_green.gif"/>
  32. <sld:Format>image/jpeg</sld:Format>
  33. </sld:ExternalGraphic>
  34. </sld:Graphic>
  35. </sld:PointSymbolizer>
  36. </sld:Rule>
  37. <sld:Rule>
  38. <sld:Title>(C || D || E || F) AND vehicle</sld:Title>
  39. <ogc:Filter>
  40. <ogc:And>
  41. <ogc:Or>
  42. <ogc:PropertyIsEqualTo>
  43. <ogc:PropertyName>unit_status</ogc:PropertyName>
  44. <ogc:Literal>C</ogc:Literal>
  45. </ogc:PropertyIsEqualTo>
  46. <ogc:PropertyIsEqualTo>
  47. <ogc:PropertyName>unit_status</ogc:PropertyName>
  48. <ogc:Literal>D</ogc:Literal>
  49. </ogc:PropertyIsEqualTo>
  50. <ogc:PropertyIsEqualTo>
  51. <ogc:PropertyName>unit_status</ogc:PropertyName>
  52. <ogc:Literal>E</ogc:Literal>
  53. </ogc:PropertyIsEqualTo>
  54. <ogc:PropertyIsEqualTo>
  55. <ogc:PropertyName>unit_status</ogc:PropertyName>
  56. <ogc:Literal>F</ogc:Literal>
  57. </ogc:PropertyIsEqualTo>
  58. </ogc:Or>
  59. <ogc:Not>
  60. <ogc:PropertyIsNull>
  61. <ogc:PropertyName>vehicle_unit_detail_id</ogc:PropertyName>
  62. </ogc:PropertyIsNull>
  63. </ogc:Not>
  64. </ogc:And>
  65. </ogc:Filter>
  66. <sld:PointSymbolizer>
  67. <sld:Graphic>
  68. <sld:ExternalGraphic>
  69. <sld:OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://localhost:8080/geoserver/www/styles/images/vehicle_red.gif"/>
  70. <sld:Format>image/jpeg</sld:Format>
  71. </sld:ExternalGraphic>
  72. </sld:Graphic>
  73. </sld:PointSymbolizer>
  74. </sld:Rule>
  75. <sld:Rule>
  76. <sld:Title>!(A || B || C || D || E || F) AND vehicle</sld:Title>
  77. <ogc:Filter>
  78. <ogc:And>
  79. <ogc:PropertyIsNotEqualTo>
  80. <ogc:PropertyName>unit_status</ogc:PropertyName>
  81. <ogc:Literal>A</ogc:Literal>
  82. </ogc:PropertyIsNotEqualTo>
  83. <ogc:PropertyIsNotEqualTo>
  84. <ogc:PropertyName>unit_status</ogc:PropertyName>
  85. <ogc:Literal>B</ogc:Literal>
  86. </ogc:PropertyIsNotEqualTo>
  87. <ogc:PropertyIsNotEqualTo>
  88. <ogc:PropertyName>unit_status</ogc:PropertyName>
  89. <ogc:Literal>C</ogc:Literal>
  90. </ogc:PropertyIsNotEqualTo>
  91. <ogc:PropertyIsNotEqualTo>
  92. <ogc:PropertyName>unit_status</ogc:PropertyName>
  93. <ogc:Literal>D</ogc:Literal>
  94. </ogc:PropertyIsNotEqualTo>
  95. <ogc:PropertyIsNotEqualTo>
  96. <ogc:PropertyName>unit_status</ogc:PropertyName>
  97. <ogc:Literal>E</ogc:Literal>
  98. </ogc:PropertyIsNotEqualTo>
  99. <ogc:PropertyIsNotEqualTo>
  100. <ogc:PropertyName>unit_status</ogc:PropertyName>
  101. <ogc:Literal>F</ogc:Literal>
  102. </ogc:PropertyIsNotEqualTo>
  103. <ogc:Not>
  104. <ogc:PropertyIsNull>
  105. <ogc:PropertyName>vehicle_unit_detail_id</ogc:PropertyName>
  106. </ogc:PropertyIsNull>
  107. </ogc:Not>
  108. </ogc:And>
  109. </ogc:Filter>
  110. <sld:PointSymbolizer>
  111. <sld:Graphic>
  112. <sld:ExternalGraphic>
  113. <sld:OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://localhost:8080/geoserver/www/styles/images/vehicle_blue.gif"/>
  114. <sld:Format>image/jpeg</sld:Format>
  115. </sld:ExternalGraphic>
  116. </sld:Graphic>
  117. </sld:PointSymbolizer>
  118. </sld:Rule>
  119. <sld:Rule>
  120. <sld:Title>(A || B) AND !vehicle AND service = F</sld:Title>
  121. <ogc:Filter>
  122. <ogc:And>
  123. <ogc:Or>
  124. <ogc:PropertyIsEqualTo>
  125. <ogc:PropertyName>unit_status</ogc:PropertyName>
  126. <ogc:Literal>A</ogc:Literal>
  127. </ogc:PropertyIsEqualTo>
  128. <ogc:PropertyIsEqualTo>
  129. <ogc:PropertyName>unit_status</ogc:PropertyName>
  130. <ogc:Literal>B</ogc:Literal>
  131. </ogc:PropertyIsEqualTo>
  132. </ogc:Or>
  133. <ogc:PropertyIsNull>
  134. <ogc:PropertyName>vehicle_unit_detail_id</ogc:PropertyName>
  135. </ogc:PropertyIsNull>
  136. <ogc:PropertyIsEqualTo>
  137. <ogc:PropertyName>service</ogc:PropertyName>
  138. <ogc:Literal>F</ogc:Literal>
  139. </ogc:PropertyIsEqualTo>
  140. </ogc:And>
  141. </ogc:Filter>
  142. <sld:PointSymbolizer>
  143. <sld:Graphic>
  144. <sld:ExternalGraphic>
  145. <sld:OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://localhost:8080/geoserver/www/styles/images/L_GREEN.GIF"/>
  146. <sld:Format>image/jpeg</sld:Format>
  147. </sld:ExternalGraphic>
  148. </sld:Graphic>
  149. </sld:PointSymbolizer>
  150. </sld:Rule>
  151. <sld:Rule>
  152. <sld:Title>(C || D || E || F) AND !vehicle AND service = F</sld:Title>
  153. <ogc:Filter>
  154. <ogc:And>
  155. <ogc:Or>
  156. <ogc:PropertyIsEqualTo>
  157. <ogc:PropertyName>unit_status</ogc:PropertyName>
  158. <ogc:Literal>C</ogc:Literal>
  159. </ogc:PropertyIsEqualTo>
  160. <ogc:PropertyIsEqualTo>
  161. <ogc:PropertyName>unit_status</ogc:PropertyName>
  162. <ogc:Literal>D</ogc:Literal>
  163. </ogc:PropertyIsEqualTo>
  164. <ogc:PropertyIsEqualTo>
  165. <ogc:PropertyName>unit_status</ogc:PropertyName>
  166. <ogc:Literal>E</ogc:Literal>
  167. </ogc:PropertyIsEqualTo>
  168. <ogc:PropertyIsEqualTo>
  169. <ogc:PropertyName>unit_status</ogc:PropertyName>
  170. <ogc:Literal>F</ogc:Literal>
  171. </ogc:PropertyIsEqualTo>
  172. </ogc:Or>
  173. <ogc:PropertyIsNull>
  174. <ogc:PropertyName>vehicle_unit_detail_id</ogc:PropertyName>
  175. </ogc:PropertyIsNull>
  176. <ogc:PropertyIsEqualTo>
  177. <ogc:PropertyName>service</ogc:PropertyName>
  178. <ogc:Literal>F</ogc:Literal>
  179. </ogc:PropertyIsEqualTo>
  180. </ogc:And>
  181. </ogc:Filter>
  182. <sld:PointSymbolizer>
  183. <sld:Graphic>
  184. <sld:ExternalGraphic>
  185. <sld:OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://localhost:8080/geoserver/www/styles/images/L_RED.GIF"/>
  186. <sld:Format>image/jpeg</sld:Format>
  187. </sld:ExternalGraphic>
  188. </sld:Graphic>
  189. </sld:PointSymbolizer>
  190. </sld:Rule>
  191. <sld:Rule>
  192. <sld:Title>!(A || B || C || D || E || F) AND !vehicle AND service = F</sld:Title>
  193. <ogc:Filter>
  194. <ogc:And>
  195. <ogc:PropertyIsNotEqualTo>
  196. <ogc:PropertyName>unit_status</ogc:PropertyName>
  197. <ogc:Literal>A</ogc:Literal>
  198. </ogc:PropertyIsNotEqualTo>
  199. <ogc:PropertyIsNotEqualTo>
  200. <ogc:PropertyName>unit_status</ogc:PropertyName>
  201. <ogc:Literal>B</ogc:Literal>
  202. </ogc:PropertyIsNotEqualTo>
  203. <ogc:PropertyIsNotEqualTo>
  204. <ogc:PropertyName>unit_status</ogc:PropertyName>
  205. <ogc:Literal>C</ogc:Literal>
  206. </ogc:PropertyIsNotEqualTo>
  207. <ogc:PropertyIsNotEqualTo>
  208. <ogc:PropertyName>unit_status</ogc:PropertyName>
  209. <ogc:Literal>D</ogc:Literal>
  210. </ogc:PropertyIsNotEqualTo>
  211. <ogc:PropertyIsNotEqualTo>
  212. <ogc:PropertyName>unit_status</ogc:PropertyName>
  213. <ogc:Literal>E</ogc:Literal>
  214. </ogc:PropertyIsNotEqualTo>
  215. <ogc:PropertyIsNotEqualTo>
  216. <ogc:PropertyName>unit_status</ogc:PropertyName>
  217. <ogc:Literal>F</ogc:Literal>
  218. </ogc:PropertyIsNotEqualTo>
  219. <ogc:PropertyIsNull>
  220. <ogc:PropertyName>vehicle_unit_detail_id</ogc:PropertyName>
  221. </ogc:PropertyIsNull>
  222. <ogc:PropertyIsEqualTo>
  223. <ogc:PropertyName>service</ogc:PropertyName>
  224. <ogc:Literal>F</ogc:Literal>
  225. </ogc:PropertyIsEqualTo>
  226. </ogc:And>
  227. </ogc:Filter>
  228. <sld:PointSymbolizer>
  229. <sld:Graphic>
  230. <sld:ExternalGraphic>
  231. <sld:OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://localhost:8080/geoserver/www/styles/images/L_BLUE.GIF"/>
  232. <sld:Format>image/jpeg</sld:Format>
  233. </sld:ExternalGraphic>
  234. </sld:Graphic>
  235. </sld:PointSymbolizer>
  236. </sld:Rule>
  237. <sld:Rule>
  238. <sld:Title>(A || B) AND service = N</sld:Title>
  239. <ogc:Filter>
  240. <ogc:And>
  241. <ogc:Or>
  242. <ogc:PropertyIsEqualTo>
  243. <ogc:PropertyName>unit_status</ogc:PropertyName>
  244. <ogc:Literal>A</ogc:Literal>
  245. </ogc:PropertyIsEqualTo>
  246. <ogc:PropertyIsEqualTo>
  247. <ogc:PropertyName>unit_status</ogc:PropertyName>
  248. <ogc:Literal>B</ogc:Literal>
  249. </ogc:PropertyIsEqualTo>
  250. </ogc:Or>
  251. <ogc:PropertyIsEqualTo>
  252. <ogc:PropertyName>service</ogc:PropertyName>
  253. <ogc:Literal>N</ogc:Literal>
  254. </ogc:PropertyIsEqualTo>
  255. </ogc:And>
  256. </ogc:Filter>
  257. <sld:PointSymbolizer>
  258. <sld:Graphic>
  259. <sld:ExternalGraphic>
  260. <sld:OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://localhost:8080/geoserver/www/styles/images/4.gif"/>
  261. <sld:Format>image/jpeg</sld:Format>
  262. </sld:ExternalGraphic>
  263. </sld:Graphic>
  264. </sld:PointSymbolizer>
  265. </sld:Rule>
  266. <sld:Rule>
  267. <sld:Title>(C || D || E || F) AND service = N</sld:Title>
  268. <ogc:Filter>
  269. <ogc:And>
  270. <ogc:Or>
  271. <ogc:PropertyIsEqualTo>
  272. <ogc:PropertyName>unit_status</ogc:PropertyName>
  273. <ogc:Literal>C</ogc:Literal>
  274. </ogc:PropertyIsEqualTo>
  275. <ogc:PropertyIsEqualTo>
  276. <ogc:PropertyName>unit_status</ogc:PropertyName>
  277. <ogc:Literal>D</ogc:Literal>
  278. </ogc:PropertyIsEqualTo>
  279. <ogc:PropertyIsEqualTo>
  280. <ogc:PropertyName>unit_status</ogc:PropertyName>
  281. <ogc:Literal>E</ogc:Literal>
  282. </ogc:PropertyIsEqualTo>
  283. <ogc:PropertyIsEqualTo>
  284. <ogc:PropertyName>unit_status</ogc:PropertyName>
  285. <ogc:Literal>F</ogc:Literal>
  286. </ogc:PropertyIsEqualTo>
  287. </ogc:Or>
  288. <ogc:PropertyIsEqualTo>
  289. <ogc:PropertyName>service</ogc:PropertyName>
  290. <ogc:Literal>N</ogc:Literal>
  291. </ogc:PropertyIsEqualTo>
  292. </ogc:And>
  293. </ogc:Filter>
  294. <sld:PointSymbolizer>
  295. <sld:Graphic>
  296. <sld:ExternalGraphic>
  297. <sld:OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://localhost:8080/geoserver/www/styles/images/3.gif"/>
  298. <sld:Format>image/jpeg</sld:Format>
  299. </sld:ExternalGraphic>
  300. </sld:Graphic>
  301. </sld:PointSymbolizer>
  302. </sld:Rule>
  303. <sld:Rule>
  304. <sld:Title>!(A || B || C || D || E || F) AND service = N</sld:Title>
  305. <ogc:Filter>
  306. <ogc:And>
  307. <ogc:PropertyIsNotEqualTo>
  308. <ogc:PropertyName>unit_status</ogc:PropertyName>
  309. <ogc:Literal>A</ogc:Literal>
  310. </ogc:PropertyIsNotEqualTo>
  311. <ogc:PropertyIsNotEqualTo>
  312. <ogc:PropertyName>unit_status</ogc:PropertyName>
  313. <ogc:Literal>B</ogc:Literal>
  314. </ogc:PropertyIsNotEqualTo>
  315. <ogc:PropertyIsNotEqualTo>
  316. <ogc:PropertyName>unit_status</ogc:PropertyName>
  317. <ogc:Literal>C</ogc:Literal>
  318. </ogc:PropertyIsNotEqualTo>
  319. <ogc:PropertyIsNotEqualTo>
  320. <ogc:PropertyName>unit_status</ogc:PropertyName>
  321. <ogc:Literal>D</ogc:Literal>
  322. </ogc:PropertyIsNotEqualTo>
  323. <ogc:PropertyIsNotEqualTo>
  324. <ogc:PropertyName>unit_status</ogc:PropertyName>
  325. <ogc:Literal>E</ogc:Literal>
  326. </ogc:PropertyIsNotEqualTo>
  327. <ogc:PropertyIsNotEqualTo>
  328. <ogc:PropertyName>unit_status</ogc:PropertyName>
  329. <ogc:Literal>F</ogc:Literal>
  330. </ogc:PropertyIsNotEqualTo>
  331. <ogc:PropertyIsEqualTo>
  332. <ogc:PropertyName>service</ogc:PropertyName>
  333. <ogc:Literal>N</ogc:Literal>
  334. </ogc:PropertyIsEqualTo>
  335. </ogc:And>
  336. </ogc:Filter>
  337. <sld:PointSymbolizer>
  338. <sld:Graphic>
  339. <sld:ExternalGraphic>
  340. <sld:OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://localhost:8080/geoserver/www/styles/images/5.gif"/>
  341. <sld:Format>image/jpeg</sld:Format>
  342. </sld:ExternalGraphic>
  343. </sld:Graphic>
  344. </sld:PointSymbolizer>
  345. </sld:Rule>
  346. <sld:Rule>
  347. <ogc:Filter>
  348. <ogc:PropertyIsEqualTo>
  349. <ogc:Function name="env">
  350. <ogc:Literal>labels</ogc:Literal>
  351. <ogc:Literal>true</ogc:Literal>
  352. </ogc:Function>
  353. <ogc:Literal>true</ogc:Literal>
  354. </ogc:PropertyIsEqualTo>
  355. </ogc:Filter>
  356. <sld:MaxScaleDenominator>2.0E7</sld:MaxScaleDenominator>
  357. <sld:TextSymbolizer>
  358. <sld:Label>
  359. <ogc:PropertyName>unit_id</ogc:PropertyName>
  360. </sld:Label>
  361. <sld:Font>
  362. <sld:CssParameter name="font-family">Trebuchet MS Bold</sld:CssParameter>
  363. <sld:CssParameter name="font-size">12</sld:CssParameter>
  364. <sld:CssParameter name="font-style">normal</sld:CssParameter>
  365. <sld:CssParameter name="font-weight">normal</sld:CssParameter>
  366. </sld:Font>
  367. <sld:LabelPlacement>
  368. <sld:PointPlacement>
  369. <sld:AnchorPoint>
  370. <sld:AnchorPointX>1.5</sld:AnchorPointX>
  371. <sld:AnchorPointY>0.5</sld:AnchorPointY>
  372. </sld:AnchorPoint>
  373. </sld:PointPlacement>
  374. </sld:LabelPlacement>
  375. <sld:Halo>
  376. <sld:Radius>0.5</sld:Radius>
  377. <sld:Fill>
  378. <sld:CssParameter name="fill">#000000</sld:CssParameter>
  379. </sld:Fill>
  380. </sld:Halo>
  381. <sld:Fill>
  382. <sld:CssParameter name="fill">#ffffff</sld:CssParameter>
  383. </sld:Fill>
  384. </sld:TextSymbolizer>
  385. <sld:TextSymbolizer>
  386. <sld:Label>
  387. <ogc:PropertyName>location_name</ogc:PropertyName>
  388. </sld:Label>
  389. <sld:Font>
  390. <sld:CssParameter name="font-family">Trebuchet MS Bold</sld:CssParameter>
  391. <sld:CssParameter name="font-size">12</sld:CssParameter>
  392. <sld:CssParameter name="font-style">normal</sld:CssParameter>
  393. <sld:CssParameter name="font-weight">normal</sld:CssParameter>
  394. </sld:Font>
  395. <sld:LabelPlacement>
  396. <sld:PointPlacement>
  397. <sld:AnchorPoint>
  398. <sld:AnchorPointX>1.2</sld:AnchorPointX>
  399. <sld:AnchorPointY>2</sld:AnchorPointY>
  400. </sld:AnchorPoint>
  401. </sld:PointPlacement>
  402. </sld:LabelPlacement>
  403. <sld:Halo>
  404. <sld:Radius>0.5</sld:Radius>
  405. <sld:Fill>
  406. <sld:CssParameter name="fill">#000000</sld:CssParameter>
  407. </sld:Fill>
  408. </sld:Halo>
  409. <sld:Fill>
  410. <sld:CssParameter name="fill">#ffffff</sld:CssParameter>
  411. </sld:Fill>
  412. </sld:TextSymbolizer>
  413. </sld:Rule>
  414. </sld:FeatureTypeStyle>
  415. </sld:UserStyle>
  416. </sld:NamedLayer>
  417. </sld:StyledLayerDescriptor>
RAW Paste Data