Revision 40799 branches/v02_desarrollo/libraries/sld/temp/org.gvsig.sldsupport.lib.impl/src/main/java/org/gvsig/sldsupport/impl/sld1_0_0/parsing/RuleElement.java
RuleElement.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import java.io.IOException; |
4 | 4 |
|
5 |
import org.gvsig.fmap.dal.exception.ReadException; |
|
5 | 6 |
import org.gvsig.sldsupport.exception.SLDReadException; |
6 | 7 |
import org.gvsig.sldsupport.impl.sld1_0_0.parsing.symbol.SymbolElement; |
7 | 8 |
import org.gvsig.sldsupport.impl.util.SLDUtils; |
... | ... | |
77 | 78 |
} |
78 | 79 |
// =================================== |
79 | 80 |
// =================================== |
80 |
/* |
|
81 |
* Text, Raster, MappedColor symbols not supported |
|
82 |
*/ |
|
83 | 81 |
if (SLDUtils.isStr(name, SLDTags.POINTSYMBOL) |
84 | 82 |
|| SLDUtils.isStr(name, SLDTags.POINTSYMBOLIZER) |
85 | 83 |
|| SLDUtils.isStr(name, SLDTags.LINESYMBOL) |
... | ... | |
91 | 89 |
resp.getSymbols().add(sym); |
92 | 90 |
break; |
93 | 91 |
} |
94 |
|
|
95 |
break; |
|
92 |
/* |
|
93 |
* Text, Raster, MappedColor symbols not supported |
|
94 |
*/ |
|
95 |
if (SLDUtils.isStr(name, SLDTags.TEXTSYMBOL) |
|
96 |
|| SLDUtils.isStr(name, SLDTags.TEXTSYMBOLIZER) |
|
97 |
|| SLDUtils.isStr(name, SLDTags.RASTERSYMBOL) |
|
98 |
|| SLDUtils.isStr(name, SLDTags.RASTERSYMBOLIZER) |
|
99 |
|| SLDUtils.isStr(name, SLDTags.MAPPEDCOLORSYMBOL) |
|
100 |
) { |
|
101 |
throw new SLDReadException("Unsupported symbol: " + name); |
|
102 |
} |
|
103 |
|
|
104 |
/* |
|
105 |
* Any other entity causes parsing error |
|
106 |
*/ |
|
107 |
throw new SLDReadException("Bad SLD file. Unexpected entity in Rule: " + name); |
|
108 |
|
|
96 | 109 |
case KXmlParser.END_TAG: |
97 | 110 |
break; |
98 | 111 |
case KXmlParser.TEXT: |
Also available in: Unified diff