From: Jody G. <jga...@re...> - 2007-10-23 17:42:22
|
The two things you describe are so common they have specific optimized methods. - featureSource.getCount(); - featureSource.getBounds(); Sometimes those two methods are not implemented (if no optimization is available); in that case you can scan the whole file: - featureSource.getFeatures().size(); - featureSource.getFeatures().getBounds(); User guide pages that cover your questions are: - http://docs.codehaus.org/display/GEOTDOC/06+FeatureSource - http://docs.codehaus.org/display/GEOTDOC/Shapefile+Plugin Cheers, Jody Gloria Mu� wrote: > Hi! > I want to implement two functions using Geotools2.0-Eclipse: > One function to add up the number of points of a .shp file. > One function to calculate the area included between a list of points > of a .shp file. > > But I'm new using geotools and I don't know if already exist functions > which work like the two above or which are similar. > Could you help me?Thanks. > > I'm sorry about my english! > > Gloria > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > ------------------------------------------------------------------------ > > _______________________________________________ > Geotools-gt2-users mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > |