Example usage for com.google.common.geometry S2CellUnion initRawCellIds

List of usage examples for com.google.common.geometry S2CellUnion initRawCellIds

Introduction

In this page you can find the example usage for com.google.common.geometry S2CellUnion initRawCellIds.

Prototype

public void initRawCellIds(ArrayList<S2CellId> cellIds) 

Source Link

Usage

From source file:org.esa.beam.occci.S2IEoProduct.java

private static S2CellUnion createS2CellUnion(String cellIdString) {
    StringTokenizer st = new StringTokenizer(cellIdString, ";");
    ArrayList<S2CellId> cellIds = new ArrayList<S2CellId>();
    while (st.hasMoreTokens()) {
        cellIds.add(new S2CellId(Long.parseLong(st.nextToken())));
    }/*from   w w  w. j a  va2  s. c o  m*/
    S2CellUnion cellUnion = new S2CellUnion();
    cellUnion.initRawCellIds(cellIds);
    return cellUnion;
}

From source file:org.esa.beam.occci.S2IEoProduct.java

private S2CellUnion createS2CellUnion(ArrayList<S2CellId> cellIds) {
    S2CellUnion cellUnion = new S2CellUnion();
    cellUnion.initRawCellIds(cellIds);
    return cellUnion;
}