Package jaitools.media.jai.zonalstats

Examples of jaitools.media.jai.zonalstats.ZonalStats


                        zoneGeom = JTS.transform(zoneGeom, CRS.findMathTransform(zonesCrs, dataCrs,
                                true));
                    }
   
                    // gather the statistics
                    ZonalStats stats = processStatistics(zoneGeom);
   
                    // build the resulting feature
                    if (stats != null) {
                        if(classificationRaster != null) {
                            // if zonal stats we're going to build
                            for (Integer classZoneId : stats.getZones()) {
                                builder.addAll(zone.getAttributes());
                                builder.add(classZoneId);
                                addStatsToFeature(stats.zone(classZoneId));
                                features.add(builder.buildFeature(zone.getID()));
                            }
                        } else {
                            builder.addAll(zone.getAttributes());
                            addStatsToFeature(stats);
View Full Code Here

TOP

Related Classes of jaitools.media.jai.zonalstats.ZonalStats

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.