|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.geodatabaseextensions.TerrainDataSource
public class TerrainDataSource
Esri Terrain Data Source object.
A TerrainDataSource represents a feature class that participates in the definition of a terrain. It is used to store all the terrain specific properties and rules for the feature class.
Constructor Summary | |
---|---|
TerrainDataSource()
Constructs a TerrainDataSource using ArcGIS Engine. |
|
TerrainDataSource(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. TerrainDataSource theTerrainDataSource = (TerrainDataSource) obj; |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
int |
getFeatureClassID()
The unique database identifier for the feature class. |
ITerrainFieldStatistics |
getFieldStatistics(String fieldName)
Returns the statistics of the specified Terrain blob field. |
int |
getGroupID()
The identifier of the terrain's thematic group to which this feature class belongs. |
String |
getHeightField()
The database column providing heights for the features. |
String |
getName()
The name of the embedded data source. |
IStringArray |
getReservedFields()
Returns the names of the database fields associated with the data source that are copied into the terrain. |
IArray |
getReservedFieldStatistics()
Returns the statistics of all the Terrain blob fields. |
int |
getSurfaceFeatureType()
Indicates how the features are used to define the terrain surface. |
String |
getTagValueField()
The database column providing tag values for TIN elements derived from the terrain. |
int |
hashCode()
the hashcode for this object |
boolean |
isApplyToOverviewTerrain()
Indicates if the 'breakline' data source should be added to the overview Terrain. |
boolean |
isEmbedded()
Indicates whether or not the data source is contained by the terrain. |
boolean |
isToBeEmbedded()
Indicates the terrain will copy the data and not have a dependency on the data source after the terrain is built. |
void |
queryResolutionBounds(double[] pLowerBound,
double[] pUpperBound)
Returns the lower and upper resolution bounds in which the line/area data source participates in the triangulation. |
void |
setApplyToOverviewTerrain(boolean pbApply)
Indicates if the 'breakline' data source should be added to the overview Terrain. |
void |
setFeatureClassID(int pClassID)
The unique database identifier for the feature class. |
void |
setGroupID(int pGroupID)
The identifier of the terrain's thematic group to which this feature class belongs. |
void |
setHeightField(String pFieldName)
The database column providing heights for the features. |
void |
setName(String pName)
The name of the embedded data source. |
void |
setReservedFields(IStringArray pFields)
Set the names of the database fields associated with the data source that will be copied into the terrain. |
void |
setResolutionBounds(double lowerBound,
double upperBound)
Sets the lower and upper resolution bounds in which the line/area data source participates in the triangulation. |
void |
setSurfaceFeatureType(int pType)
Indicates how the features are used to define the terrain surface. |
void |
setTagValueField(String pFieldName)
The database column providing tag values for TIN elements derived from the terrain. |
void |
setToBeEmbedded(boolean pbToBeEmbedded)
Indicates the terrain will copy the data and not have a dependency on the data source after the terrain is built. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public TerrainDataSource() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic TerrainDataSource(Object obj) throws IOException
TerrainDataSource theTerrainDataSource = (TerrainDataSource) obj;
obj
to TerrainDataSource
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void setFeatureClassID(int pClassID) throws IOException, AutomationException
setFeatureClassID
in interface ITerrainDataSource
pClassID
- The pClassID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getFeatureClassID() throws IOException, AutomationException
The database ID of the feature class representing the data source. See IFeatureClass.FeatureClassID.
The ID for an embedded feature class may change after a call to ITerrainEdit.Build.
getFeatureClassID
in interface ITerrainDataSource
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setGroupID(int pGroupID) throws IOException, AutomationException
setGroupID
in interface ITerrainDataSource
pGroupID
- The pGroupID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getGroupID() throws IOException, AutomationException
Groups are feature classes representing the same phenomena at different levels of detail. For example, you can have very detailed breaklines for ‘edge of road’ and more generalized breaklines that are ‘center of road’. Each is to be used at different scales. Assigning them the same group id will tell terrain they are thematically alike but must be enforced only in non-overlapping scale ranges.
getGroupID
in interface ITerrainDataSource
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setHeightField(String pFieldName) throws IOException, AutomationException
setHeightField
in interface ITerrainDataSource
pFieldName
- The pFieldName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getHeightField() throws IOException, AutomationException
The HeightField is the name of the database column providing heights for the features. It can be the shape field name if the z values are to come from the feature geometry. It can be a numeric field in the case where z values are to come from an attribute. This parameter can also be left unset, or set to an empty string, if the features are to be incorporated into the terrain without z values (e.g. z-less clip polygon boundary).
getHeightField
in interface ITerrainDataSource
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTagValueField(String pFieldName) throws IOException, AutomationException
setTagValueField
in interface ITerrainDataSource
pFieldName
- The pFieldName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getTagValueField() throws IOException, AutomationException
The TagValueField is the name of the database column providing tags for derived terrain TIN elements. Tag values are integers (signed longs), with user defined meaning, that can be assigned to nodes, edges, or triangles. They are used as a simple form of attribution.
This parameter can remain unset, or set to an empty string, if tags are not to be assigned from this data source.
getTagValueField
in interface ITerrainDataSource
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSurfaceFeatureType(int pType) throws IOException, AutomationException
setSurfaceFeatureType
in interface ITerrainDataSource
pType
- A com.esri.arcgis.geodatabase.esriTinSurfaceType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getSurfaceFeatureType() throws IOException, AutomationException
The SurfaceFeatureType, or SFType for short, indicates how the features are used to define the terrain surface. There are five major types defined via the esriTinSurfaceType enumeration:
Mass: points, polyline vertices, or polygon vertices are inserted as simple nodes.
Line: line segments are enforced in triangulation as triangle edges.
Replace: everything on the perimeter and inside the polygon are assigned the same height.
Erase: all triangles inside the polygon are masked as NoData. Rendering and interpolation will not occur in these areas.
Clip: all triangles outside the polygon are masked as NoData. Rendering and interpolation will not occur in these areas.
ValueFill: all triangles inside the polygon are assigned a tag value as a simple form of attribution.
All types but mass, have 'soft' and 'hard' qualifiers. This distinction between hard and soft is a property that is assigned to line and polygon boundary edges enforced in the triangulation. The property influences the behavior of the natual neighbors interpolator: the surface is smooth across soft break edges but has a disinct break in slope across hard edges. See also Natural Neighbors interpolant.
getSurfaceFeatureType
in interface ITerrainDataSource
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setApplyToOverviewTerrain(boolean pbApply) throws IOException, AutomationException
setApplyToOverviewTerrain
in interface ITerrainDataSource
pbApply
- The pbApply (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isApplyToOverviewTerrain() throws IOException, AutomationException
ApplyToOverviewTerrain is a boolean that indicates whether this data source contributes to the overview representation. It's a choice for line and polygon based data. It must be set to TRUE for mass point data or an error will be returned.
The terrain overview is the coarsest representation of terrain. It's like a vector based thumbnail.
isApplyToOverviewTerrain
in interface ITerrainDataSource
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isEmbedded() throws IOException, AutomationException
Indicates whether the feature class is embedded in the terrain. If set to TRUE the feature class is contained by the terrain, rather than referenced by it like regular feature classes, and is not visible from ArcCatalog. Operations on it must be performed through terrain related functions.
isEmbedded
in interface ITerrainDataSource
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setResolutionBounds(double lowerBound, double upperBound) throws IOException, AutomationException
The resolution bounds are used by feature classes added as breakline and polygon surface feature types. The bounds represent the pyramid levels in which the features are enforced. The lower bound is inclusive, the upper exclusive. For example, a data source with a lower bound of 0.0 and an upper bound of 5.1 will be enforced by the terrain for pyramid layers whose resolution is >= 0.0 and < 5.1.
setResolutionBounds
in interface ITerrainDataSource
lowerBound
- The lowerBound (in)upperBound
- The upperBound (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void queryResolutionBounds(double[] pLowerBound, double[] pUpperBound) throws IOException, AutomationException
The resolution bounds are used by feature classes added as breakline and polygon surface feature types. The bounds represent the pyramid levels in which the features are enforced. The lower bound is inclusive, the upper exclusive. For example, a data source with a lower bound of 0.0 and an upper bound of 5.1 will be enforced by the terrain for pyramid layers whose resolution is >= 0.0 and < 5.1.
queryResolutionBounds
in interface ITerrainDataSource
pLowerBound
- The pLowerBound (out: use single element array)pUpperBound
- The pUpperBound (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setToBeEmbedded(boolean pbToBeEmbedded) throws IOException, AutomationException
setToBeEmbedded
in interface ITerrainEmbeddedDataSource
pbToBeEmbedded
- The pbToBeEmbedded (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isToBeEmbedded() throws IOException, AutomationException
isToBeEmbedded
in interface ITerrainEmbeddedDataSource
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setName(String pName) throws IOException, AutomationException
setName
in interface ITerrainEmbeddedDataSource
pName
- The pName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getName() throws IOException, AutomationException
getName
in interface ITerrainEmbeddedDataSource
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setReservedFields(IStringArray pFields) throws IOException, AutomationException
Provide the names of the fields to embedd. Only certain kinds of fields are supported, such as those optionally created by the TerrainLasDataImporter.
setReservedFields
in interface ITerrainEmbeddedDataSource
pFields
- A reference to a com.esri.arcgis.system.IStringArray (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IStringArray getReservedFields() throws IOException, AutomationException
getReservedFields
in interface ITerrainEmbeddedDataSource
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ITerrainFieldStatistics getFieldStatistics(String fieldName) throws IOException, AutomationException
Returns statistics for an attribute in a feature class that's embedded in a terrain dataset.
FieldName indicates which field to return statistics for. A NULL is returned if the field doesn't exist. An empty object is returned if statistics have yet to be calculated for the field. Test for that case using ITerrainFieldStatistics.IsEmpty.
getFieldStatistics
in interface ITerrainEmbeddedDataSource2
fieldName
- The fieldName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IArray getReservedFieldStatistics() throws IOException, AutomationException
Returns statistics for attributes in an feature class that's embedded in a terrain dataset.
The array that's returned contains a TerrainFieldStatistics object for each attribute. A NULL is returned for the array if there are no attributes.
getReservedFieldStatistics
in interface ITerrainEmbeddedDataSource2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |