/[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 454 by alfonx, Sun Oct 11 16:12:05 2009 UTC revision 464 by alfonx, Tue Oct 13 13:22:31 2009 UTC
# Line 52  import org.opengis.referencing.crs.Coord Line 52  import org.opengis.referencing.crs.Coord
52    
53  import schmitzm.geotools.io.GeoImportUtil;  import schmitzm.geotools.io.GeoImportUtil;
54  import schmitzm.geotools.styling.StylingUtil;  import schmitzm.geotools.styling.StylingUtil;
55  import skrueger.AttributeMetaData;  import skrueger.AttributeMetadata;
56  import skrueger.i8n.Translation;  import skrueger.i8n.Translation;
57    
58  import com.vividsolutions.jts.geom.Envelope;  import com.vividsolutions.jts.geom.Envelope;
# Line 249  public class StyledFS implements StyledF Line 249  public class StyledFS implements StyledF
249    
250                          // Leaving out the first one, it will be the_geom                          // Leaving out the first one, it will be the_geom
251                          for (int i = 1; i < fs.getSchema().getAttributeCount(); i++) {                          for (int i = 1; i < fs.getSchema().getAttributeCount(); i++) {
252                                  AttributeDescriptor att = fs.getSchema().getDescriptor(i);                                  AttributeDescriptor attDesc = fs.getSchema().getDescriptor(i);
253    
254                                  AttributeMetaData attMetaData = new AttributeMetaData(i, att                                  AttributeMetadata attMetaData = new AttributeMetadata(attDesc.getName());
255                                                  .getLocalName());                                  map.put(attDesc.getName(), attMetaData);
                                 map.put(i, attMetaData);  
256                          }                          }
257                  }                  }
258                  return map;                  return map;

Legend:
Removed from v.454  
changed lines
  Added in v.464

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26