Академический Документы
Профессиональный Документы
Культура Документы
NET
Tutorial for Beginners
This textbook is one of training textbooks of SuperMap GIS products, focusing on SuperMap
Deskpro .NET. SuperMap Deskpro .NET is the latest generic desktop geographic information
processing platform of SuperMap Software Co., Ltd. Beijing, based on the core technology of
SuperMap GIS (named Universal GIS Core, UGC for short). Users could fulfill the tasks of data
management, map editing, map printing, querying and browsing, spatial analysis, integration of
2D and 3D, 3D modeling and flying, grid Analysis, and so on.
This training book is focused on the general functions of SuperMap Deskpro .NET. At the
beginning of each section, there is a brief introduction including the practice data and exercises to
be done.
In the First Chapter, the textbook gives an overview of SuperMap Deskpro .NET, focusing on the
license configuration process. It also gives introduction to some core concepts and basic functions
of SuperMap Deskpro .NET.
From Chapter 2 to Chapter 6, the textbook mainly introduces how to get spatial data and the
functions used during map configuration process, such as data integration, coordinate system
setting, projection transformation, vectorization, map layouting and printing, etc.
Chapter 7 is about spatial database management. It introduces spatial data engine and the
integrated management of spatial data and attribute data in a database.
Chapter 8 introduces how to work with SuperMap 3D scene, including the 2D data and 3D models
supported in SuperMap Deskpro .NET, how to create 3D scene, perform spatial analysis, etc.
Chapter 9 gives some basic tasks for you to exercise.
Since SuperMap Deskpro .NET is still under developing and keep progressing, if the functions or
user interface is different from the ones described in this textbook, the latest SuperMap
Deskpro .NET functions and interface shall prevail.
This book is based on SuperMap Deskpro .NET 6R(2012) SP2, if the interface or procedures are
different from the product you are using, the interface or procedures in the product shall prevail.
The textbook is edited by SuperMap Software Co., Ltd. Beijing. Problems are inescapable due to
the time limit and other reasons. Please provide us your comments and suggestions without any
hesitation.
4. Vectorization____________________________________________________ 25
4.1 Map Registration ........................................................................................... 25
4.1.1 New registration window................................................................................................ 25
4.1.2 Specify Control Points ..................................................................................................... 26
4.1.3 Calculate Error ................................................................................................................ 27
4.1.4 Registration ..................................................................................................................... 28
5. Map Representation______________________________________________ 31
5.1 Prepare Symbol Libraries ................................................................................ 31
5.1.1 Create Marker Symbol .................................................................................................... 31
5.1.2 Create Line Symbol ......................................................................................................... 36
5.1.3 Create Fill Symbol ........................................................................................................... 37
Table of Contents
5.1.4 Manage Symbol Libraries ................................................................................................ 39
Table of Contents
8.2.2 Common Layer ..................................................................................................................... 72
8.2.3 Terrain Layer ......................................................................................................................... 75
9. Applications____________________________________________________ 102
9.1 Task 1: Installation and General Use .................................................................... 102
Table of Contents
1. Introduction to SuperMap Deskpro .NET
This chapter mainly introduces the license configuration process. It also describes some core
concepts and basic functions in SuperMap GIS.
Make sure that you have installed SuperMap License Manager and obtained license from
SuperMap Software Co., Ltd. before you start to use the software.
You can apply a trail license file by yourself from this address:
http://www.supermap.com/en/html/license.html, or provide your computer name, company
name and user name to globalsupport@supermap.com and let the technical support engineer to
apply a license file for you.
There are two types of official licenses:
License File: File license is a license given in the file format that you can use to run the
software.
Hardware Key: A hardware key is a license provided in the format of encryption key.
There are four kinds of hardware keys available: stand-alone key, stand-alone time key,
network key and network time key.
Stand-alone key can only license one computer.
Stand-alone time key is similar to stand-alone key but with a time limit for use.
Network key can license multiple computers. You only need to install the corresponding
license driver and plug the network key in any computer (the computer is then called license
server) within your local network and other computers in the same network can then be
licensed. The number of licensed computers is determined by the network key.
The network time key is similar to the network key but with a time limit for use.
Before using the hardware key you must install the driver. Once you have successfully
installed the driver you can plug the hardware key in the parallel port or USB port of the
computer. Currently, SuperMap provides hardware keys of two companies: Aladdin and
Sentinel.
Key driver: SuperMap License Manager Installation directory \ Drivers \ Aladdin\
HASPUserSetup.exe
License Server: SuperMap License Manager Installation directory \ Drivers \ Aladdin \
lmsetup.exe
For the Sentinel hardware keys, you only need to install the key driver, which is located in
SuperMap License Manager Installation directory\ Drivers \ Sentinel \ Sentinel Protection
Installer 7.5.0.exe.
License File
1) The License Configuration tool will run automatically after installing SuperMap products.
You can also click Start > Programs > SuperMap > SuperMap License Manager > License
Manager tool to run it. In addition, you can navigate to the directory: System
Driver\Program Files\Common Files\SuperMap\LicenseManager to find the
LicenseManager.exe to run this tool.
2) Choose the relevant license file with the .lic extension, if the license file includes User and
Company information, system can read the information and fill the User and Company item.
Please fill the User and Company item if the license file doesn't include the information.
4) Click the Save button to save the current configuration information in the configuration file
SuperMapLic.ini.
If the remark "valid" appears in the "State" column, that means the current license file
has configured successfully. If license configuring is not successful, the remark
"supermap_license_error_wronglicensedata" may appear in the "State" column, this
means the current license file has exceeded the time limit, or the confirmation
information of the license file is wrong such as a inaccurate computer name was used
when applying the license file.
Hardware Key
1) After installing the hardware key on the license server, run SuperMap License Manager on
the computer that you want to license, and click Hardware Key tab on the top.
2) Enter the name or IP address of the license server and select the product version for which
you want to configure the license.
4) Click Save to save the current configuration information to the configuration file
(SuperMapLic.ini).
1.2.1 Workspace
Workspace stores user's working environment, including datasources connection info, maps, 3D
scenes, layouts, symbol library, line library and fill library.
Workspace can be saved as file or database type. File-based workspace has the extension .smwu
or .sxwu and database workspace can be saved in SQL Server or Oracle.
Only one workspace can be opened in Deskpro .NET at a time. You have to close the current
workspace before opening another workspace.
The Properties dialog box of a workspace contains file name, type, version, and description
information of the workspace. And you can modify its password here. To browse the properties,
you can right-click the workspace name in Workspace Manager and select the Properties option,
as shown in Figure 1-2.
Figure 1-2
Workspace Operations:
(1) Open a Workspace: There are four ways to open a workspace:
1.2.2 Datasource
Datasource is used to store datasets, dataset types including point 2D/3D, line 2D/3D, region
2D/3D, text, CAD and tabular. Both vector data and raster data can be stored in the same
datasource.
The datasource can be of file type or database type, file datasource is saved as two files, with the
extension udb and udd respectively. The UDB file stores the spatial data, while the UDD file stores
the attribute data. The databases supported in SuperMap Deskpro .NET include Microsoft SQL
Server, Oracle, PostgreSQL and DB2.
The Properties dialog box of a datasource contains some basic information and projection
information about the datasource. To browse the properties, right-click on the datasource name
in Workspace Manager, then select Properties in the context menu, as shown in Figure 1-3 and
Figure 1-4.
Tip: The projections of the datasets can be different from the projection of the datasource, but to
facilitate management, it is generally recommended that you set the projection of the datasource
the same with the data stored in it.
Figure 1-4
Datasource Operations:
(1) Open Datasource: There are four ways to open an existing datasource:
Click Start button and choose New option to create a new datasource.
Click the drop-down arrow of the New Dropdown button in the Datasource group and
select the type of the datasource you want to create.
Right-click the datasources node in Workspace Manager and select the type of the
datasource you want to create.
A dataset is a collection of data of the same type. Nine types of datasets are supported in
SuperMap Deskpro .NET: point dataset, line dataset, region dataset, text dataset, CAD dataset,
tabular dataset, point 3D dataset, line 3D dataset and region 3D dataset.
Dataset has no corresponding physical storage on disk, all information is stored in datasource.
Different types of datasets have different data processing methods and analysis functions.
Figure 1-5
Dataset properties generally include the basic information. For vector dataset, the properties
include not only spatial information but also attribute information. To browse the properties,
select the dataset in Workspace Manager, right-click and select Properties in the context menu.
You can manage the attribute table structure of the vector dataset. (Refer to Figure 1-6 and Figure
1-7)
Figure1-6
Dataset Operations:
New dataset: Click the corresponding dataset type in the New Dataset group under the
Home tab or right click on the datasoure name and choose New Dataset option;
Copy dataset: Right-click the dataset and choose the Copy Dataset option;
Delete dataset: Right-click the dataset and choose the Delete Dataset option;
Modify table structure: Add, delete or modify the attribute fields under the Table
Structure node in the properties dialog box.
1.2.4 Map
Every time you add a dataset to a map window, a layer referencing the dataset is created and
displayed in the map window. A map is composed of a set of ordered layers. Generally, a layer
references only one dataset while a dataset can be added to a map window for several times with
different drawing styles. Datasets that don’t store displaying styles, such as point datasets, line
datasets and region datasets, will be assigned with default drawing styles when opened. Datasets
that store displaying styles, such as CAD datasets and text datasets, will be rendered in their own
displaying styles. The displaying style of a layer can be changed through setting layer styles or
creating thematic maps. You can also edit geometric objects in the map window, such as change
the position, size, shape, etc. of an object. Your editing in a layer will be reflected in the dataset
the layer references. Figure 1-8 shows the relationships among datasource, dataset, layer and
map.
Figure 1-8
1.2.5 Scenes
A scene models the earth with a globe overlaid with an image of the world, as shown in Figure 1-9.
Geographic features on the earth's surface can be simulated on the globe. Scenes can facilitate the
understanding of the locations of geographic features and the relationships among them. You can
add 2D and 3D data to a scene for browsing and some other basic operations. A scene also models
the environment of the earth, including the sky, the atmosphere, the fog, etc. Besides, you can
observe the globe from different perspectives through camera settings.
Figure 1-9
A scene cannot exist independent from workspace. Therefore, you must save the workspace on
which a scene relies if you want to save the scene for future use.
1.2.6 Resources
The Resources node in the Workspace Manager is used to manage the Marker Symbol Library,
Line Symbol Library, and Fill Symbol Library, which provides marker symbols, line symbols, and
fill symbols respectively. These symbols are used to set display styles for the geometry features in
a layer. You can change the properties of the symbols or create new symbols by yourself using the
symbol editor. For example, you can change the size, color, etc. of a maker symbol, the width, color
etc. of a line symbol, and the fill pattern of a fill symbol.
Figure 1-10
This chapter summarizes the common methods of spatial data integration. As to different data
formats, it illustrates the appropriate integration method.
GIS data can be classified into vector data and raster data according to data storage structure.
Data of other formats can be imported to SuperMap datasource and used by SuperMap products.
The formats that can be imported currently include:
Figure 2-1
Procedures to import data:
Make sure that there is at least one datasource opened in the Workspace Manager, click
Home tab -> Import button. The Import Data dialog box will display.
Click Add or double-click the list box, the Open dialog box will display. Specify the path
of the data to be imported.
Set parameters. You can also click Advanced to set advanced parameters.
Click Import, then the dataset will be imported.
After the operation, you can see whether the import process is successful or not in the status
column of the list box, as shown in Figure 2-2. The Output Window at the bottom of the
application will also show whether the data has been imported successfully.
If you import the data successfully, the data will then be stored and managed in the datasource,
you can just open the datasource and use the data next time.
The vector data that can be imported include common GIS data such as *.shp, *.mif, *.tab, etc. as
well as AutoCAD data. When importing CAD data, the result type can be simple GIS data or CAD
data, as shown in Figure 2-2.
Figure 2-2
Here are some of the differences between simple dataset and CAD dataset:
CAD format can store multiple kinds of features in the same data, such as point, line,
region, text, etc. Many spatial analysis functions are not supported in CAD datasets,
such as buffer analysis, overlay analysis, network analysis, etc. In a CAD dataset,
different features can have different styles. Choose this dataset if you want to keep
original style and don’t need to perform spatial analysis on the data.
Simple dataset stores features based on their geometry type, for example, point
features are stored in point dataset, line features are stores in line dataset, region
features are stored in region dataset, etc. Simple dataset can’t store display styles of the
geometry features, but spatial analysis functions are supported. Simple datasets are
mainly used to perform spatial analysis in GIS system.
Image format includes common image format and compressed image format.
Most of the current mainstream image formats are supported in SuperMap, such as
*.bmp, *.jpg, *.tif, *.gif, *.img, etc. There is no limit for the size of original image. Whereas
the volume of SDB datasource in SuperMap is limited to 2GB.
Compressed image formats supported in SuperMap is *.sit. SuperMap SIT (SuperMap
Image Tower) is a new storage format for raster data. It combines the techniques of
image compression and image pyramids, which not only compress image data
significantly, but also solve the problem of slow display of large image data. The
structure of SIT file is similar to pyramid, so there is no need to create pyramid of it, SIT
can only be imported as Image dataset.
Figure 2-3
SuperMap provides an image plugin data engine, so you can open some image data directly in the
Open Datasource dialog box (Refer to Figure 2-4) instead of importing them. Below are the data
formats that can be opened directly:
*.bmp, *.jpg, *.png, *.tif, *.gif, *.sit, *.img, *.sci, *.gci, *.sct.
*.sci is map cache file of SuperMap, *.sct is the terrain cache file of SuperMap.
This chapter introduces how to set coordinate system and transform projections in SuperMap
Deskpro .NET.
In SuperMap, coordinate systems are divided into three categories: Planar Coordinate System,
Geographic Coordinate System and Projected Coordinate System. The default is planar coordinate
system which means when you create a new datasource, there is no coordinate system for it.
Most commonly used coordinate systems are included in SuperMap Deskpro .NET, it also enables
you to transform one coordinate system to another one and define your own coordinate system
when it is not included in the default library.
In SuperMap, datasets can have different coordinate systems from the datasource that contains
them, it is recommended that you put datasets with the same coordinate system in one
datasource, and set the coordinate system of the datasource the same with the datasets. The
newly created dataset has the same coordinate system with the datasource.
Table 3.1 shows the comparison between geographic coordinate systems and projected
coordinate system.
WGS 1984
Geographic
NAD1983
Coordinate
International
System
1927
Gauss_Kruge
Projected
Albers
Coordinate
Lambert
System
UTM
When you create a new datasource, there is no coordinate system (Planar Coordinate System),
you can reset or import a coordinate system for it through the Properties dialogue box of the
datasource (Refer to Figure 3-1).
Figure 3-1
Rest or Import coordinate system only changes the coordinate unit, the actual
locations(coordinates) of geometry features don’t change. It’s commonly used to set coordinate
system for new datasource or dataset that has right coordinate under certain coordinate system
but was not set to this coordinate system.
Procedure:
Datasource Properties > Projection Info > Reset the Coordinate System
For example, Figure 3-4 shows an image dataset that has no coordinate system, the coordinates at
the red point are displayed as X, Y values with the unit Meter. But you can see that these values
are right if the coordinate system is WGS 1984, in this case, you can use the Reset method to set
the correct coordinate system for the image dataset.
Figure 3-5 shows the result after resetting, the value doesn’t change, the image dataset doesn’t
distort, the only thing that changes is the unit of the coordinates.
Figure 3-4
Figure 3-5
Figure 3-6
(2) Click the Parameters tab, set the correct values for the parameters displayed. The
parameters False Easting and False Northing are used to avoid negative values of
coordinates.
Figure 3-7
(3) Click OK to finish the customization process.
There is a much easier method for setting coordinate system called Import Coordinate System,
you can set the coordinate system for a new datasource or dataset by importing from currently
open datasource or dataset, or import from projection file, such as *.prj, *.xml, etc., as shown in
Figure 3-8.
Figure 3-8
Procedure:
Right click on the datasource or dataset that you want to set coordinate system, choose
properties to open the Properties dialogue box, click the Import button to open the Import
Coordinate System dialogue box, then choose the method you want to use to import a coordinate
system for the datasource or dataset.
A geographic coordinate system defines a framework for identifying locations on a 3D globe. Each
geographic coordinate system (GCS) has a spheroid which sets size and shape. Each geographic
coordinate system is also tied to the earth in a particular way. Because of this, the same location
on the ground will have different coordinate values in different geographic coordinate systems.
Displaying data in a projected coordinate system can exaggerate the differences which can be
from a few centimeters to hundreds of meters. If you are using datasets that are based on
different geographic coordinate systems, you will need to set a geographic, or datum,
transformation.
A geographic transformation is always defined in a particular direction, like from NAD 1927 to
WGS 1984. If a pair of geographic coordinate systems does not have any transformations, it is
sometimes possible to build a chain of transformations by using a third geographic coordinate
system. Most often, WGS 1984 is the common link. If you want to perform a transformation, the
method and parameter values are necessary information.
SuperMap provides 6 transformation methods, these transformations can define the ellipsoid’s
displacement only (simple ellipsoid shifts, Geocentric Translation or Molodensky models) or the
displacement, the orientation and the scale factor, too (shifts with rotation, 7-parameter or
Bursa-Wolf models).
The following steps take the transformation from WGS 1984 to European 1979 as an example to
Figure 3-9
Procedure:
Open the Properties dialogue box of the original dataset, click the Transform button
to open the Transform Projection dialogue box, as shown in Figure 3-10.
Figure 3-10
Click Set Target Projection and the Projection Settings dialog box will display. Find
European 1979 coordinate system in the Default folder of Geographic Coordinate
System, click Apply to close this dialogue box.
Figure 3-12
Between any two geographic coordinate systems, there may be zero, one, or many
transformations. Some geographic coordinate systems do not have any publicly known
transformations because that information is considered to have strategic importance to a
government or company. For many GCS, multiple transformations exist. They may differ by areas
of use or by accuracies. Accuracies usually reflect the transformation method.
Regardless of what method is used, each transformation is designed for a particular area, and
arguments can be made for the application of each transformation. One important consideration
is consistency, using the same transformation each time, to transform between two geographic
coordinate systems.
For more information about the transformation methods and parameters, please visit this
website http://www.epsg.org/ and choose the appropriate transformation method.
Vectorization is the process of converting features on a paper map into digital format. It is an
important approach to collect spatial data. You can use a digitizer as well as the vectorization
tools in SuperMap Desskpro .NET to create new features or edit existing features on a digital map.
This topic describes the workflow for digitizing a paper map:
1) Preparing the paper map: including scanning, importing and registering of the paper map;
2) Digitizing the paper map: including creating the target vector data, setting appropriate
snapping tolerance, digitizing;
3) Attribute data collecting: including creating new attribute fields, inputting attribute
information for each graphic feature;
4) Data quality checking: including accurate editing of geometric features, and error checking
of attribute data.
This chapter will focus on the two main procedures during vectorization, including map
registration and digitizing.
Before you can start digitizing, you must register your paper map into real-world coordinates.
This allows you to digitize features directly in geographic space. Bellow are the steps for
registering.
Choose Data > Registration > New to open the Registration Settings dialogue box , select the
dataset to be registered in the Registration Layer group, if there is another dataset of the same
area has the correct coordinate system, you can use that dataset as a reference layer. If not, you
can leave the reference layer empty and use the control points on the registration layer to
register.
Figure 4-1
Select a registration method from the Algorithm dropdown list under the Registration tab. Four
Illustration
The accuracy of control points will greatly influence the accuracy of the result data. There are
several places to pay attention to when selecting control points:
1) Since the precision of control point influences the precision of image register directly,
high-precision control points should be selected, such as landmark buildings with
distinguishing features, roads, intersections of rivers, etc.
2) The control points should distribute uniformly on the source map.
Click on the control point of the scanned paper map, the x, y values of the source point will
display in the bottom control point list panel. If you are not using reference layer, then double
click on the record from the list to open the Input Control Points dialogue box, and input the
correct target coordinates in the X, Y text box, as shown in Figure 4-2.
Figure 4-3
Repeat this process until all the control points needed are picked.
Since the selection of control points is generally done by hand, errors are inevitable. Error
calculation can check if the errors are within the tolerance. X, Y and root-mean-square error are
provided in SuperMap Deskpro .NET, the unit of the error is the same with the unit of the dataset.
Figure 4-3
If the errors are within the tolerance, you can continue with the following process. If not, you
need to modify the control points until the errors are within the tolerance. Here are the steps to
modify the positions of control points:
1) Lock the control point with large errors: only one control point can be locked at a time.
The former point unlocks automatically when a new point is locked.
2) Relocate the control point: After locking the control point, click on the right location in
Figure 4-4
4.1.4 Registration
When the errors are within the tolerances, you can click the Execute button in the Calculate
group of the Registration Tab to perform the registration, as shown in Figure 4-5.
Figure 4-5
After registering, the map will have correct coordinates, but the coordinate system may be still
not right, you need to reset the coordinate system to the one you used in registration. For details
about how to reset coordinate system, please refer to Chapter 3.
Screen digitizing is manual digitizing on the computer monitor using a scanned paper map as
background. To start digitizing, you need to firstly open the scanned paper map in the map
window and overlay an empty vector dataset on the paper map, set the vector layer editable, then
start to trace the features on the paper map.
The spatial relationships of geometric features are very important. To ensure the correct and
accurate of spatial features, SuperMap provides Snapping Settings to facility tracing, before
tracing, it’s a good idea to turn on the snapping options accordingly.
Snap Setting Procedure:
Choose Snap Settings in the Settings group under Map Operations tab, the Snap Settings dialog
box will display, there are many options in this dialogue box, check the checkbox in front of the
each option if you want to use it, as shown in Figure 4-6.
Figure 4-7
After setting the snapping options, you can start to trace spatial features.
Procedure:
1) Create a vector dataset and add a Name field to store the name of each geometric
feature, as shown in Figure 4-8 and Figure 4-9.
Figure 4-10
Figure 4-11
4) After tracing a complete spatial feature, double click it to open the Properties dialogue
box and enter the corresponding attribute information.
Figure 4-12
5) Repeat this process until all the features are traced and attribute information are input.
This chapter aims at visualization of the spatial data, mainly focusing on preparing symbol
libraries, setting layer styles and scales and creating different types of thematic maps.
There are three types of symbol libraries: marker, line and fill libraries. The symbols are used to
represent the geographic features on the map. The symbol libraries can be stored in the
corresponding files: marker symbol library (*.sym); line symbol library (*.lsl); fill symbol library
(*.bru). Also the symbol libraries can be directly saved in the workspace. You can replace the
default symbol library and create new symbols by yourself.
Users can extend a marker symbol library through creating new marker symbols. Users are
allowed to create both 2D and 3D marker symbols. 2D marker symbols are used to represent
points in 2D map window, while 3D marker symbols are used to represent points in both 2D map
and 3D scene. Below are the steps for creating marker symbols.
Procedure:
1) Open a workspace where you want to store your symbols. Double click Marker Symbol
Library under the Resources node to open the Marker Symbol Library dialogue box, as
shown in Figure 5-1.
Figure 5-1
2) Select the sub-group under the Root Group on the left to specify where you want to
place the new marker symbol. Then click the Create button at the bottom and choose
Create 2D Marker Symbol to open the Marker Symbol Editor where you can create a
Figure 5-2
3) In the Marker Symbol Editor dialog, the symbol ID and symbol name must be specified.
The meanings of symbol properties are listed below:
ID: The symbol ID which uniquely identifies a symbol in the symbol library. Different
symbols in the same symbol library cannot have the same symbol ID.
Name: The display name of the symbol in the symbol library. Different symbols in the
same symbol library can have the same names.
Origin: The origin of the marker symbol in the drawing panel.
Size: The default size of the marker symbol. If users set the size to 0 in the Marker
Symbol Selector, the default size will be employed. The default size of a marker symbol
varies from 0 to 25.5 mm.
Figure 5-3
4) In the drawing panel, draw graphics to create a marker symbol. Here we take a point as
an example. Click the Point button, then click at anywhere in the drawing panel to draw
a point.
Figure 5-5
6) The new marker symbol can be further edited. To do it, select the marker symbol, click Edit
at the bottom of the Marker Symbol Library panel.
To save the new marker symbol to the symbol library, you need to:
Save the workspace
Or export the marker symbol library as a file. In the future, you can open or import it to
another marker symbol library.
1) Open Marker Symbol Library dialogue box and select the sub-group that you want to store
the symbol the same as creating 2D marker symbol. Choose Create 3D Marker Symbol from
the Create... dropdown button.
Figure 5-7
3) After opening the 3D model, you can preview it in the 3D Marker Symbol Editor. In addition,
you can set the properties for the symbol and adjust the display styles to satisfy your needs.
Figure 5-9
Users can customize line symbols through the Line Symbol Editor dialogue. Below are the steps
to create line symbols.
Procedure:
1) In Line Symbol Library dialogue box, select a group on the left to store the new line symbol,
click the Create button at the bottom to open the Line Symbol Editor where you can create a
new line symbol. Here you must specify the symbol ID and symbol name.
Figure 5-10
Figure 5-11
2) In the Child Line Manager panel on the left of the dialogue box, click the add button to add a
child line. You can add more than one child line in the Child Line Manager, and set their
styles, properties and solid pattern, as shown in Figure 5-12. When finished, click OK to add
the new line symbol to the symbol panel.
The new line symbol can be further edited. To do so, select the symbol, click Edit at the
bottom of the Line Symbol Library dialog box.
Users can customize fill symbols through Fill Symbol Editor. Below are the steps for creating fill
symbols.
Procedure:
1) In the Fill Symbol Library dialogue box, select a sub-group on the left to store the symbol, click
the Create button at the bottom to open the Fill Symbol Editor where you can create new fill
symbols, as shown in Figure 5-13.
Figure 5-13
2) Symbol properties you must specify include the symbol ID and the symbol name. (Refer to
Figure 5-14)
ID: The symbol ID uniquely identifies a symbol in the symbol library. Different symbols in the
same symbol library cannot have the same symbol ID. A default symbol ID will be provided
after creating a fill symbol.
Name: The display name of the symbol in the symbol library. Different symbols in the same
symbol library can have identical symbol names.
Figure 5-15
Figure 5-16
3) After selecting a fill symbol, you can specify the fill pattern. To do so, click the Add button
below the Select button, and then move the mouse to the pattern generation area. When the
Figure 5-17
The fill pattern will be displayed in the Preview area.
Figure 5-18
4) When finished, click OK to add the fill symbol to the symbol pane.
Marker Symbol Library File: A file with the .sym extension which stores the marker
symbols.
Line Symbol Library File: A file with the .lsl extension which stores the line symbols.
a In the Symbol Library Manger, click the File menu, select Open Symbol Library File in the
drop down list.
Figure 5-19
b In the Open dialog box, select the symbol library you want to open. When you click Open,
the currently opened symbol library will be closed and the selected symbol library will
be opened, with all symbols in the selected symbol library loaded into the manager.
Tip: In the Symbol Manager, the original symbol library will be closed if you open
another one. The original symbol library will disappear if it is not saved as a library file
or in a workspace.
a In the Symbol Library Manger, click the File menu, and select Load Default Symbol
Library drop down list.
Figure 5-21
i. Click Yes to close the currently opened symbol library and load the default marker
symbol library. If the original symbol library is associated with a workspace, and
you saved the workspace after loading the default, the original symbol library will
be replaced by the default symbol library. If you restore the symbol library through
the Load Default Marker Symbol Library command, but didn't save the workspace,
next time when you open the workspace, the symbol library will still be the
original one.
ii. If you want to load the default marker symbol library to the currently open symbol
library as a symbol group, click No. The default symbol library will be then loaded
as a subgroup named "Default" under the root group of the currently open symbol
library, with its original group structure maintained.
iii. Click Cancel to cancel the operation of loading the default symbol library, and close
the Load Default Symbol Library dialog box.
4) Import Symbol Library
The Import Symbol Library command will import the symbols in a symbol library file to the
currently opened symbol library as a subgroup under the root group, with its original group
structure maintained.
a In the Symbol Library Manger, click File, point to Import, and click Import Symbol
Library.
Figure 5-23
5) Import Symbols
You are allowed to import symbols from other symbol library files into the currently opened
symbol library.
a In the Symbol Library Manger, click File, point to Import, and click Import Symbol.
Figure 5-25
c The Select dialog box then shows up for you to select the symbols you want. You can
select multiple marker symbols with the Ctrl button pressed down, as shown in Figure
5-26.
Figure 5-26
Figure 5-27
6) Export Symbol Library
The Export Symbol Library command will export the currently opened symbol library or a
subgroup of the current symbol library as a new symbol library, with the original group
structure maintained.
Figure 5-28
If you use Export Symbol Library... command, the symbol library will be saved as a symbol
file of the version of SuperMap 6R, which will not be able to be opened with SuperMap
products of earlier versions.
If you want to open the symbol library exported in SuperMap products of earlier versions,
you can save the symbol library as SuperMap 5 symbol library following the steps below:
a In the Symbol Library Manger, click File, point to Export, and click Export as SuperMap
5 Symbol Library.
Figure 5-30
c If you click Yes, the Export as SuperMap 5 Symbol Library dialog box will show up,
navigate to the location where you want to save the library file, enter a name, and then
click Save.
7) Export Symbols as Library
You can select several symbols in the symbol library and export the symbols to an
independent symbol library, here are the steps:
a When you select symbols in the symbol panel, you can press down Ctrl button to select
more than one symbol at a time.
b Right click on any of the selected symbols, click Export as Library in the context menu
that shows up, as shown in Figure 5-31.
Maps are stored in workspaces. Opened datasets are displayed in the map window as layers,
maps are the combination of these layers with different styles. Before configuring maps, you
should make sure that you have opened the datasource and resources required to configure layer
styles. Save the map and workspace after configuring the map.
Layer control specifies how layers in the current map window are displayed, including whether
the layers are visible, selectable, editable, snappable, etc.
Click the layer control button in the Layer Manger window to open the Layer Control dialog
box.
Figure 5-32
Layer Style Setting is to set the display style of features in the same layer in the map window. You
can right click on the layer and choose Layer Style Settings, or double click on the layer to open
the corresponding Symbol Selector, and then choose the symbol you want to use.
When setting styles for region layer, note that both fill style and the boundary line style of regions
can be set. The setting of boundary is the same with the setting of line style.
For text layer and CAD layer, you cannot modify the styles through Layer Style Settings because
the features in these two types of layer can have different display style, and the dataset can save
the style, while datasets of other types can’t. Let’s take text dataset as an example to introduce the
process for setting its styles.
Set the text layer editable, select and right-click on a text to open the Properties window, and
set the style of the text
Figure 5-33
If you want to modify styles of more than one text features, select these text features by
pressing the Shift key and right-click to choose Group option to group them, then right-click
on the group and choose Properties to set uniform style for all the texts in the group
Figure 5-34
Bellow is the result after setting multiple text features to the same style at a time.
Normally, if a layer is turned on in the Layer Manager, SuperMap Deskpro .NET will display it.
However, as you zoom out, it may become difficult to see more detailed information, or as you
zoom in, information may become too coarse. While you can turn off a layer, this can be
inconvenient and time consuming, especially if your map contains several layers or if you change
the scale frequently as you work.
Layers can be set to automatically display only within an appropriate range of map scales. Here
are the steps to set this for a map layer.
Open a map (with multiple layers), zoom in or zoom out the map to the required visible scale,
right-click the target layer in the Layer Manager, select Visible Scale Range > Set Current Scale
as Min Value or Set Current Scale as Max Value, then the current scale is set as the minimum or
maximum visible scale.
Figure 5-36
Min Scale refers to the smallest desired map scale at which the layer is visible in the display (the
minimum scale). Max Scale refers to the largest desired visible map scale. Once you set the range
of visible map scales, whenever the scale of the map window is outside the layer's visible scale
range, the layer will not be drawn.
Users can also use the Layer Control panel to set the visible scale range. Click the Layer Control
Figure 5-37
A thematic map is a map on which features are symbolized based on an attribute table. A
thematic map conveys more information than a map on which all features have the same symbol.
Using thematic map, we can clearly see the patterns of a phenomenon.
SuperMap provides seven types of thematic maps and they can be divided into two groups. Single
attribute field can be displayed in Unique Value, Ranges, Dot Density, Gradual Symbol and Label
Maps. Multiple attribute fields can be displayed in Graph and Users-defined thematic maps. Here
are the illustrations and comparisons of various thematic maps.
Mainly used to emphasize the differences among features, use unique data value to
set display styles of map features, namely using different colors to represent objects
with different values for an attribute. E.g. to represent different countries in the
Unique Value Map world. Generally, Unique Value Map is more appropriate to distinguish themes on the
basis of inherent properties (name, type, etc), while not suitable for text datasets.
Mainly used to display relationships between data and geographic position. Users can
specify the ranges for the field values and set different displaying styles for the values
in each range. With different displaying styles we can easily find tendency of values in
Ranges Map a certain region. E.g. a Range Map of topographic elevation can visually show ups and
downs of the terrain.
Graduated symbol map uses the size of symbol to represent the value of a field, so it’s
only appropriate for numerical field. The size of symbol is directly proportional to
Graduated Symbol your data values.
Map
Dot Density map uses the number of dots to represent the value of a field. Each dot
represents a value. It is created for region layers where dots are distributed randomly.
Generally it represents one theme, such as population, quantity of arable land or
Dot Density Map distribution of crops.
Displays the statistical result of several fields at a time. It provides multiple graph
types for users to create various graph thematic maps. We can compare these
thematic variables in the entire map; for example, statistical thematic map of male
and female populations of a certain administrative district shows the difference
Graph Map among various districts and helps to analyze the gender structure. On the basis of
graph thematic map of agriculture structure in a region, we will discover the
distributions of farming, forestry, animal husbandry, sideline and fishery.
Displays values of a field in the attribute table in the form of labels in the layer. It’s a
method to give annotation to a map, appropriate for text fields and numeric fields.
Label Map
Creates thematic map using user-defined styles. By setting styles according to the
numeric field values in the attribute table, which corresponds to the symbol IDs in the
User-defined Map symbol libraries, you can display the geometry features more freely.
Figure 5-38
3) Click the New button in the target group. The Thematic Map Manager will show up.
Figure 5-40
5) You can change the default settings in the Thematic Map Manager to get favorable effects.
Another way to create thematic map:
Right-click the target layer and choose the Create Thematic Map option to open the Create
Thematic Map panel and choose the desired thematic map.
Figure 5-41
Setting expression field is very important since thematic map is created on the basis of the
dataset’s attribute field values. There are three ways to select appointed field (or field expression)
as thematic variable in the thematic map window:
Directly use the field of current layer: such as the system field SmID, SmUserID or user-defined
field Code, etc.
Using field expression: you can directly enter an expression to express the growth of population
or select the Expression option, choose SQL Expression button to edit the needed expression as
thematic variable in the displayed dialog box, e.g. (Pop2000 - Pop_1990) / Pop_1990. You can
refer to User Manual about the functions or operators.
In SuperMap Desktop .NET GIS products, users can save the existing thematic map parameters,
including thematic variables, field values, styles and visible scales, etc as an XML file, which we
call thematic map template. Or save the existing thematic map to the thematic map template
library. Then users can quickly create a large number of thematic maps of the same type without
reconfiguring the thematic information.
Figure 5-42
Other ways: Right-click the target thematic layer in the Layer Manger to choose the Save to
Thematic Map Template Library option, then enter the name of a template and specify the
location on the displaying dialog box, and click Save.
Figure 5-44
Other ways: Select the target layer in the Layer Manager, click the drop-down arrow of the target
thematic map templates on the group, and apply the selected template from the drop-down list.
The thematic maps will be displayed in the Layer Manager as layers. We can set the maximum
and minimum map scales for the layer. The thematic map will be invisible when the scale is not
within the thematic map scale range.
After making a digital map, we generally need to set the layout and print the map. This chapter
introduces how to create, adjust the layout, output to other file formats and print the layout.
A layout is used for map layout. You can add map elements, such as the map, scale, legend, north
arrow, title, etc., to complete a map and you are permitted to edit the properties of those elements
in a layout window. Since a layout cannot exist independent of a workspace, the workspace on
which the layout relies must be saved if you want to save the layout for future use.
Procedure: Right-click the Layouts icon in the Workspace Manager, and click New Layout on the
shortcut menu. Then a new layout will be created, as shown in Figure 6-1.
The Tabs which are associated with Layout will be activated in the Ribbon area after creating a
new layout window. You can set the layout by using the Layout Operations, Styles, Draw,
Format, Page Tabs.
Figure 6-1
Gridlines: The Gridlines group on the Page tab organizes commands for settings related to
gridlines. You can specify whether to show gridlines or not, whether to snap to the grid when
drawing and editing, and the gridline spacing.
Page Setup: Set up the page, such as page orientation, size, margins and background color.
Layout Setup: You can set columns and rows to print separately.
Note: When setting the page width and height in the Page Setup group, it only works for page in
Figure 6-2
When maps are output in non-electronic format or stored physically, in order to identify the
paper map information, it’s necessary to add some auxiliary elements to describe the map
information, including map, north arrow, title, scale bar, mapping unit, date, etc. Map is the most
significant element and others are map descriptions.
In SuperMap Deskpro .NET, a key step in Layout is adding various elements to the map layout.
1) Click the image part of the Map button, or click Rectangle in the Map drop down list to turn
the mouse pointer to . You can also choose another shape to insert a map frame of the
shape.
Figure 6-3
2) Click and drag in the layout to draw a rectangle.
3) Click again to finish the rectangle. The Select Fill Map window shows up.
Figure 6-5
Map: The map associated with the map frame. All maps in the current workspace are
provided in the Map drop down list. You can click the Map drop-down arrow and click a
map to change the map associated with the map frame.
Scale: The display scale of the map. You can change the scale by directly typing in the
text box.
Rotation: The rotation angle of the map. You can choose an angle from the Rotation
drop down list or directly typing in the text box and press enter to apply the rotation
angle.
Bounds: The extent of the map. The values in the Top, Bottom, Left and Right text boxes
are used to indicate the extent of the map. They are not editable. The values will change
with the map in the map frame.
Borders: Determine whether and how to show map borders.
2) Click the Focus Map button on the Map group of the Layout Operation tab;
Note: If a map is locked, only elements in the map can be operated on. If you want to change the
layout or other map elements, unlock the map firstly.
You need to make a new map if you want to change the data or displaying style of the map.
Figure 6-6
For the procedures to add north arrow, title, border, etc, please refer to the procedure of adding
map elements.
Various elements can be added to a layout window, and you should select a certain map before
adding scale bar and legend.
Editing a layout is mainly adjusting the locations and styles of the elements in the layout. Double
click the elements and modify the parameters in the related property dialog box (Refer to Figure
6-7), below are two other ways to adjust the location.
Figure 6-8
There are two ways to save a layout: one is on the basis of workspace, thus you must save the
workspace after saving the layout; the other is to save the layout as a layout template file (*.ult).
When we finish editing the layout, we are going to print it. Layout in SuperMap can be saved as
files in other formats or be printed in Laser Printer or Jet Graph Plotter.
Through this way, a layout can be saved as a picture that can be stored on the disk. Supported
output format includes *.bmp, *.jpg, *.png, *.tif, so you can insert the picture into Word or other
OA systems.
Figure 6-9
Print the map with standard settings in Windows. It’s the most direct way and can be applied to
common printers or professional plotters.
Click Layout Operations > Print, and set the layout in the Print Setup dialog box, and click OK to
print the layout. (Refer to Figure 6-10)
Figure 6-10
In the Layout Setup group (Refer to Figure 6-2), choose Columns and Rows to print separate
pages, as shown in Figure 6-11.
Note: If the size of the layout you want to print is larger than the standard size of print page in
Windows, the printer will automatically print the layout on separate pages. Thus we advise you to
set it to two pages of the same size and click Print Preview button to test the layout output effect
before printing.
A datasource stores spatial data independent of a workspace. Based on how and where
datasources are stored, there are three types: file datasource, database datasource and web
datasource.
SuperMap file datasources include two types: SDB Plus datasources and UDB datasources. An
SDB datasource is stored in an .sdb file and an .sdd file, and a UDB datasource is stored in a .udb
file and a .udd file. When creating an SDB Plus datasource, an .sdb file and a corresponding .sdd
file are generated. And when creating a UDB datasource, an .udb file and a corresponding .udd file
will be generated.
Besides geometric objects, GIS data includes attribute information for these geometric objects.
For file datasources, the .sdb and .udb files are used to store spatial information, while the .sdd
and .udd files are used to store attribute information. There is a one-to-one relationship between
the datasource and the datasource file. (Refer to Figure 7-1)
Figure 7-1
A UDB datasource is a cross-platform file datasource that supports efficient access to massive
data. A UDB datasource can store 12TB of data at most. An SDB Plus datasource is a compound
document-based datasource which features fast access speed. However, the SDB datasource
doesn't support asynchronous multi-user editing. SDB Plus datasources are suitable for small or
medium sized systems on Windows platforms.
SuperMap database datasources are datasources stored in databases, such as Oracle Plus
databases and SQL Server Plus databases. Both the spatial information and attribute information
of the database datasource are stored in databases. (Refer to Figure 7-2)
To operate data in a datasource, you must open the datasource first. All operations conducted on
the datasource are directly saved to the datasource instead of the workspace because the
datasource is stored independent of the workspace and the workspace only contains the
connection information to the datasource. Thus, a datasource will not be deleted when the
workspace is deleted.
Figure 7-2
Web Datasources are stored on web servers and accessed through URL addresses.
Figure 7-3
SuperMap SDX+ (Spatial Database eXtension +) is a spatial data engine developed by SuperMap,
which provides support for comprehensive types of objects, including points, lines, regions, 3D
points, lines and regions, complex data models like text objects (TEXT), complex objects (CAD),
grid data (GRID) and image data (Image).
SuperMap SDX+ spatial data engine supports most of the currently popular commercial
databases, such as Oracle, SQL Server, DB2 and so on. These databases can be run on various
operating systems (OS), which can build multiple-node clusters between databases of the same
type and build distributed clusters in heterogeneous databases and heterogeneous operating
systems.
Figure 7-5
DBMS generally contains service components and client components, and service components
must be installed. You can install service components on the same machine or different machines
which need to be connected by network.
After establishing SuperMap spatial database datasource, 9 system tables starting with Sm will be
generated. Below are the descriptions of important tables:
SmRegister table is used to centrally manage vector datasets. A new record will be added into
the table when creating a vector dataset. Similarly, when deleting a dataset, the corresponding
record will be deleted from the table. There are some important fields in them (Refer to Figure
7-6):
SmDatasetID value is determined by the order each dataset is added into the datasource;
SmTableName is the name of table in database when creating a dataset; the value is always
the same;
SmDatasetName is the specified name when creating a dataset; it’s the unique identifier
when managing data by SuperMap SDX+;
SmDatasetType is the type of dataset.
Note: SmDatasetName and SmTableName are the same when creating a new dataset. If you
rename the dataset, the new name will be stored in SmTableName.
Figure 7-6
SmImgRegister is used to centrally manage raster datasets. It’s basically the same with vector
dataset register information table; we don’t go into details here.
Figure7-7
SmWorkspace is used to manage workspace. This table will be generated only when you save
workspace in database, and it won’t be generated when you create datasource or copy datasource.
At present workspace can only be saved in SQL and Oracle databases.
SmFieldInfo table (Refer to Figure 7-8) stores various basic information of attributes, including
field name, alias and type. Field name and alias are different. Field name is defined when creating
a new field. Field name can’t be changed and the alias is allowed to be modified.
Figure7-8
Since there are various spatial database engines, now we take SQL Server database as an example
to introduce how to create and open database datasource. Other functional operations and spatial
data management are similar to file-based datasource.
Figure7-9
When importing spatial data into database, you not only need to copy all the datasets from file
datasource into database datasource, but also pay attention to saving the workspace.
Datasource alias is used to identify datasource in the workspace and can be appointed when
opening datasource. When we create a map where the layer name contains the datasource alias
name, datasource alias will be saved in the workspace after workspace is saved. Make sure to
keep the alias unchanged if you want to replace datasource in the workspace; this facilitates the
import of spatial data. Figure 7-12 illustrates the procedure of importing spatial data into
database.
Note: Workspace can be saved as files (*.smwu or *.sxwu, *.smw or *.sxw) or as databases (SQL
Server or Oracle). If saved as databases, it can be saved in the database created by SuperMap
engine or in the nonspatial database. For instance, SQL Server contains two databases; one of
them is not created by SuperMap spatial database engine but can be used to save workspace. We
Figure 7-12
SuperMap Deskpro .NET integrates 2D map with 3D scene, which allows you to view large
amounts of GIS data on a globe surface. Spatially referenced data is placed on a 3D globe surface,
displayed in its true geodetic location. You can manipulate the globe, then investigate and analyze
its data the same with 2D map.
SuperMap 3D scene uses a globe to represent the earth, with a global image overlaid on it. The 3D
scene also simulates the sky and atmosphere of the real world. Other properties include the
Status Bar, Navigator, Grid, etc. You can control whether to show these properties or not through
the Properties group under the Scene Properties tab, as shown in Figure 8-1 and Figure 8-2.
Figure 8-1
Figure 8-2
Before talking about the layer organization, it’s important to know that all the data formats
supported in 2D map are also supported in 3D scene, which is called integration of data. Besides
the 2D data, other data such as 3D models and KML can also be added to 3D scene. Layers in 3D
scene are classified into three categories: Screen Layer, General Layer and Terrain Layer, as shown
in Figure 8-3. When adding 2D datasets and maps to 3D scene, you only need to click and drag the
corresponding data from workspace manager to the target scene. For other types, you can add
through the Data group under the Scene Operations tab.
Figure 8-3
Note that you can only add data within the following extent to the 3D scene:
up: 90°; down: -90°; left: -180°; right: 180°
Screen layer is used to manage static objects such as watermark, logo, descriptive text, etc. It is
different from other layers, the objects in the screen layer are not geographically referenced, and
their positions are calculated according to the screen coordinates of the scene window. The origin
of the screen coordinate is at the upper left corner of the scene window, and the unit is pixel. So
the features in the screen layer will not change with the operations on the globe, such as zoom in,
zoom out, rotate, etc.
Supported data formats that can be added to screen layer include PNG, JPG, JPEG, BMP and GIF.
Procedure:
1. Click the Screen Picture button in the Data group under Scene Operations tab, as shown in
Figure 8-4.
Figure 8-4
2. In the Add Screen Picture dialog box, click the picture you want to add and then click Open.
Figure 8-5
4. Right click on the name of the screen layer that you just added, and set it editable, move it to
any place you like in the scene window. Or you can open the properties window and set the
X, Y position, width, height, etc. for the screen picture, as shown in Figure 8-6.
Figure 8-6
The vector data that you can add to 3D scene includes 2D/3D point, line, region datasets, text
dataset, CAD dataset and maps. To add these data to 3D scene, just click on the dataset and drag it
into the 3D scene, as shown in Figure 8-7.
Figure 8-7
The raster data formats that can be added to general layer currently include AIASCII grid file, TIFF,
SIT, Erdas image, JPG, PNG, BMP, GIF and Telecom raster file. To add raster data to 3D scene, the
method is the same as adding vector data. If the data you want to add is not included in your
datasource, you need to firstly import it into your datasource. To import raster data, click the
Import button under the Start tab and choose the data type you want to import, or you can right
click on the datasource and choose Import Dataset to do the same work, as shown in Figure 8-8
and Figure 8-9.
Figure 8-9
Figure 8-10 is a TIFF data that has been added to the 3D scene.
Caching is a very effective way to make your maps display faster. When you create a map cache,
the software draws the entire map at several different scales, and stores copies of the map images.
It's much quicker for your desktop or server product to handle a cached image than to draw the
map each time someone requests it. For the 3D scene, SuperMap Deskpro .NET provides various
cache strategies for you to optimize the scene performance. You can create 3D map cache, vector
cache, image cache, terrain cache, model cache and scene cache, and these cache files can be used
at both the desktop and server side. To add the cache files to 3D scene, click on the Cache or Add
Cache button under Scene Operations tab, as shown in Figure 8-11. Please refer to Section 8.4.2
for details about how to create map caches and use them.
Figure 8-11
Keyhole Markup Language (KML) is an XML notation for expressing geographic annotation and
visualization within two-dimensional maps and three-dimensional Earth browsers. The KML file
Figure 8-12
The formats of 3D models currently supported are .3ds and .sgm, .dae and .x formats will also be
supported in the future. SGM (SuperMap Global Model) is a new 3D model format developed by
SuperMap which is featured with its fast loading and displaying speed and file encryption
mechanism.
To optimize scene performance, it is suggested that you convert .3ds to .sgm and then add .sgm to
the scene, please refer to section 8.4.1 for details about how to convert .3ds to .sgm.
The last type of layer that you can add to is terrain layer, which is used to manage Grid, DEM
format data and terrain cache files. To add Grid or DEM data to the scene, just drag the
corresponding dataset to your scene. With your left mouse up, a window will pop up to ask you
whether to add you dataset as terrain or image data, as shown in Figure 8-13.
Figure 8-13
If you add it as Terrain data, the elevation of the data will be employed and you can view the
ups and downs of that area visually. As described in Section 8.1, the globe in the 3D scene
has an image overlaid on it, because the terrain data added in the 3D scene has the same
Figure 8-14
If you add it as Image data, the elevation of the original data will be ignored, and it will only
be added as an image to the General Layer, and the Exaggeration value has no effect on an
image data, as shown is Figure 8-15.
Figure 8-16
Having talked so much about the layer organization of 3D scene, what can it do for us? Well,
SuperMap 3D technology is not just for 3D visualization, but to integrate 2D with 3D, that is, you
can use your own data, configure your own map, and perform various analyses in 3D scene, etc.
just the same as in 2D map window. Examples of making thematic map, rapid modeling, using
KML files and visibility analysis will be introduced in the following sections.
The data used in this example is the sample data World.smwu, where there are well-made maps
which can be added directly to the 3D scene. Here we just demonstrate you the integrated
operation of 2D map and 3D scene.
The tabs of Deskpro .NET are contextual, so only when you open a 3D scene, the Thematic
Mapping tab for the 3D scene will show up. Deskpro .NET allows you to create thematic maps for
vector layers such as point, line, region, network, route datasets, and the thematic map types for
3D scene include Unique Values, Label, Range and Graph Map. Here we use Unique Values Map as
an example, which is best for displaying administrative divisions.
Procedures:
1. Click the Start button, and open sample data World.smwu, as shown in Figure 8-17.
Figure 8-18
3. Click New button in Unique Values group, open the 3D Unique Values Map window, drag or
double click on the top of the 3D Unique Values Map window to put it on the right side of
the application. As default it will use SMUSERID field as the Expression value and use the
first color ramp in the Color Ramp drop down list.
Figure 8-20
5. If you want to change the style of individual country, first select the country, then click the
Style button or double click the color button in front of the country, as shown in Figure 8-21.
And if you closed the 3D Unique Values Map window and want to open it again to change
the map style, double click the corresponding node in the Layer Manager window, as shown
in Figure 8-22.
In this example, we will introduce how to build 3D models based on a 2D region dataset
representing a group of buildings.
Procedures:
Step 1: Creating a New Scene and Adding Data
1. Start SuperMap Deskpro .NET.
2. Open the Modeling.udb datasource, which is located under the installation path:
\SuperMap Deskpro .NET 6R\SampleData\3D\.
3. Create a new scene. To achieve this, you can click the Scene drop-down button in the
Browse group under the Start tab, and then click New Scene in the drop-down list. Or right
click on the Scenes node in Workspace Manager and click New Scene.
4. Drag the Buildings dataset to the newly created scene. Or right-click on the Buildings
dataset and then click Add to Current Scene in the context menu.
5. When finished, a child node named Buildings, which is corresponding to the newly added
Buildings dataset, shows up under the General Layers node in Layer Manager. Double-click
the Buildings layer in Layer Manager to zoom in to the full extent of the Buildings. Using the
Navigator on the upper right corner of the Scene window to have a better view of the
buildings, as shown in Figure 8-23.
Figure 8-24
Figure 8-25
Relative to Ground: Relative to Ground is an altitude mode measuring altitude from the
earth's surface. For example, if the altitude of a layer is 100 meters, the layer will be
placed at a distance of 100 meters relative to the earth's surface, as shown below.
Figure 8-26
Relative to Underground: The Bottom altitude can be set as negative in this mode, that is,
the geometry features and models can be put underground. This mode is very useful for
displaying underground pipeline, seabed, etc.
Figure 8-28
3. Next, specify the textures. In the Extending and Mapping group, click the Top Texture
drop-down arrow to select a text filed in the attribute table which specifies the paths of
texture pictures, the path can be full path or relative path, which is relative to the
datasource you use, in this example, it is the Modeling datasource. If there is not such a
field in the attribute table, you can create one (text type) and give it values as the paths of
the texture pictures. You can also use one picture for all the buildings by clicking the
Figure 8-29
In SuperMap Deskpro .NET, 3D models are added through KML file or 3D model cache file (*.scv).
Here are the procedures for it:
1. Open 3D scene in Deskpro .NET.
2. Create a KML file or 3D model cache file to store the 3D model to be added. To create a
KML file, click the KML drop down list under the Scene Operation tab, and choose New
KML Layer, or click the Model button to open the Add Model dialogue box, as shown in
Figure 8-30. Now let’s see how to use the Add Model dialogue box to add the model.
Figure 8-31
3. After the KML or SCV layer is created, it will be displayed in the Layer drop down list, and
Figure 8-32
Figure 8-33
4. After adding the KML or SCV layer in the scene, you can still add more models and edit
their properties. To add more models to the KML or SCV layer, first set the layer editable
(only one layer can be set editable at a time), then right click on the layer’s name and
choose add model.
Figure 8-35
All the spatial analysis methods provided in SuperMap Deskpro .NET can be used in both 2D map
and 3D scene, and the operation methods are all the same. Here let’s see how to perform visibility
analysis in 3D scene.
Visibility analysis has important values in fields such as navigation, aviation, and military. It can
be used for setting radar station or TV transmitter station, route selection, maritime navigation,
etc. In the military field, it can help in laying out positions, setting observation posts, laying out
communication wires, etc. Sometimes analysis on the invisible areas can also be very useful. For
example, in low-altitude reconnaissance, the aircraft should avoid being captured by enemy's
radars, meaning that it needs to fly in the blind zones of the radars. Visibility Analysis has two
basic aspects: viewshed analysis which finds the visible areas for given observation points;
visibility analysis between two or more points.
Viewshed analysis is a process of extracting areas that can be seen from one or more observation
points which may be given an additional height. The analysis result can be output as a raster
dataset. In this example we use multi-point viewshed analysis, the result can be the union or
intersection of the viewsheds of all the observation points. When “Common viewshed" is selected,
the result will be the intersection of all the viewsheds, otherwise the union of the viewsheds.
Procedures:
1. Open BeijingTerrain.UDB in the sample data folder …\3D\OlympicGreen.
2. Add dataset BeijingTerrain to a new scene as both Terrain and Image layer. Right click on
Figure 8-37
3. Click Viewshed button in the drop down list of Visibility Analysis under Spatial Analysis
tab to open the Viewshed Analysis dialogue box.
4. Specify the observation points by mouse clicking or importing from a point dataset. Here
we use “Click to Add” button to add two observation points, and leave other parameters
as defaults, as shown in Figure 8-38. You can also use the Export button to export
your observation points for future use.
SuperMap surface analysis provides 2-Point visibility analysis and multi-point visibility analysis
to analyze whether these points are visible to each other. In this example, we will introduce
multi-point visibility analysis.
Procedures:
1. Follow Procedure 1 and 2 in Viewshed Analysis.
2. Click Multi-Point in the drop down list of Visibility Analysis under Spatial Analysis tab to
open the Multi-Point Visibility Analysis dialogue box.
3. Specify the observation points by clicking or importing from a point dataset. Here we use
“Click to Add” button to add five observation points, set the first three points as Observed
Points in the Role column, and give the fourth observation point an appended height 50
meters, finally change the path of the result text file. The parameter settings are shown as
Figure 8-40. You can also use the Export button to export your observation points
for future use.
Figure 8-41
5. Open the result text file to see the detail information about the visibility. The text file gives
detail information about the observer point, observed point, whether they are visible and
Figure 8-42
Optimizing the performance of the scene is primarily achieved by reducing the layer amount and
displayed features. Methods for optimizing the performance of 3D scene include filtering scene
objects, filtering layers, creating 3D cache, creating scene cache, converting models, etc. Here we
will introduce two methods: Model Conversion and Creating 3D Cache.
SGM (SuperMap Global Model) is a new 3D model format developed by SuperMap which is
featured with its fast loading and displaying speed and file encryption mechanism. When using
3D models, it is recommended to convert *.3ds to *.sgm to increase the performance.
When converting .3ds to .sgm, skeletons will be extracted from .3ds models and original textures
will be resampled into a set of pictures with different resolutions. Since an indexing mechanism is
applied to these resampled pictures, textures loaded to the scene will be determined by the
display scale. Therefore, when you gradually zoom in the models in a scene, the skeleton will be
firstly displayed, then resampled textures with lower resolutions, and finally resampled textures
with higher resolutions.
You can convert the models one by one or use the batch conversion mode to convert a collection
of models at once.
Procedures:
1. Click the Convert Model button in the Data group under Tools tab to display the Convert
3DS to SGM dialog box. By default, the batch conversion mode is employed.
2. Set the path of the source 3DS model and the target SGM model. If you want to maintain
the original catalog structure, check the Maintain catalog structure box. If the box is not
checked, all converted models will be placed in the specified folder.
Figure 8-44
4. After converting 3ds to sgm, a file and a folder will be generated, the file is the *.sgm file
and the folder stores the textures of the 3D model.
Figure 8-45
Tip: please refer to the help document (Scene Operations\Processing 3D Data\Converting
Models\Introduction on Building 3DS Models) for recommendations on creating 3D models
using 3DS Max.
For the 3D scene, SuperMap Deskpro .NET provides various cache strategies for you to optimize
the scene performance. You can create 3D map cache, vector cache, image cache, terrain cache,
model cache and scene cache, these cache files can be used at both the desktop and server side.
In this section let’s see how to create 3D map cache, vector cache, image cache and terrain cache,
the creating methods for these data are almost the same. In this example, we use the sample data
World.smwu.
Procedure:
1. Click the start button , open World.smwu in the sample data list. There are vector
datasets, image datasets and maps in this workspace.
2. Click Scene Cache button in the Caching group under the Start tab to open the Create
Scene Cache dialogue box, as shown in Figure 8-46. On the top of the dialogue box, there
are three buttons for you to add datasets, maps and SIT (SuperMap Image Tower) files
and create caches for them.
Figure 8-46
3. Click to open the Select dialogue box, all the datasets in the World
datasource are listed here, click the region dataset Countries and image dataset Day to
create vector cache and image cache for them individually.
Click to open the Map List dialogue box, all the maps in the World
workspace will be listed here, click WorldMap in the list to create map cache for it.
Figure 8-47
4. Highlight different data in the list, and you may notice that the tabs below change
accordingly. No matter what data type it is, the Default tab is always there,
which allows you to set the cache extent and other parameters. Here are some of the
parameters:
Cache Extent: The map extent for creating cache files, the default is the full extent of the
data. To change the extent, click to highlight the corresponding data, and then uncheck the
checkbox before Default. If the dataset or map is opened in the map window, you can use
select a geometry feature, and use the feature’s geometric bound as the cache extent. If
there is no data opened in the map window, you can input the extent manually.
Figure 8-48
5. Figure 8-49 shows the cache folders created. After creating the cache files, you can add
them to your scene by clicking the Cache button under the Scene Operations tab, as
shown in Figure 8-50.
Figure 8-49
There are two methods to create model cache: you can create the 3D model cache file when
adding individual 3D model, as mentioned in section 8.3.3, or create via an attribute table. To use
the second method, you need to prepare a dataset to record the information needed for creating
the cache. Here are procedures for creating model cache using an attribute table:
Procedures:
1. Get 3D models in either *.sgm or *.3ds format for creating model cache.
2. Create a dataset and store the parameters needed in its attribute table. The dataset can be
point, line, region, or tabular dataset as long as it has an attribute table. The parameters
needed for creating a model cache are as follows:
Figure 8-51
Figure 8-52
3. After preparing the attribute data, you can start to create the cache. Click Scene Cache
under the Data tab, add the tabular dataset to the Create Scene Cache dialogue box, set the
parameters and click OK to create model cache.
Figure 8-53
4. Figure 8-54 shows the result of the model cache. You can add the cache file in your scene,
the properties of the model are exactly the same with the attribute data that you used to
create the cache, as shown in Figure 8-55.
Figure 8-55
This scene cache is different from the Scene Cache button we talked before, scene cache here
means creating cache for all the data in the scene. The approach is: right click in the scene
window, and choose Create Scene Cache function.
Procedures:
1. Open the sample data World.smwu.
2. Add dataset Countries, Day and map WorldMap to a new scene.
3. Right click in the Scene Window, choose Create scene Cache in the context menu.
4. In the pop-up Create Scene Cache dialogue box, all the data in the scene window are listed,
and the Add dataset, Add Map, Add File button are gray, which means you can’t add other
data.
5. Set parameters, here you can just specify a Scene Name, for the individual data in the list,
they will use the default cache names. Click OK to create cache for the data.
Figure 8-57
Exercise Data
Installation package including SuperMap Deskpro .NET and License Manager
Demonstration data in installation directory: ...\SuperMap\SuperMap Deskpro .NET
6R\SampleData
Exercises
Open an existing workspace, browse datasource, dataset, map and their properties. For
example, open ...\SuperMap\SuperMap Deskpro .NET
6R\SampleData\World\World.smwu;
Create a new datasource, create new point, line, region, text, CAD and tabular datasets,
and create new attribute fields for new datasets.
Advice: Please create new exercise folder and copy the data to the exercise folder before doing
exercises.
Main Procedures
Exercise 1:
1) Open a Workspace from the Workspace group, or right-click the workspace node in
the Workspace Manager to open it;
2) Double click the tree structure in workspace manager to browse dataset, map, etc.;
Exercise 2:
1) Create a New datasource DataSource.udb;
Exercise Data
Exercise data about Data Integration is on the training material CD\ExData1\Task2.
Advice: Please create a new exercise path and copy the data to the path before doing exercises;
Exercises
Create a datasource and import data in other formats, such as
CAD data, import *.dxf ; you can import it to GIS dataset and compound dataset, then
compare the differences;
MapInfo data, import *.mif;
ArcGIS data, import *.shp;
Image data, import *.JPG;
Main Procedures
Here we take the CAD data 4255252.dxf as an example.
2) Select Import Dataset on the right-click menu of Data Import, and import AutoCAD
data 4255252.dxf.If you import CAD data as CAD dataset (compound dataset), then
point, line, region objects are stored in one layer with the original CAD data style but
analysis is not supported; if you import CAD data as GIS dataset, then point, line,
region data will be separately stored in different layers and analysis is supported.
Exercise Data
Exercise data in Spatial Data Coordinate System is on training material CD
ExData1\Task3\projection; transformation data: ExData1\Task3\Romania_Stereo70.sdb
Advice: Please create a new exercise path and copy the data to the new path before doing
exercises.
Exercises
Main Procedures
Exercise 1:
1) Create a new datasource Data.udb.
2) Right-click the datasource, choose the Properties option. Click Import button to import
coordinate system, select the option From File and import River_line_Clip.prj.
Exercise 2:
1) Open the exercise data Romania_Stereo70.sdb;
2) Right-click the datasource, choose Properties, the Properties dialog box will be
displayed and click Transformation;
Before transformation:
After transformation:
Exercise Data
Exercise data in Spatial Data Registration is on training material
CD\ExData1\Task4\registration.sdb
Advice: Please create a new exercise path and copy the data to the path before doing exercises.
Exercises
Practice how to register with linear registration on the basis of existing coordinate
information;
Trace screen manually and add attribute information to draw geometric objects.
Main Procedures
Exercise 1:
1) Open exercise data in training material CD\ExData1\Task4\registration.sdb;
2) Click Data > Registration > New Registration Window, the Registration Settings
window will be displayed, set Registration Layer, Reference Layer and Result Data;
here we use the existing coordinates in the image to register so the Reference Layer is
empty;
4) Double click one of the records on the list of control points below, then Input Control
Points dialog box will display, enter correct coordinates of target points;
6) Perform registration.
Exercise 2:
1) Open the data registration.sdb above, take the image data after the registration as the
base map;
2) Create a new region dataset Company;
3) Create a new a field to save the company name: right click on Company Dataset >
Properties > Table Structure > New (Name Field);
4) Open the hangzhou dataset after the registration as base map and drag Company
dataset to the same map window;
6) Double click the region object and enter the corresponding attribute information.
Exercise Data
Exercise data in Symbol Integration is on training material CD\ExData1\Task5\point.sym
Advice: Please create new exercise path and copy the data before doing exercises;
Exercises
Practice how to integrate symbols in the workspace. For example, import an existing
symbol resource to the marker symbol library of the workspace World.smwu;
Design a 3D railway symbol in Line Style Editor;
Use sample data World.smwu to create a new map. Add point, line, region, text dataset,
etc., into a map and set styles. Set appropriate visible scales for layers and save map in
the end;
Use exercise data World.smwu to create various thematic maps, such as Unique Value
Main Procedures
Exercise 1:
1) Open sample data World.smwu;
2) Double click the Marker Symbol Library node in the Workspace Manager to open
Marker Symbol Library;
3) Click the menu File > Import > Import Marker Symbol Library, and select the point.sym
to import it;
Exercise 2:
Design a 3D railway symbol. Please refer to Help > Managing Symbol Resources > Demo>
Symbol Marking: Demo 10 > 3D line symbol description.
4) Set layer style. For example, double click the point layer to choose an appropriate
symbol from the Marker Symbol Library;
5) Set Layer Visible Scale, Set Current Map Scale as Min Value for Rivers layer, and the
layer will be visible after zooming in to scales greater than the min scale.
Exercise 4:
1) Open the region dataset Countries in World.smwu. Click Thematic Mapping tab >
Unique Values > New to create a unique value thematic map.
2) Set related parameters in the Unique Values Map Manager. Choose the COLOR_MAP
filed as Expression and set the different color styles for each type.
Exercise Data
Sample data is in SuperMap Deskpro .NET installation path: World.smwu
Advice: Please create a new exercise path and copy the data to the new path before doing
exercises.
Exercises
Practice to use the data in the path ...\SuperMap Deskpro .NET\SampleData\World.smwu, create
a new layout on the basis of the existing map and add elements such as map, scale, legend, north
arrow, etc. to decorate the map. Save the layout and print it.
Main Procedures
Exercise 1:
1) Open sample data World.smw, create a new layout window: Workspace > right click
on Layout > New Layout Window;
4) Click Draw tab > Map to draw a rectangle, choose WorldMap_Day as the target map;
5) Click Layout Operations tab > Focus Map, click Zoom In, Zoom Out, Pan to adjust the
position and size of map in the layout;
Exercise Data
Sample data is in SuperMap Deskpro .NET installation path: World.smwu
Advice: Please create a new exercise path and copy the data to the path before doing exercises.
Exercises
Practice to use SQL+ engine, create a SQL Server datasource, check system tables in
database and the fields in system tables;
Import ChangChun.smw to SQL database.
Main Procedures
Exercise 1:
1) Start SQL Server service;
2) Create a new SQL Server datasource, and enter Server Name, Database, User Name, and
Password;