geotools/geotools — pull request #267 by williamvoor (2013-09-11 01:27:40+00:00)
Title: Geot 4566

I have added a new method to FeatureJSON to obtain the a feature collection schema by reading all features in search of the data types of all properties; as opposed to only considering the first feature.
FeatureJSON#readFeatureCollectionSchema reads the SimpleFeatureType of a GeoJSON using FeatureTypeHandler, which is a simpler handler when compared to FeatureHandler. In the worst case, it will parse all features searching for attributes not present in previous features. This method only obtains the feature type, which means that a second parse would have to be done in order to obtain the actual feature collection.