|
From: Michael B. <mic...@gm...> - 2013-01-15 02:01:55
|
Ah, but you're doing the same thing again :)
Before you had a feature type with one attribute but tried to create a
feature with two. Now you have a type with two attributes...
> // add attributes in order
> builder.add("Location", Point.class);
> builder.length(15).add("Name", String.class); // <- 15 chars width
> for name field
but then you try to add three attributes to your feature...
> featureBuilder.add(point);
> featureBuilder.add("Cagliari");
> featureBuilder.add("12");
That is what the error message is telling you.
Michael
|