/[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 862 by alfonx, Sat May 22 01:24:46 2010 UTC revision 1203 by alfonx, Tue Nov 2 22:53:55 2010 UTC
# Line 40  import org.geotools.data.store.EmptyFeat Line 40  import org.geotools.data.store.EmptyFeat
40  import org.geotools.feature.FeatureCollection;  import org.geotools.feature.FeatureCollection;
41  import org.geotools.feature.NameImpl;  import org.geotools.feature.NameImpl;
42  import org.geotools.feature.collection.SubFeatureCollection;  import org.geotools.feature.collection.SubFeatureCollection;
43    import org.geotools.geometry.jts.ReferencedEnvelope;
44  import org.geotools.styling.Style;  import org.geotools.styling.Style;
45  import org.opengis.feature.simple.SimpleFeature;  import org.opengis.feature.simple.SimpleFeature;
46  import org.opengis.feature.simple.SimpleFeatureType;  import org.opengis.feature.simple.SimpleFeatureType;
# Line 319  public class StyledFeatureCollection Line 320  public class StyledFeatureCollection
320                  SimpleFeatureType ftype = fc.getSchema();                  SimpleFeatureType ftype = fc.getSchema();
321                  for (int i = 0; i < ftype.getAttributeCount(); i++) {                  for (int i = 0; i < ftype.getAttributeCount(); i++) {
322                          AttributeDescriptor aDesc = ftype.getAttributeDescriptors().get(i);                          AttributeDescriptor aDesc = ftype.getAttributeDescriptors().get(i);
323                          if (aDesc != ftype.getGeometryDescriptor())                          if ( !FeatureUtil.isGeometryAttribute(aDesc) )
324                                  metaDataMap.put(aDesc.getName(), new AttributeMetadataImpl( new NameImpl( aDesc.getName().getNamespaceURI(), aDesc.getName().getLocalPart()),                                  metaDataMap.put(aDesc.getName(), new AttributeMetadataImpl( new NameImpl( aDesc.getName().getNamespaceURI(), aDesc.getName().getLocalPart()),
325                                                  true, // visible                                                  true, // visible
326                                                  new Translation(aDesc.getLocalName()), // Column name                                                  new Translation(aDesc.getLocalName()), // Column name
# Line 439  public class StyledFeatureCollection Line 440  public class StyledFeatureCollection
440          }          }
441    
442    
443            @Override
444            public ReferencedEnvelope getReferencedEnvelope() {
445                    return new ReferencedEnvelope(getEnvelope(), getCrs());
446            }
447    
448  }  }

Legend:
Removed from v.862  
changed lines
  Added in v.1203

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26