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

------------------------------------------------------------------------------
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to