Paul Ramsey wrote:
> On 9-Jun-06, at 2:10 PM, Jody Garnett wrote:
>
>
>> Cory Horner wrote:
>>
>>> Hey Jody, Justin,
>>>
>>> I had a peek at FM this morning... took a few stabs at fixing it,
>>> but I
>>> have a question which i'll phrase in the form of a class:
>>>
>>> org.opengis.feature.AttributeFactory?
>>>
>>>
>> Now called FeatureFactory. Since this is a feature model, and since we
>> now have more then attributes I decided not to play around anymore.
>>
> Why, because attributes can now also be features? Sounds pretty
> confusing to me, since 99.5% of users will just be making String,
> Integer, etc... you know, "Attributes".
>
The interface was also responsible for making Feature and
FeatureCollection. Your point concerning common use is valid - and
catered for. Using a SimpleFeatureBuilder everyone besides RobA and
Bryce can get by with builder.add("foo",String.class) and
builder.add("bar",Interger.class ) as appropriate.
:-)
Back to the rename the reason for the change is two fold:
- DataStore.setFeatureFactory( factory ) self documents *why* the
factory is being used
- The factory is responsible for creating things that are not Attributes
at all, features can be made up of properties (structural properties
like association and attribute as well as non structural properties like
opperation).
Hope that helps,
Jody
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel