com.esri.sde.sdk.client
Class SeLayerGrid

java.lang.Object
  extended by com.esri.sde.sdk.client.SeLayerGrid

public class SeLayerGrid
extends java.lang.Object

This class provides the capability to calculate a reasonable set of index grid values for a set of features in a layer. The new set of index grid values are calculated by using the envelopes of the selected set of features.


Field Summary
static int GSIZE_MULT
           
 
Constructor Summary
SeLayerGrid(double xyunits)
          This constuctor creates a properly initialized layer grid object.
SeLayerGrid(SeCoordinateReference coordref)
          This constuctor creates a properly initialized layer grid object.
 
Method Summary
 void applyEnvelope(SeExtent envelope)
          This method applies the given envelope, of a shape, to the index grid being calculated.
 void applyShape(SeShape shape)
          This method applies a shape to the index grid being calculated.
 double[] getGridSizes()
          This function returns the calculated grid sizes for the layer, using information applied against the layer grid object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GSIZE_MULT

public static int GSIZE_MULT
Constructor Detail

SeLayerGrid

public SeLayerGrid(double xyunits)
            throws SeException
This constuctor creates a properly initialized layer grid object. After the layer grid object has been created, the following methods are invoked to re-calculate the grid sizes:

applyShape(com.esri.sde.sdk.client.SeShape) OR applyEnvelope(com.esri.sde.sdk.client.SeExtent) - to add statistics about shapes.

getGridSizes() - to generate and retrieve the calculated grid sizes

Parameters:
xyunits - the scale factor to use while calculating the grid sizes.
Throws:
SeException

SeLayerGrid

public SeLayerGrid(SeCoordinateReference coordref)
            throws SeException
This constuctor creates a properly initialized layer grid object. After the layer grid object has been created, the following methods are invoked to re-calculate the grid sizes:

applyShape(com.esri.sde.sdk.client.SeShape) OR applyEnvelope(com.esri.sde.sdk.client.SeExtent) - to add statistics about shapes.

getGridSizes() - to generate and retrieve the calculated grid sizes

Parameters:
coordref - a valid SeCoordindateReference object.
Throws:
SeException
Method Detail

applyShape

public void applyShape(SeShape shape)
                throws SeException
This method applies a shape to the index grid being calculated. The envelope of the shape is used in the calculation of the new index grid values.

Parameters:
shape - a valid SeShape object.
Throws:
SeException

applyEnvelope

public void applyEnvelope(SeExtent envelope)
                   throws SeException
This method applies the given envelope, of a shape, to the index grid being calculated.

Parameters:
envelope - the envelope of a shape object.
Throws:
SeException

getGridSizes

public double[] getGridSizes()
                      throws SeException
This function returns the calculated grid sizes for the layer, using information applied against the layer grid object.

Returns:
gridsize(double[3]) :
gridsize[0] - the base grid size.
gridsize[1] - the second level grid size.
gridsize[2] - the third level grid size.
Throws:
SeException