/[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 694 by alfonx, Fri Feb 12 11:28:41 2010 UTC revision 769 by alfonx, Sun Mar 21 11:02:34 2010 UTC
# Line 50  import org.opengis.referencing.crs.Coord Line 50  import org.opengis.referencing.crs.Coord
50    
51  import schmitzm.geotools.io.GeoImportUtil;  import schmitzm.geotools.io.GeoImportUtil;
52  import schmitzm.geotools.styling.StylingUtil;  import schmitzm.geotools.styling.StylingUtil;
53  import skrueger.AttributeMetadata;  import skrueger.AttributeMetadataImpl;
54  import skrueger.i8n.Translation;  import skrueger.i8n.Translation;
55    
56  import com.vividsolutions.jts.geom.Envelope;  import com.vividsolutions.jts.geom.Envelope;
# Line 253  public class StyledFS implements StyledF Line 253  public class StyledFS implements StyledF
253          public AttributeMetadataMap getAttributeMetaDataMap() {          public AttributeMetadataMap getAttributeMetaDataMap() {
254                  if (map == null) {                  if (map == null) {
255    
256                          map = new AttributeMetadataMap(new String[] { Translation                          map = new AttributeMetadataImplMap();
                                         .getActiveLang() });  
257    
258                          // Leaving out the first one, it will be the_geom                          // Leaving out the first one, it will be the_geom
259                          for (int i = 1; i < fs.getSchema().getAttributeCount(); i++) {                          for (int i = 1; i < fs.getSchema().getAttributeCount(); i++) {
260                                  AttributeDescriptor attDesc = fs.getSchema().getDescriptor(i);                                  AttributeDescriptor attDesc = fs.getSchema().getDescriptor(i);
261    
262                                  AttributeMetadata attMetaData = new AttributeMetadata(attDesc                                  AttributeMetadataImpl attMetaData = new AttributeMetadataImpl(attDesc
263                                                  .getName(), map.getLanguages());                                                  .getName(), map.getLanguages());
264                                  map.put(attDesc.getName(), attMetaData);                                  map.put(attDesc.getName(), attMetaData);
265                          }                          }

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26