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

Diff of /trunk/src/skrueger/geotools/StyledFS.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 41  import javax.swing.JPanel; Line 41  import javax.swing.JPanel;
41  import org.apache.log4j.Logger;  import org.apache.log4j.Logger;
42  import org.geotools.data.FeatureSource;  import org.geotools.data.FeatureSource;
43  import org.geotools.feature.FeatureCollection;  import org.geotools.feature.FeatureCollection;
44    import org.geotools.feature.NameImpl;
45  import org.geotools.styling.Style;  import org.geotools.styling.Style;
46  import org.opengis.feature.simple.SimpleFeature;  import org.opengis.feature.simple.SimpleFeature;
47  import org.opengis.feature.simple.SimpleFeatureType;  import org.opengis.feature.simple.SimpleFeatureType;
# Line 259  public class StyledFS implements StyledF Line 260  public class StyledFS implements StyledF
260                          for (int i = 1; i < fs.getSchema().getAttributeCount(); i++) {                          for (int i = 1; i < fs.getSchema().getAttributeCount(); i++) {
261                                  AttributeDescriptor attDesc = fs.getSchema().getDescriptor(i);                                  AttributeDescriptor attDesc = fs.getSchema().getDescriptor(i);
262    
263                                  AttributeMetadataImpl attMetaData = new AttributeMetadataImpl(attDesc                                  AttributeMetadataImpl attMetaData = new AttributeMetadataImpl( new NameImpl(attDesc
264                                                  .getName(), map.getLanguages());                                                  .getName().getNamespaceURI(), attDesc
265                                                    .getName().getLocalPart()), map.getLanguages());
266                                  map.put(attDesc.getName(), attMetaData);                                  map.put(attDesc.getName(), attMetaData);
267                          }                          }
268                  }                  }

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26