/[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

revision 769 by alfonx, Sun Mar 21 11:02:34 2010 UTC revision 770 by alfonx, Sun Mar 21 11:36:11 2010 UTC
# Line 38  import org.geotools.data.FeatureSource; Line 38  import org.geotools.data.FeatureSource;
38  import org.geotools.data.collection.CollectionDataStore;  import org.geotools.data.collection.CollectionDataStore;
39  import org.geotools.data.store.EmptyFeatureCollection;  import org.geotools.data.store.EmptyFeatureCollection;
40  import org.geotools.feature.FeatureCollection;  import org.geotools.feature.FeatureCollection;
41    import org.geotools.feature.NameImpl;
42  import org.geotools.feature.collection.SubFeatureCollection;  import org.geotools.feature.collection.SubFeatureCollection;
43  import org.geotools.styling.Style;  import org.geotools.styling.Style;
44  import org.opengis.feature.simple.SimpleFeature;  import org.opengis.feature.simple.SimpleFeature;
# Line 319  public class StyledFeatureCollection Line 320  public class StyledFeatureCollection
320                  for (int i = 0; i < ftype.getAttributeCount(); i++) {                  for (int i = 0; i < ftype.getAttributeCount(); i++) {
321                          AttributeDescriptor aDesc = ftype.getAttributeDescriptors().get(i);                          AttributeDescriptor aDesc = ftype.getAttributeDescriptors().get(i);
322                          if (aDesc != ftype.getGeometryDescriptor())                          if (aDesc != ftype.getGeometryDescriptor())
323                                  metaDataMap.put(aDesc.getName(), new AttributeMetadataImpl(aDesc.getName(),                                  metaDataMap.put(aDesc.getName(), new AttributeMetadataImpl( new NameImpl( aDesc.getName().getNamespaceURI(), aDesc.getName().getLocalPart()),
324                                                  true, // visible                                                  true, // visible
325                                                  new Translation(aDesc.getLocalName()), // Column name                                                  new Translation(aDesc.getLocalName()), // Column name
326                                                  new Translation(aDesc.getLocalName()), // description                                                  new Translation(aDesc.getLocalName()), // description

Legend:
Removed from v.769  
changed lines
  Added in v.770

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26