com.supermap.realspace
Class TerrainLayers
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.realspace.TerrainLayers
-
public class TerrainLayers extends InternalHandle
Topographic layer collection class.This class includes information about the collection of terrain layers. You can set the object to edit and manage the terrain layer collection objects.
-
-
Constructor Summary
Constructors Constructor and Description TerrainLayers()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description TerrainLayer
add(java.lang.String path, java.lang.Boolean toHead, java.lang.String name, java.lang.String password)
TerrainLayer
add(java.lang.String url, java.lang.String name)
Add an online 3D terrain layer to the collection in the 3D terrain layer.TerrainLayer
addIserver(java.lang.String url, java.lang.String layerName)
Add an iserver terrain layer.void
clear()
Remove all terrain layer objects from the terrain layer set.TerrainLayer
get(int index)
Returns the terrain layer object of the specified sequence number in the terrain layer collection.TerrainLayer
get(java.lang.String name)
Returns the terrain layer object of the specified name in the terrain layer collection.int
getCount()
Returns the total number of terrain layer objects in a given terrain layer collection.boolean
removeLayerWithName(java.lang.String layerName)
-
-
-
Method Detail
-
getCount
public int getCount()
Returns the total number of terrain layer objects in a given terrain layer collection.- Returns:
- Returns the total number of terrain layer objects in a given terrain layer collection.
-
get
public TerrainLayer get(java.lang.String name)
Returns the terrain layer object of the specified name in the terrain layer collection.- Parameters:
name
- The specified layer object name.- Returns:
- Returns the terrain layer object of the specified name in the terrain layer collection.
-
get
public TerrainLayer get(int index)
Returns the terrain layer object of the specified sequence number in the terrain layer collection.- Parameters:
index
- The sequence number of the specified layer object.- Returns:
- Returns the terrain layer object of the specified sequence number in the terrain layer collection.
-
add
public TerrainLayer add(java.lang.String url, java.lang.String name)
Add an online 3D terrain layer to the collection in the 3D terrain layer.- Parameters:
url
- The STK World Terrain Terrain Service URL specified by url.name
- User-specified terrain layer name.- Returns:
- Newly added terrain layer object.
-
addIserver
public TerrainLayer addIserver(java.lang.String url, java.lang.String layerName)
Add an iserver terrain layer.- Parameters:
url
- The iServer terrain service URL specified by url.(For example: http://localhost:8090/iserver/services/3D-dxyx_android/rest/realspace/datas/layerName).layerName
- Terrain layer name.- Returns:
- Newly added terrain layer object.
-
add
public TerrainLayer add(java.lang.String path, java.lang.Boolean toHead, java.lang.String name, java.lang.String password)
- Parameters:
path
- Data path. This parameter corresponds to the full path of the data corresponding to the 3D terrain layer.toHead
- Whether to add the newly added 3D terrain layer to the top.name
- Specifies the name of the newly added 3D terrain layer, which is not case sensitive. Throws an exception if the layer name already exists.password
- Specifies the large file password for the path.- Returns:
- 3D layer object.
-
removeLayerWithName
public boolean removeLayerWithName(java.lang.String layerName)
- Parameters:
layerName
- The name of the 3D terrain layer to delete.- Returns:
- Returns YES if the deletion is successful, otherwise returns NO.
-
clear
public void clear()
Remove all terrain layer objects from the terrain layer set.
-
-