Here are some questions that have been on my mind since I started
using Geotools, and was wondering about the design decisions in two
areas:

1. Why does a FeatureCollection require me to call the features()
method to get a FeaturesIterator, instead of a regular Iterator so
that it could be used in a for-each loop?

2. Why does the SimpleFeature interface not implement
getAttribute(String name)? Currently, this  has to be cast to
SimpleFeatureImpl to read string attributes in a Shapefile?

This isn't meant as a criticism, only a chance to increase my own knowledge.

Jason

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to