Oracle神諭

            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            284 隨筆 :: 9 文章 :: 106 評論 :: 0 Trackbacks


          SLD(Style Layer Descriptor)樣式層描述符

          基于XML語言

          創建樣式,相對比較簡單。
          1. SLD Hello World
          1.1 Create the SLD File----OK
          1.2 Load Your New SLD  ----OK
          1.3 Give a FeatureType Your New SLD---OK
          View the Style---OK


          2. SLD Text Symbolizers 文本符號----OK 存在問題:使用中國地圖顯示異常,請求樣式不適用于圖層,進一步操作??????
          Modify the SLD File to Include Text Symbolizers
          <Label>: What label to give each rendered object. Here we use an attribute of the object, "TYPE". The property name is case sensitive. 標簽
          <Font>: The font and size the label will have. 字體
          <Fill>: The color that we will fill the font with 填充
          3. Outlines and Filters -----OK
          <ogc:Filter>
           <ogc:Not>
            <ogc:PropertyIsEqualTo>
             <ogc:PropertyName>TYPE</ogc:PropertyName>
             <ogc:Literal>highway</ogc:Literal>
            </ogc:PropertyIsEqualTo>
           </ogc:Not>
          </ogc:Filter>

          <ogc:PropertyIsLessThan>
          <ogc:PropertyIsGreaterThan>

          The halo is essentially a buffer outline of the text.  halo文本的暈環

          4. What SLDs are, a text approach
          SLD (Styled Layer Descriptor) is a specification put out by the OGC, that defines an XML language to allow users to define symbolization of their feature data. It was written to be a complement to their Web Map Service (WMS) specification, by extending it to allow users a way to define how they want to visualize their features.

          Then there are 5 types of symbolizers you can use to actually portray the features,
          (1)line,  線
          (2)polygon, 多邊形
          A Polygon Symbolizer has a geometry and a stroke, just like a line symbolizer, but also has a 'fill', defining what color to put in the center. Can be straight color, or a graphic, of varying opacity and the like.
          (3)point, 點
          A point symbolizer is made up of a geometry and a Graphic. A graphic is made of either an External Graphic, or a Mark, and has an opacity, a size, and a rotation. Opacity is the same as for the other symbolizers, Size is the absolute size of the graphic in pixels (default is to be dynamic), and rotation defines the rotation of the graphic in the clockwise dimension in decimal degrees. A Mark has a well known name (like square, circle, star, ect.), and a fill and a stroke. An External Graphic uses an xlink to refer to the location of an resource on the web to use to represent the point.
          (4)text, 文本
          A text symbolizer is made up of a Geometry, a Label, a Font, a LabelPlacement, a Halo, and a Fill.
          (5)and raster. 光柵
          A raster symbolizer consists of a Geometry(幾何學), opacity(透明度), channel selection(路線選擇), overlap behavior(交疊事件), color map(顏色地圖), contrast enhancement(對照增強), shaded relief(陰影浮雕) and image outline(圖像輪廓).


           

          posted on 2009-02-21 12:07 java世界暢談 閱讀(859) 評論(0)  編輯  收藏 所屬分類: GIS

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 兴安县| 丁青县| 望都县| 渝北区| 伊吾县| 政和县| 拉萨市| 长垣县| 龙口市| 襄城县| 巨野县| 桂东县| 保康县| 沧州市| 梓潼县| 崇仁县| 五原县| 岑溪市| 武乡县| 淄博市| 陆良县| 广德县| 正镶白旗| 班玛县| 嘉荫县| 宜章县| 甘肃省| 沙河市| 铜陵市| 合阳县| 务川| 五峰| 开远市| 泽库县| 西盟| 长沙市| 县级市| 宁陕县| 仪陇县| 梅河口市| 海安县|