/[schmitzm]/branches/2.1/src/skrueger/geotools/labelsearch/LabelSearch.java
ViewVC logotype

Diff of /branches/2.1/src/skrueger/geotools/labelsearch/LabelSearch.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 341 by alfonx, Mon Aug 31 10:16:40 2009 UTC revision 417 by alfonx, Fri Sep 25 16:34:10 2009 UTC
# Line 118  public class LabelSearch { Line 118  public class LabelSearch {
118                                  if (!ml.isVisible())                                  if (!ml.isVisible())
119                                          continue;                                          continue;
120    
121                                  final List<TextSymbolizer> allTS = StylingUtil.getTextSymbolizers(ml                                  final List<TextSymbolizer> allTS = StylingUtil.getVisibleTextSymbolizers(ml
122                                                  .getStyle());                                                  .getStyle());
123                                  if (allTS.size() == 0) {                                  if (allTS.size() == 0) {
124                                          // A layer without any TextSymbolizer doesn't have to be                                          // A layer without any TextSymbolizer doesn't have to be
125                                          // searched any more.                                          // searched any more.
126                                          continue;                                          continue;
127                                  }                                  }
128                                    
                                 // 26 CAST!  
129                                  final FeatureSource<SimpleFeatureType, SimpleFeature> featureSource = (FeatureSource<SimpleFeatureType, SimpleFeature>) ml.getFeatureSource();                                  final FeatureSource<SimpleFeatureType, SimpleFeature> featureSource = (FeatureSource<SimpleFeatureType, SimpleFeature>) ml.getFeatureSource();
130                                                                    
131                                  final String typeName = featureSource.getSchema()                                  final String typeName = featureSource.getSchema()
# Line 158  public class LabelSearch { Line 157  public class LabelSearch {
157                                          if (ts == null)                                          if (ts == null)
158                                                  continue;                                                  continue;
159    
160                                            // TODO Evaluate the Rule that belongs to the TextSymbolizer against the feature...
161                                          final AttributeDescriptor labelAttribute = getLabelAttribute(ts, featureSource.getSchema());                                          final AttributeDescriptor labelAttribute = getLabelAttribute(ts, featureSource.getSchema());
162    
163                                          if (labelAttribute == null) {                                          if (labelAttribute == null) {

Legend:
Removed from v.341  
changed lines
  Added in v.417

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26