示例#1
0
        public static pointsymbolizer createDefaultpointsymbolizer()
        {
            pointsymbolizer psym = new pointsymbolizer();

            psym.sign  = SymbolizerType.POINT;
            psym.label = "default";
            return(psym);
        }
示例#2
0
        public static RenderRule createDefaultRule(SymbolizerType symbolizertype, Color color)
        {
            switch (symbolizertype)
            {
            case SymbolizerType.POINT:
                pointsymbolizer pointsym = pointsymbolizer.createDefaultpointsymbolizer();
                pointsym.color = color;
                return(new RenderRule(null, pointsym, new textsymbolizer()));

            case SymbolizerType.LINE:
                linesymbolizer linesym = linesymbolizer.createdefaultlinesymbolizer();
                linesym.color = color;
                return(new RenderRule(null, linesym, new textsymbolizer()));

            case SymbolizerType.POLYGON:
                polygonsymbolizer polygonsym = polygonsymbolizer.createdefalutpolygonsymbolizer();
                polygonsym.fillcolor = color;
                //polygonsym.strokecolor = color;
                polygonsym.strokecolor = Colors.Black;
                return(new RenderRule(null, polygonsym, new textsymbolizer()));
            }
            return(null);
        }