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

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

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

branches/1.0-gt2-2.6/src/skrueger/geotools/StyledFeatureCollection.java revision 426 by alfonx, Fri Oct 2 17:20:00 2009 UTC trunk/src/skrueger/geotools/StyledFeatureCollection.java revision 685 by alfonx, Wed Feb 10 15:04:02 2010 UTC
# Line 46  import org.opengis.feature.type.Attribut Line 46  import org.opengis.feature.type.Attribut
46  import org.opengis.filter.Filter;  import org.opengis.filter.Filter;
47    
48  import schmitzm.geotools.feature.FeatureUtil;  import schmitzm.geotools.feature.FeatureUtil;
49  import skrueger.AttributeMetaData;  import skrueger.AttributeMetadata;
50  import skrueger.i8n.Translation;  import skrueger.i8n.Translation;
51    
52  /**  /**
# Line 317  public class StyledFeatureCollection Line 317  public class StyledFeatureCollection
317                  AttributeMetadataMap metaDataMap = new AttributeMetadataMap();                  AttributeMetadataMap metaDataMap = new AttributeMetadataMap();
318                  SimpleFeatureType ftype = fc.getSchema();                  SimpleFeatureType ftype = fc.getSchema();
319                  for (int i = 0; i < ftype.getAttributeCount(); i++) {                  for (int i = 0; i < ftype.getAttributeCount(); i++) {
320                          AttributeDescriptor aType = ftype.getAttributeDescriptors().get(i);                          AttributeDescriptor aDesc = ftype.getAttributeDescriptors().get(i);
321                          if (aType != ftype.getGeometryDescriptor())                          if (aDesc != ftype.getGeometryDescriptor())
322                                  metaDataMap.put(i, new AttributeMetaData(i, // Column no.                                  metaDataMap.put(aDesc.getName(), new AttributeMetadata(aDesc.getName(),
323                                                  true, // visible                                                  true, // visible
324                                                  new Translation(aType.getLocalName()), // Column name                                                  new Translation(aDesc.getLocalName()), // Column name
325                                                  new Translation(), // description                                                  new Translation(aDesc.getLocalName()), // description
326                                                  "" // Unit                                                  "" // Unit
327                                  ));                                  ));
328                  }                  }

Legend:
Removed from v.426  
changed lines
  Added in v.685

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26