Cityengine uses raster data to create a 3D Topic Map

Source: Internet
Author: User

In arcscene, raster data is stretched to display 3D effects. What if I want to share this effect on the Web end? Cityengine 2012 adds the Web scenario publishing function, which can be opened through the Local Web scene viewer or published to the ArcGIS online cloud for sharing. Therefore, with cityengine 2012, you can create such a web application to display the grid map of 3D effects online.
1. Raster Data Preparation
(1) vertices represent cities. We are based on a property value of a City Point (for example, a certain number of people ).
 
Use the kernel density tool (arctoolbox-> Space Analysis-> Density Analysis) In ArcMap for density analysis. The calculation result is shown in. This is a grid data.
 
After the symbolic settings, You can intuitively see the two-dimensional map that represents the spatial distribution density.
 
(2) export the raster layer in Figure 3 as a raster file for symbolic display (texture) in cityengine ). Close other layers, click File menu> export map, set as follows, and click Save. Note that you should check "Write world file" to record the coordinates.
 

(3) export the raster layer in Figure 2 as a raster file for elevation display (similar to DEM) in cityengine ).
Before exporting a map, modify the background color of the Data box, right-click the data box, select properties, and click the frame tab to change the background color to black.
 
Choose File> export map, set as follows, and click Save.
 

(4) Next, in order to facilitate the smooth display of raster data in cityengine, we need to reduce the number of raster data. Use the re-sampling tool (arctoolbox-> Data Management-> raster processing) to process the results in steps 2 and 4. Set the following parameters and change the pixel size.
 
 
2. Create a 3D Map
(1) Open cityengine 2012 and create a cityengine project. Choose File> New, select cityengine project, click Next, name the project, and click Finish.
 
 
In the navigation window, you can see the created Project, which contains many folders.
 
(2) create a cityengine scenario. In the navigation window, find the project you just created, right-click scenes, choose new> cityengine scene, and name the scenario. Set the coordinate system and select finish.
 
(3) import a map file. Copy the raster file data prepared in step 1 to the | "maps" folder under the project file (storage project file path c: \ Users \ Administrator \ cityengine2012 \ gisers ).
 
Return to the navigation window and right-click Refresh in the maps area to view the map file you just imported.
 
(4) create a map layer. Click new map layer under the layer menu, select the layer type, select terrain, and click Next.
 
Set the elevation file and texture file and click Finish, as shown in. At this time, when you set two files separately, the bounds at the bottom should remain unchanged. Otherwise, an offset will be displayed after the elevation data and texture data are superimposed.
 
(5) 3D Map Display. If the terrain layer is not displayed in the view, you can click the right of the terrain layer in the lower-left corner of the application interface and select the frame layer. The created layer is displayed in the center of the view. You can use the left mouse button and the scroll bar to pan and zoom in or out the map. You can also use the Alt key and the left mouse button to convert the Visual View of the map.
 
Double-click the terrain layer, and in the layer properties on the right of the application interface, adjust the bounds parameter to narrow the map display range, adjust the elevation value to achieve a better three-dimensional effect (if the elevation distance difference is small, the three-dimensional effect will not be obvious ).
 
 
3. quickly publish a map
(1) Export the model. Under the File menu, click Export models. Select cityengine web scene and click Next.
 
In this case, you need to click "center" in MISC option settings to recalculate the MAP range.
 
Select "low" for the texture quality of the terrain layer and click "finish" to create a scenario. This process may take several minutes.
 
(2) view the online 3D effect. Right-click "refresh" at "models" of the project file to view the created scenario package (. 3ws ). Right-click the scenario package and select open with and click 3D Web scene Viewer (offline). Then, you can view the 3D topic diagram in the browser. You must use Firefox or Google Chrome (not supported by IE ).
 
 
You can also share the completed scenario package. 3ws with others. With a few simple steps of deployment, you can also open the Web scenario locally (even if cityengine 2012 is not installed), detailed steps can be seen in the http://blog.3snews.net/space.php? Uid = 53325 & Do = Blog & id = 65604.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.