/[schmitzm]/trunk/src/skrueger/geotools/StyledLayerUtil.java
ViewVC logotype

Diff of /trunk/src/skrueger/geotools/StyledLayerUtil.java

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

revision 517 by alfonx, Thu Nov 12 10:12:39 2009 UTC revision 533 by alfonx, Thu Nov 19 17:27:01 2009 UTC
# Line 249  public class StyledLayerUtil { Line 249  public class StyledLayerUtil {
249          public static AttributeMetadataMap getVisibleAttributeMetaData(          public static AttributeMetadataMap getVisibleAttributeMetaData(
250                          final AttributeMetadataMap amdMap, final boolean visible) {                          final AttributeMetadataMap amdMap, final boolean visible) {
251    
252                  final AttributeMetadataMap filteredMap = new AttributeMetadataMap();                  final AttributeMetadataMap filteredMap = new AttributeMetadataMap(amdMap.getLanguages());
253                  for (final AttributeMetadata amd : amdMap.values())                  for (final AttributeMetadata amd : amdMap.values())
254                          if (amd.isVisible() == visible)                          if (amd.isVisible() == visible)
255                                  filteredMap.put(amd.getName(), amd);                                  filteredMap.put(amd.getName(), amd);
# Line 1145  public class StyledLayerUtil { Line 1145  public class StyledLayerUtil {
1145          public static boolean isStyleable(          public static boolean isStyleable(
1146                          final StyledRasterInterface<?> styledRaster) {                          final StyledRasterInterface<?> styledRaster) {
1147                  final ColorModel colorModel = getColorModel(styledRaster);                  final ColorModel colorModel = getColorModel(styledRaster);
1148                    
1149                  LOGGER.info("The colormodel of " + styledRaster.getTitle() + " is "  //              LOGGER.info("The colormodel of " + styledRaster.getTitle() + " is "
1150                                  + colorModel.getClass().getSimpleName());  //                              + colorModel != null ? colorModel.getClass().getSimpleName() : "NULL");
1151    
1152                  if (colorModel == null)                  if (colorModel == null)
1153                          return true;                          return true;
# Line 1189  public class StyledLayerUtil { Line 1189  public class StyledLayerUtil {
1189                                                    
1190                          return true;                          return true;
1191                                                    
1192                  } else return false;                  } else {
1193                            return false;
1194                    }
1195          }          }
1196    
1197  }  }

Legend:
Removed from v.517  
changed lines
  Added in v.533

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26