- 3D Mesh Service
- 3DML
- Access Permission
- Alert
- AltitudeMethod
- Analysis
- ArcSDE Data Source
- Area
- Automatically Launching Fuser
- Basic Tool
- Callbacks
- Cesium API
- Clients
- Cloud Services
- Configuration Files Importing
- Connecting to Specific Site
- ContourMap
- ContourMode
- Coordinate System
- CreateLocation
- Cursor
- Custom TE4W Application
- Customization
- Customized Configurations
- Defining Tool Functionality
- DirectConnect
- DirectConnect Performance Issues
- DirectConnect Service
- Distance
- Div Element
- DrawPoints
- DrawPolygon
- DrawPolyline
- Editors
- Elevation
- FaceNorth
- Feature
- Feature Service
- FlyAround
- FlyToPosition
- Generating Report
- Granting Edit Access
- GroundClampingMethod
- GTX
- Hardware Requirements
- HASP Key
- HoleOnTerrain
- I3S
- Imagery
- Imagery Layers Loading in Cesium
- Importing Configuration Files
- Installing SGS
- Items
- JumpToPosition
- Layer Properties
- Layer’s Alias
- License Manager
- License Mechanism
- LoadLayer
- Local Hardware Protection
- Localization
- Main
- Maps Service
- Mesh
- Messages
- Migrating to SGS
- ModifyMesh
- ModifyTerrain
- Navigate
- Objects
- OnAbort
- OnAnalysisObjectAdded
- OnAreaToolClosed
- OnDistanceMeasurementFinished
- OnDistanceToolClosed
- OnFinish
- OnMouseMove
- OnPointUpdate
- OnProfileToolClosed
- OnQueryToolClosed
- OnStreamingFinished
- OnViewshedToolClosed
- OnVolumeToolClosed
- Oracle Spatial Data Source Properties
- Point
- Point Cloud Service
- PointCloud
- Polygon
- Polyline
- Position
- Post-Installation Procedures
- PostGIS Data Source Properties
- PostgreSQL
- Product Capabilities
- Profile
- Project
- PropertiesObject
- Public URL
- QGIS Clients
- QualityMode
- Query
- QueryElevationBuffer
- Reroute Requests
- Rerouting
- Return Values
- Running TerraBuilder Fuser
- SameSite Cookies
- Scanning Data Sources
- Services
- Settings
- SG Scanner Data Source Properties
- SG Upload Data Source Properties
- SGS Installation Folder
- SGS Security
- Shadow
- Silent Installation
- Site Bindings
- Skyline Floating License Server
- SkylineGlobe Product Suite
- SkylineGlobe Server Manager Pages
- SkylineGlobe Server Settings
- SlopeMap
- SQL Server Data Source Properties
- Stopping Servers
- Stopping Services
- TBP
- TE4W Tools
- TerraBuilder Project File
- TerraExplorer Desktop
- TerraExplorer for Web API
- TerraExplorer Pro Elements Supported
- TerraExplorerObject
- Terrain Service
- Time
- Token Creating
- Underground
- Uninstalling SkylineGlobe Server
- Updating TB Project
- URL Parameters
- URL Rewrite Configuration
- User Group Properties
- User Groups Adding
- User Properties
- Vertical Datum Files
- VideoOnTerrain
- View Access
- Viewing Messages
- ViewMode
- Viewshed
- Volume
- VolumeClassificationMode
- Web Settings
- WFS Layers
- Windows Service
- WMS Raster Layers
- Workstation Dependent Software License
- Zoom
modifyTerrain
The modifyTerrain object enables creation of modify terrain objects and provides access to created objects. Modify terrain objects modify the elevation values in an area of the terrain based on a polygon. The surface of the terrain is raised or lowered according to the elevation values of the polygon's points and the options set. The following member and method are available:
§ items
§ create()
static items : Array<TerraExplorerObject>
Returns an array of TerraExplorerObject containing all modify terrain objects in the project.
create(description, polygon, altitude, options) → {promise}
Creates a modify terrain object.
Parameters
Name |
Type |
Description |
||||||
description |
String |
The name of the modify terrain object as it appears in the Layers and Objects section of the Analysis tab on the sidebar. |
||||||
polygon |
Array of |
Array which represents the modify terrain polygon. |
||||||
altitude |
Number |
The altitude by which to raise or lower the surface of the terrain in the area of the modify terrain polygon. |
||||||
options |
Object |
|
Returns
Promise - A promise that resolves to the newly created modify terrain TerraExplorerObject object.
Example
The following example creates a modifyTerrain object:
var pos1 = Cesium.Cartesian3.fromDegrees(-122.50984, 37.82545);
var pos2 = Cesium.Cartesian3.fromDegrees(-122.50458, 37.82845);
var pos3 = Cesium.Cartesian3.fromDegrees(-122.50182, 37.82574);
var pos4 = Cesium.Cartesian3.fromDegrees(-122.50678, 37.82262);
var cart = [pos1, pos2, pos3, pos4];
Cesium.when(TerraExplorer.objects.modifyTerrain.create("modifyTerrain", cart, 200), function(teObject){teObject.flyTo();});