My words come back to haunt me. Here is the deal - featureSource.getName() is only used to retrieve the featureSource from the dataStore.
It is *not* the same as: - featureSource.getSchema().getName() - which exists and refers to the FeatureType used by the contents of the feature source - featureSource.getDescriptor().getName() - which does not exist but would refer to the member name used by the contents of a getFeatures() SimpleFeatureCollection See: - http://docs.codehaus.org/display/GEOTOOLS/FeatureCollection+Descriptor+for+FeatureMembers On 04/05/2010, at 8:47 PM, Michael Bedward wrote: > Hi Jody and all, > > Working on FeatureSource javadocs. Can anyone put the following into > simple words for me... > > * Though it's a common practice when dealing with {...@link > SimpleFeatureType} > * and {...@link SimpleFeature} to assume they're equal. There's no > conflict > * (as per the dynamic typing system the {...@code org.opengis.feature} > package > * defines) in a Feature and its type sharing the same name, as well as in > a > * GML schema an element declaration and a type definition may be named the > * same. Yet, the distinction becomes important as we get rid of that > * assumption and thus allow to reuse a type definition for different > * FeatureSoruces, decoupling the descriptor (homologous to the Feature > * element declaration in a GML schema) from its type definition. > > (from the docs for getName method) > > cheers > Michael ------------------------------------------------------------------------------ _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
