Examples of JGrassColorTable


Examples of org.geotools.gce.grassraster.core.color.JGrassColorTable

     *
     * @return the list of single colorrules.
     * @throws IOException
     */
    public List<String> getColorRules( double[] range ) throws IOException {
        JGrassColorTable colorTable = new JGrassColorTable(readerGrassEnv, range);
        return colorTable.getColorRules();
    }
View Full Code Here

Examples of org.geotools.gce.grassraster.core.color.JGrassColorTable

     */
    public List<String> getColorRules( double[] range ) throws IOException {
        if (range == null) {
            range = new double[]{defaultMapMin, defaultMapMax};
        }
        JGrassColorTable colorTable = new JGrassColorTable(this, range);
        return colorTable.getColorRules();
    }
View Full Code Here

Examples of org.geotools.gce.grassraster.core.color.JGrassColorTable

     * @return the data range or null if no range could be read.
     * @throws IOException
     */
    public double[] getRangeFromColorTable() throws IOException {
        double[] dataRange = new double[2];
        JGrassColorTable colorTable = new JGrassColorTable(this, null);
        List<String> rules = colorTable.getColorRules();
        if (rules.size() == 0) {
            return null;
        }
        for( int i = 0; i < rules.size(); i++ ) {
            String rule = rules.get(i);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.