Вы находитесь на странице: 1из 131

SuperMap Deskpro .

NET
Tutorial for Beginners

SuperMap Software Co., Ltd. Beijing


Introduction

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.

SuperMap Software Co., Ltd. Beijing


Global Training Center
globalsupport@supermap.com
May 2013

SuperMap Deskpro .NET Tutorial Book


Table of Contents
1. Introduction to SuperMap Deskpro .NET ______________________________ 1
1.1 Installation and License Configuration .............................................................. 1
1.1.1 License Types .................................................................................................................... 1
1.1.2 License Configuration ....................................................................................................... 2

1.2 Core Concepts in SuperMap Deskpro .NET ........................................................ 5


1.2.1 Workspace ........................................................................................................................ 6
1.2.2 Datasource ........................................................................................................................ 7
1.2.3 Dataset .............................................................................................................................. 9
1.2.4 Map ................................................................................................................................. 10
1.2.5 Scenes ............................................................................................................................. 11
1.2.6 Resources ........................................................................................................................ 11

2. Multi-source Spatial Data Integration ________________________________ 13


2.1 Convert Data in Other Formats to SuperMap Format....................................... 13
2.1.1 Import Dataset ................................................................................................................ 13

2.2 Directly Open Data of non-SuperMap Formats ................................................ 15

3. Coordinate System Setting and Projection Transformation _______________ 17


3.1 Coordinate System ......................................................................................... 17

3.2 Work with Coordinate System ........................................................................ 18


3.2.1 Set Coordinate System .................................................................................................... 18
3.2.2 Coordinate System Transformation ................................................................................ 21

3.3 Choosing appropriate transformation ............................................................. 24

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

4.2 Screen Digitizing ............................................................................................ 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

5.2 Map Configuration ......................................................................................... 46


5.2.1 Layer Control................................................................................................................... 46
5.2.2 Layer Style Setting........................................................................................................... 47
5.2.3 Layer Visible Scale Setting ............................................................................................... 48

5.3 Creating Thematic Maps................................................................................. 49


5.3.1 Thematic Map Types ....................................................................................................... 49
5.3.2 General Ways to Create Thematic Maps......................................................................... 50
5.3.3 Set the Expression Field .................................................................................................. 52
5.3.4 Thematic Map Template ................................................................................................. 52
5.3.5 Visible Scale Setting of Thematic Map ............................................................................ 54

6. Layout and Print _________________________________________________ 55


6.1 Set Map Layout .............................................................................................. 55
6.1.1 Create a New Layout Window ........................................................................................ 55
6.1.2 Set Layout ....................................................................................................................... 55

6.2 Add Map Elements ......................................................................................... 56


6.2.1 Add Map Elements ......................................................................................................... 56
6.2.2 Add North Arrow, Title, etc ............................................................................................. 58
6.2.3 Add Scale Bar and Legend............................................................................................... 58

6.3 Edit Map Layout ............................................................................................. 58

6.4 Save and Print Layout ..................................................................................... 59


6.4.1 Print Layout ..................................................................................................................... 59
6.4.2 Print Separate Pages ....................................................................................................... 60

7. Management of Spatial Database ___________________________________ 62


7.1 Spatial Data Storage Solutions in SuperMap.................................................... 62
7.1.1 File Datasources .............................................................................................................. 62
7.1.2 Database Datasources .................................................................................................... 63
7.1.3 Web Datasources ............................................................................................................ 63

7.2 Introduction of Spatial Data Engine ................................................................ 64


7.2.1. When to Use Database Datasources............................................................................... 64
7.2.2. Introduction of System Tables in SuperMap Spatial Database ....................................... 65

7.3 Management of Database Datasources ........................................................... 66

7.4 How to Import Spatial Data into Database ...................................................... 67

8. Working with 3D Scene ____________________________________________ 69


8.1 Introduction to SuperMap 3D Scene ............................................................... 69

8.2 Layer Organization in 3D Scene ....................................................................... 70


8.2.1 Screen Layer ......................................................................................................................... 70

Table of Contents
8.2.2 Common Layer ..................................................................................................................... 72
8.2.3 Terrain Layer ......................................................................................................................... 75

8.3 Working with 3D Scene .................................................................................. 77


8.3.1 Thematic Mapping ............................................................................................................... 77
8.3.2 Rapid Modeling .................................................................................................................... 80
8.3.3 Adding 3D Models ................................................................................................................ 84
8.3.4 Spatial Analysis ..................................................................................................................... 88

8.4 Optimizing the Performance of 3D Scene ........................................................ 93


8.4.1 Model Conversion ................................................................................................................ 93
8.4.2 Creating 3D Cache ................................................................................................................ 94

9. Applications____________________________________________________ 102
9.1 Task 1: Installation and General Use .................................................................... 102

9.2 Task 2: Multi-Source Data Integration.................................................................. 105

9.3 Task 3: Coordinate System Setting and Transformation ........................................ 107

9.4 Task 4: Registration of Raster Data ...................................................................... 111

9.5 Task 5: Mapping ................................................................................................. 114

9.6 Task 6: Set Layout and Print ................................................................................ 120

9.7 Task 7: Management of Spatial Data ................................................................... 123

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.

1.1 Installation and License Configuration

1.1.1 License Types

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.

Chapter 1 Introduction to SuperMap Deskpro .NET 1


1.1.2 License Configuration

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.

Chapter 1 Introduction to SuperMap Deskpro .NET 2


3) Click the Verify button to check whether the license is valid; if so, the remark "Valid" will
appear in the "State" column, as shown below.

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.

Chapter 1 Introduction to SuperMap Deskpro .NET 3


5) Click the Close button to exit the License Configuration tool.

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.

Chapter 1 Introduction to SuperMap Deskpro .NET 4


3) Click Query and check the current license state. You can stop the querying by clicking Stop at
any time. The bottom of the dialog box shows the key type, user name and company name.

4) Click Save to save the current configuration information to the configuration file
(SuperMapLic.ini).

1.2 Core Concepts in SuperMap Deskpro .NET

The interface of SuperMap Deskpro .NET is shown as Figure 1-1.

Chapter 1 Introduction to SuperMap Deskpro .NET 5


Figure 1-1

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:

 Click Start button to open a workspace from Recent Workspaces.


 Click Start button to choose Open option to open a workspace.
 Click the drop-down arrow of the Open Dropdown button in the Workspace group

Chapter 1 Introduction to SuperMap Deskpro .NET 6


and select the type of the workspace you want to open.
 Right-click on the workspace node in the Workspace Manager and select the type of
the workspace you want to open.
(2) Save a Workspace: There are three ways to save a workspace:

 Click Start button and choose Save option to save a workspace.


 Click Save button in the Workspace group to save a workspace.
 Right-click on the workspace node in the Workspace Manager and choose Save
Workspace to save a workspace.
For a workspace that has been saved, you can save it to another path using Save Workspace
As.
 Click Start button and choose Save As to save a workspace to another path.
 Click Save As button in the Workspace group to save a workspace to another path.
 Right-click on the workspace node in the Workspace Manager and choose Save
Workspace As to save a workspace to another path.
(3) Close a Workspace: There are two ways to close a workspace:

 Click Start button and choose Close option to close a workspace.


 Right-click the workspace node in Workspace Manager and choose Close Workspace to
close a workspace.
Before you close an unsaved workspace, the system will prompt you to save it.

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.

Chapter 1 Introduction to SuperMap Deskpro .NET 7


Figure 1-3

Figure 1-4

Datasource Operations:
(1) Open Datasource: There are four ways to open an existing datasource:

 Click Start button and open a datasource from Recent Datasources.


 Click Start button and choose Open option to open a datasource.
 Click the drop-down arrow of the Open Dropdown button in the Datasource group
and select the type of the datasource you want to open.
 Right-click the datasources node in Workspace Manager and select the type of the
datasource you want to open.
(2) Create Datasource: There are three ways to create a new 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.

Chapter 1 Introduction to SuperMap Deskpro .NET 8


1.2.3 Dataset

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

Chapter 1 Introduction to SuperMap Deskpro .NET 9


Figure 1-7

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

Chapter 1 Introduction to SuperMap Deskpro .NET 10


Map has no corresponding physical storage on the disk, all information is stored in workspace.
Thus you should save the workspace after saving the map; otherwise the map will disappear next
time you open the workspace.

Procedures to manage map:


 Save map: Right-click in the Map window and choose Save Map option, input a name
for the map and click OK.
 Save map as: Right-click in the Map window and choose Save Map AS option, input a
name for the map and click OK.

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.

Chapter 1 Introduction to SuperMap Deskpro .NET 11


Figure 1-10 shows the marker symbol library and the 3D marker symbol editor.

Figure 1-10

Chapter 1 Introduction to SuperMap Deskpro .NET 12


2. Multi-source Spatial Data Integration

This chapter summarizes the common methods of spatial data integration. As to different data
formats, it illustrates the appropriate integration method.

2.1 Convert Data in Other Formats to SuperMap Format

2.1.1 Import Dataset

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.

Chapter 2 Multi-source Spatial Data Integration 13


Figure 2-2

2.1.1.1 Import Vector Dataset

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.

Chapter 2 Multi-source Spatial Data Integration 14


2.1.1.2 Import Raster Dataset

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

2.2 Directly Open Data of non-SuperMap Formats

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.

Chapter 2 Multi-source Spatial Data Integration 15


Figure 2-4
The difference between import data and open data directly is shown as following:
 Import data: The imported data has no relation with the original file, so original file
can be deleted or moved. You can edit the imported data.
 Open directly: If you open the image data directly, the storage format of the source
data doesn’t change, so you can’t delete the source data, otherwise you will lose it. And
the data is opened in read only format in SuperMap, you can’t edit it.

Chapter 2 Multi-source Spatial Data Integration 16


3. Coordinate System Setting and Projection Transformation

This chapter introduces how to set coordinate system and transform projections in SuperMap
Deskpro .NET.

3.1 Coordinate System

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.

Table 3.1 Comparison between the two coordinate systems

Type Example Description

The locations of spatial features are based on the geographic


grid expressed in longitude and latitude values. The
coordinates displayed in SuperMap Deskpro .NET are as
follows:

WGS 1984
Geographic
NAD1983
Coordinate
International
System
1927

Chapter 3 Coordinate System Setting and Projection Transformation 17


Type Example Description

Projected coordinate system uses map projection methods to


transform the spherical Earth’s surface to a plane surface, thus
enables map users to work with two-dimensional coordinates,
rather than spherical or three-dimensional coordinates, which
are much more complex for measurements and calculation.
The coordinates and projection information are shown as
following:

Gauss_Kruge
Projected
Albers
Coordinate
Lambert
System
UTM

3.2 Work with Coordinate System

3.2.1 Set Coordinate System

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

Chapter 3 Coordinate System Setting and Projection Transformation 18


3.2.1.1 Reset Coordinate System

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

Chapter 3 Coordinate System Setting and Projection Transformation 19


When setting coordinate system for a datasource or dataset, you can use the Predefined
Coordinate System provided by SuperMap, if the desired coordinate system is not included in the
default library, you can also customize your own coordinate system.
The following steps take customizing Gauss-Kruger Projection with six-degree zone as an
example to introduce how to customize coordinate system.
(1) Click the Custom Coordinate System button to open the Custom Projected Coordinate
System dialog box, give a name to the coordinate system you are going to create, then select
Gauss Kruger from the Projection Type dropdown list, select Meter as map unit and select
Beijing 1954 as geographic coordinate system. (Refer to Figure 3-6)

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.

Chapter 3 Coordinate System Setting and Projection Transformation 20


3.2.1.2 Import Coordinate System

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.

3.2.2 Coordinate System Transformation

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

Chapter 3 Coordinate System Setting and Projection Transformation 21


show how to transform datum. The method used in this example is Geocentric Translation, the
parameters needed for this transformation are dx=86, dy=98, dz=119. Figure 3-9 shows the
information of the original point dataset (the red point).

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.

Chapter 3 Coordinate System Setting and Projection Transformation 22


Figure 3-11
 Select Geocentric Translation from the Method dropdown list, and input the x, y, z offset
values, as shown in Figure 3-12, click OK to finish the transformation. You will see that
the coordinate system of the point dataset as well as the coordinates of the red point
have changed, as shown in Figure 3-13.

Figure 3-12

Chapter 3 Coordinate System Setting and Projection Transformation 23


Figure 3-13

3.3 Choosing appropriate transformation

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.

Chapter 3 Coordinate System Setting and Projection Transformation 24


4. Vectorization

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.

4.1 Map Registration

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.

4.1.1 New registration window

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

Chapter 3 Coordinate System Setting and Projection Transformation 25


registration methods are provided: rectangular registration (at least 2 control points), linear
registration (at least 4 control points), polynomial registration (at least 7 control points), and
offset registration (at least 1 control point).

Table 4.1 Comparisons among registration methods

Rectangular Registration Linear Registration Polynomial Registration


Four control points at least Seven control points at least
Two control points are and the control points should and the control points
Control
needed and they should not be distributed on two lines should be distributed on
Points
have the same X or Y value with different directions at three lines with different
least direction at least

Illustration

Applicable to rectangle data, Applicable to polygon data,


Applicable to shift, scale, there are offsets, scaling and there are offsets, scaling
Suggestion
and rotate data angle rotations in the and angle rotations in the
registration result registration result

4.1.2 Specify Control Points

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.

Chapter 3 Coordinate System Setting and Projection Transformation 26


Figure 4-2
If you are using a reference layer, then click the corresponding point on the reference layer, and
the correct coordinates will display in the bottom list, as shown in Figure 4-3.

Figure 4-3
Repeat this process until all the control points needed are picked.

4.1.3 Calculate Error

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

Chapter 3 Coordinate System Setting and Projection Transformation 27


the registration layer.
3) Calculate error: After all the control points with large errors are relocated, calculate the
error again.
Repeat this process until the errors are with the tolerance. The control point information in
the bottom panel can be exported as a registration file (*.drfu) for future use, as shown in
Figure 4-4.

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.

4.2 Screen Digitizing

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.

Chapter 3 Coordinate System Setting and Projection Transformation 28


Figure 4-6
After setting the snapping options, there will be snapping markers near the cursor to indicate the
relationship between spatial features when you are editing the layer, as shown in Figure 4-7.

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-8 Figure 4-9


2) Open the scanned paper map and the vector dataset into the same map window, as
shown in Figure 4-10.

Figure 4-10

Chapter 3 Coordinate System Setting and Projection Transformation 29


3) Set the vector layer editable, trace the geometric features according to the paper map.

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.

Chapter 3 Coordinate System Setting and Projection Transformation 30


5. Map Representation

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.

5.1 Prepare Symbol Libraries

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.

5.1.1 Create Marker Symbol

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.

5.1.1.1 Create 2D Marker Symbol

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

Chapter 5 Map Visualization 31


new marker symbol.

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.

Chapter 5 Map Visualization 32


Figure 5-4
5) After setting the properties of the point, you can click OK to add the new marker
symbol to the symbol library.

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.

5.1.1.2 Create 3D Marker Symbol

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.

Chapter 5 Map Visualization 33


Figure 5-6
2) In the 3D Marker Symbol Editor, you can set the display style and 3D model for the symbol.
Click Set Model to select a model file, either in .sgm or .3ds format, and open it. Note that
the size of the model file cannot exceed 60 KB.

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.

Chapter 5 Map Visualization 34


Figure 5-8
Here you must specify the symbol ID and symbol name. The meanings of the properties are
explained bellow:
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.
Scale: The times you want to stretch the model in the X, Y, and Z direction. You can directly
type a value in the box or move the slide bar that will show up by clicking the right arrow.
Rotation: The times you want to rotate the model in the X, Y, and Z direction. You can directly
type a value in the box or move the slide bar that will show up by clicking the right arrow.
Snapshot Settings: Capture a snapshot for the model in the Preview area. The thumbnail
displayed in the symbol panel for the 3D marker symbol is the snapshot. When rendering
points in 2D map with a 3D marker symbol, the snapshot will be used.
4) The 3D marker symbol will be added to the symbol panel when you click OK. Save the
workspace or export the symbol library as a file if you want to use this symbol in the future.

Figure 5-9

Chapter 5 Map Visualization 35


5.1.2 Create Line Symbol

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.

Chapter 5 Map Visualization 36


Figure 5-12

5.1.3 Create Fill Symbol

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.

Chapter 5 Map Visualization 37


Figure 5-14
Click the Select button to select a symbol for the fill pattern you are going to create in the next
step, as shown in Figure 5-15 and Figure 5-16.

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

Chapter 5 Map Visualization 38


mouse turns into a cross, you can click in the area to construct the fill pattern, and then right
click to finish, as shown in Figure 5-17.

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.

5.1.4 Manage Symbol Libraries

1) Symbol Library File


SuperMap provides files to store symbols. A symbol library file corresponds to a library and
saves the logical structure of the library. You can import a symbol library file into the symbol
manager and manage the symbols in it.

 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.

Chapter 5 Map Visualization 39


 Fill Symbol Library File: A file with the .bru extension which stores the fill symbols.

2) Open Symbol Library File


The Symbol Library Manager can only mange one symbol library at a time, here are the steps
to open a symbol library:

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.

3) Load Default Symbol Library


SuperMap provides default symbol libraries, which can satisfy the general needs for symbols
and based on the default you can customize your own symbols. In the Symbol Manager, you
can change the currently opened symbol library through opening an external symbol library
file, importing a symbol library, importing symbols, or creating new symbols. If you want to
display the default symbol library in the Symbol Manager, use the Load Default Symbol
Library command.

a In the Symbol Library Manger, click the File menu, and select Load Default Symbol
Library drop down list.

Chapter 5 Map Visualization 40


Figure 5-20
b A message box will pop up to let you choose the appropriate option:

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.

Chapter 5 Map Visualization 41


Figure 5-22
b In the Import Symbol Library dialog box that shows up, click the symbol library file you
want to import, and click Open.
A subgroup will be appended to the subgroups of the Root Group of the currently open
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.

Chapter 5 Map Visualization 42


Figure 5-24
b In the Import Symbol dialog box that shows up, navigate to the symbol library file
where the symbols you want to import are contained, open it.

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

Chapter 5 Map Visualization 43


d Click OK to confirm the selection and add the selected symbols to the symbol panel.

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.

Chapter 5 Map Visualization 44


Figure 5-29
b In the Warning dialog box, you will be asked whether to continue or not. To continue,
click Yes; otherwise, click No.

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.

Chapter 5 Map Visualization 45


Figure 5-31
c When the Export Symbol Library shows up, navigate to the location where you want to
save the library file, enter a name, and then click Save. Here, you can only export the
symbols as SuperMap 6R symbol library.

5.2 Map Configuration

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.

5.2.1 Layer Control

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

Chapter 5 Map Visualization 46


5.2.2 Layer Style Setting

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.

Chapter 5 Map Visualization 47


Figure 5-35

5.2.3 Layer Visible Scale Setting

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

Chapter 5 Map Visualization 48


button in the Layer manager Window to open the Layer Control panel, highlight the layer that you
want to set its visible scale, input the scale.

Figure 5-37

5.3 Creating Thematic Maps

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.

5.3.1 Thematic Map Types

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.

Table 5.1 Descriptions of thematic map types

Type General Introduction

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.

Chapter 5 Map Visualization 49


Type General Introduction

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.

5.3.2 General Ways to Create Thematic Maps

1) Open a dataset and display it in the map window.


2) Click on the Thematic Mapping tab, all map types are listed in the Ribbon area.

Figure 5-38
3) Click the New button in the target group. The Thematic Map Manager will show up.

Chapter 5 Map Visualization 50


Figure 5-39
4) A thematic map with default style is created for the corresponding layer and the thematic
map is added to the Layer Manager as a thematic map layer.

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

Chapter 5 Map Visualization 51


5.3.3 Set the Expression Field

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.

5.3.4 Thematic Map Template

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.

 Save thematic map template


Basic Steps: Right-click the target thematic layer in the Layer Manger to choose the Save as
Thematic Map Template option, then enter the name of a template on the displaying dialog box,
and click Save.

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.

Chapter 5 Map Visualization 52


Figure 5-43

 Load thematic map template


Basic Steps: Right-click the target layer in the Layer Manger to choose the Load Thematic Map
Template option, then specify the thematic map template you need to load on the displaying
dialog box, and click Open.

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.

Chapter 5 Map Visualization 53


Figure 5-45

5.3.5 Visible Scale Setting of Thematic Map

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.

Chapter 5 Map Visualization 54


6. Layout and Print

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.

6.1 Set Map Layout

6.1.1 Create a New Layout Window

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

6.1.2 Set Layout

Procedure: Click Page Tab to set up the layout window.

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

Chapter 6 Layout and Print 55


current layout window, not for the print paper. You can set the paper size in the Print dialog box.
The map will be printed according to the actual paper size when the two are not consistent.

Figure 6-2

6.2 Add Map Elements

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.

6.2.1 Add Map Elements

6.2.1.1 Add Map Elements to Layout Window

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.

Chapter 6 Layout and Print 56


Figure 6-4
4) Click the Fill Map drop-down arrow to select a fill map from the drop down list.
5) Click OK to fill the map in the rectangle map frame.
6) Modify map properties. Double click the map frame or right click it and click Properties to
display the Properties dialog box for the map.

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.

6.2.1.2 Adjust Display Extent of Map Elements

1) Select the element to be adjusted;

2) Click the Focus Map button on the Map group of the Layout Operation tab;

Chapter 6 Layout and Print 57


3) Now the selected map is locked, as shown in Figure 6-6;

4) Click the five buttons on the Map group;

5) Click the Focus Map button again to unlock the map.

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

6.2.2 Add North Arrow, Title, etc

For the procedures to add north arrow, title, border, etc, please refer to the procedure of adding
map elements.

 Click to add north arrow;

 Click or to add map title.

6.2.3 Add Scale Bar and Legend

Various elements can be added to a layout window, and you should select a certain map before
adding scale bar and legend.

 Select the map element to add elements;

 Click , on the Map Elements group;


 Draw a rectangle on the layout window and add these elements.

6.3 Edit Map Layout

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.

Chapter 6 Layout and Print 58


Figure 6-7
Drag the mouse to adjust the location: you can directly drag the element after selection, but it’s
not a precise way due to the randomness.
Choose the Format group to adjust the location (Refer to Figure 6-8): adjust the alignment and
distribution, stack order, group or ungroup, etc.

Figure 6-8

6.4 Save and Print Layout

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.

6.4.1 Print Layout

6.4.1.1 Output Layout as Picture

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.

Chapter 6 Layout and Print 59


Procedure: Choose Layout Operations > Export to Picture, and then the Export to Picture
dialog box will be displayed. (Refer to Figure 6-9)

Figure 6-9

6.4.1.2 Print Current Layout Directly

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

6.4.2 Print Separate Pages

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.

Chapter 6 Layout and Print 60


Figure 6-11

Chapter 6 Layout and Print 61


7. Management of Spatial Database

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.

7.1 Spatial Data Storage Solutions in SuperMap

7.1.1 File Datasources

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.

Chapter 7 Management of Spatial Database 62


7.1.2 Database Datasources

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

7.1.3 Web Datasources

Web Datasources are stored on web servers and accessed through URL addresses.

Figure 7-3

Chapter 7 Management of Spatial Database 63


Figure7-4

7.2 Introduction of Spatial Data Engine

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

7.2.1. When to Use Database Datasources

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.

Chapter 7 Management of Spatial Database 64


Client components and SuperMap SDX+ should be installed on the same machine. Client
components are required for Oracle database, while for SQL SERVER, they are not, but the server
must have MDAC2.6 or later version installed.

7.2.2. Introduction of System Tables in SuperMap Spatial Database

After establishing SuperMap spatial database datasource, 9 system tables starting with Sm will be
generated. Below are the descriptions of important tables:

7.2.2.1. Vector Dataset Register Information Table

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

7.2.2.2. Raster dataset Register Information Table

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.

7.2.2.3. Datasource Information Table

SmDataSourceInfo table is used to store datasource-related information, which is read-only.


(Refer to Figure 7-7) Among the information,
 SmVersion expresses the version of current datasource.

Chapter 7 Management of Spatial Database 65


 SmCoordSys expresses the projection coordinates information of the current datasource.
Whether it’s planar coordinate system, geographic coordinate system or projected
coordinate system.
 SmCoordUnit expresses the unit of coordinates.

Figure7-7

7.2.2.4. Workspace Information Table

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.

7.2.2.5. Field Information Table

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

7.3 Management of Database Datasources

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.

Chapter 7 Management of Spatial Database 66


Procedure:
1) Check whether SQL Server service has been started or not (Figure 7-9 is in running
status);
2) Choose SQL Server Plus datasource when creating (opening) a datasource in SuperMap
Deskpro .NET;
3) In the operation dialog box (Refer to Figure 7-10 and Figure 7-11), fill in the Server
name which is the name of SQL Server service or IP address.
4) Fill in the user name and password;
5) Choose Open Mode.

Figure7-9

Figure 7-10 Figure7-11

7.4 How to Import Spatial Data into Database

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

Chapter 7 Management of Spatial Database 67


advise you to save workspace and datasource together for better data management.

Figure 7-12

Chapter 7 Management of Spatial Database 68


8. Working with 3D Scene

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.

8.1 Introduction to SuperMap 3D Scene

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

Chapter 8 Working with 3D Scene 69


8.2 Layer Organization in 3D Scene

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°

8.2.1 Screen Layer

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.

Chapter 8 Working with 3D Scene 70


3. The newly added picture is displayed in the middle of the screen as default and a node
corresponding to the picture object is created under the Screen Layer node in Layer Manager,
as shown in Figure 8-5.

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

Chapter 8 Working with 3D Scene 71


8.2.2 General Layer

8.2.2.1 Vector Data

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

8.2.2.2 Raster Data

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.

Chapter 8 Working with 3D Scene 72


Figure 8-8

Figure 8-9
Figure 8-10 is a TIFF data that has been added to the 3D scene.

Chapter 8 Working with 3D Scene 73


Figure 8-10

8.2.2.3 Cache Data

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

8.2.2.4 KML Data

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

Chapter 8 Working with 3D Scene 74


specifies a set of features (place marks, images, polygons, 3D models, textual descriptions, etc.)
for the display in Google Earth, Maps and Mobile, or any other geospatial software which
implements the KML encoding. SuperMap Deskpro .NET implements the KML encoding, and uses
KML files to manage 3D models, landmarks and images. To add data to the KML file, you need to
first set the KML file editable, then right click on the KML data and choose Add to add data, as
shown in Figure 8-12.

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.

8.2.3 Terrain Layer

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

Chapter 8 Working with 3D Scene 75


color as the globe image, it’s hard to distinguish the terrain data from the globe image, as
shown in Figure 8-14. Here the Exaggeration value is set to 3, which means the elevation of
this area will be set as three times of the original elevation, to make the ups and downs more
distinct.

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.

Chapter 8 Working with 3D Scene 76


Figure 8-15
 The best choice for adding terrain data is to add it as both Terrain data and Image data, as
shown in Figure 8-16, now the ups and downs of the area can be seen clearly.

Figure 8-16

8.3 Working with 3D Scene

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.

8.3.1 Thematic Mapping

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.

Chapter 8 Working with 3D Scene 77


Figure 8-17
2. Right click on the Scene node and select New Scene, a scene window opens. Drag the
Countries dataset in the World workspace to the scene window, the four thematic map
types become active under the Thematic Mapping tab.

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.

Chapter 8 Working with 3D Scene 78


Figure 8-19
4. There is a Country filed in the Countries attribute table, use this field as Expression value
and choose the second color ramp in the Color Ramp drop down list. The scene window
will be rendered instantly if you check the Enable Instant Refresh checkbox at the bottom of
the 3D Unique Values Map window.

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.

Chapter 8 Working with 3D Scene 79


Figure 8-21 Figure 8-22
6. Right click in the scene window, and choose Save Scene to save the scene you have just
configured. If you want to use this scene next time you open the World workspace, you need
to save the workspace, because scene is stored in workspace.

8.3.2 Rapid Modeling

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.

Chapter 8 Working with 3D Scene 80


Figure 8-23

Step 2: Rapid Modeling


Rapid modeling is actually to vertically stretch a 2D region dataset to 3D. To achieve this, you
need to specify the stretching height, and to make the buildings look real, textures on the top and
side are also needed. Browsing the attribute table of the Buildings dataset, you can see there are
fields named ExtendedHeight, SideTexture and TopTexture, which records the information we
need for rapid modeling.
1. Click the Layer Properties tab, in the Altitude Mode button, click the Mode drop-down
arrow to select Relative to Ground from the list. The default mode is Clamp to Ground, but
the stretch operation can only be performed on datasets whose altitude mode is not
Clamp to Ground. After setting the mode, the properties in the Extending and Mapping
group become active.
Illustrations of the four altitude modes:
Absolute: The Absolute mode ignores the real terrain, that is, the ups and downs on the
earth's surface. The altitude is relative to the mean sea level, which is very useful when
you know the layer’s precise height above sea level. For instance, if the altitude of features
in a layer is 5, 800 meters, the layer will be displayed like this in Absolute mode:

Figure 8-24

Chapter 8 Working with 3D Scene 81


Clamp to Ground: In this Mode, the altitude of 3D data will be ignored, the 3D layer will
clamp to the ground according to their longitude and attitude in the 3D scene, as shown
bellow.

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.

Chapter 8 Working with 3D Scene 82


Figure 8-27
2. In the Extending and Mapping group, click the Extension drop-down arrow to select a
field in the attribute table of the Buildings that specifies the extended height of each
building. If there isn’t such a field, you can create a new filed with numeric type and then
give values to the field. You can also specify an extended height for all the buildings in the
layer by manually typing in the value in the text box. The unit of the Extension value in
SuperMap Deskpro .NET is meter. After specifying the extension value, the 2D polygons
will be extended to 3D. The height value used in this example may be different from yours,
as shown in Figure 8-28.

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

Chapter 8 Working with 3D Scene 83


Select option in the drop down list of Top texture. Here we have a field named TopTexture
which records the relative paths of the pictures, and we will use this field as the
TopTexture field.
4. Setting side textures are the same with setting top textures. Here we use the SideTexture
field. The side texture pictures will be extended to surround the buildings, and Tiling U
and Tiling V means the horizontal and vertical repeat time(s) when sticking the textures
to the buildings. Here we set the Tiling U as 1 and Tiling V as 3.
5. Click the Styles tab. In the Fill Style group, click the Fill Color button to set the fill color to
white, and set the Fill Mode as Fill Only. Adjust the view angle, the result is shown in
Figure 8-29.

Figure 8-29

8.3.3 Adding 3D Models

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.

Chapter 8 Working with 3D Scene 84


Figure 8-30
If there is already a KML layer or model cache layer in the 3D scene, it will be displayed in
the Layer drop down list. If there isn’t, you can create by clicking the New Layer button to
open the New 3D Layer dialogue box, and choose whether to create a KML or SCV file, as
shown in Figure 8-31.

Figure 8-31
3. After the KML or SCV layer is created, it will be displayed in the Layer drop down list, and

Chapter 8 Working with 3D Scene 85


you can click the Add Model button to add your 3D model, which can be in *.3ds or *.sgm
format. Add as many models as you want, and you can also set their locations in the 3D
scene, by changing the Longitude and Latitude value in the Add Model dialogue box. Click
OK to add the KML or SCV layer to the 3D scene, as shown in Figure 8-33.

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.

Chapter 8 Working with 3D Scene 86


Figure 8-34
5. For the KML layer, you can also add other data such as landmark and surface map, and
edit their properties. In most cases, the default location is not right, so you need to set the
correct coordinates for the model. Keep the KML file in editable mode, right click on the
model’s name or select the model in the scene window then right click, choose Properties
to open the Properties dialogue box, here you can set the altitude mode, x, y, z coordinates
and many other properties. You can also use an image dataset as a base map to set the
model’s location, as shown in Figure 8-36.

Figure 8-35

Chapter 8 Working with 3D Scene 87


Figure 8-36

8.3.4 Spatial Analysis

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.

8.3.4.1 Viewshed Analysis

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

Chapter 8 Working with 3D Scene 88


the layer name in the Layer Manager window, select Zoom to Layer to see the full extent of
the layer. Adjust the view angel and set scene properties as following to make it have a
better visual effect.

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.

Chapter 8 Working with 3D Scene 89


Figure 8-38
5. You can also set the appended height, view radius, start observation angle and total view
angle for your observation. For the description of these parameters, please refer to the
help document. Click Analyze button to star analyzing.
6. The analyzing result is shown as Figure 8-39, and it is the intersection of the viewsheds of
the two points.

Chapter 8 Working with 3D Scene 90


Figure 8-39

8.3.4.2 Visibility Analysis

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.

Chapter 8 Working with 3D Scene 91


Figure 8-40
4. Click Analyze button to start analyzing. The result is shown in Figure 8-41, all the visibility
between the observer points and observed points are calculated. The blue lines represent
the two points are visible, where the red lines represent invisible.

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

Chapter 8 Working with 3D Scene 92


the obstructive point.

Figure 8-42

8.4 Optimizing the Performance of 3D Scene

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.

8.4.1 Model Conversion

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.

Chapter 8 Working with 3D Scene 93


Figure 8-43
3. Use the single conversion mode to convert a single 3DS model to SGM, set the source and
target path and click OK to start converting.

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.

8.4.2 Creating 3D Cache

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.

Chapter 8 Working with 3D Scene 94


8.4.2.1 Creating Dataset and Map Cache of 3D

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.

Chapter 8 Working with 3D Scene 95


Click to add SIT file and create image cache for it. Locate to
\SuperMap\SuperMap Deskpro .NET 6R\SampleData\3D\OlympicGreen, there is a
BeijingShadedRelief.sit file, select it and add it to the Create Scene Cache dialogue box.
SuperMap SIT (SuperMap Image Tower) is a storage format for raster files provided by
SuperMap. It combines image compression and image pyramid technology, which can
largely compress image data and display data at high speed, thus solving the displaying
problem of large image data. In SuperMap Deskpro .NET, you can export your image data
to SIT format through the Export button under the Start tab, and open the SIT file directly
as a datasource or import it into another datasource as an image dataset.
Figure 8-47 shows the data we just added, and the last column in the data list shows the
cache type of each data.

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

the Draw button to draw an extent or use the Select button to

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.

Chapter 8 Working with 3D Scene 96


Cache Level: The map cache scale corresponds to the levels in the universal zoom in
levels. SuperMap Deskpro .NET provides 21 zoom in levels, from 0 to 21, where level 0 has
the lowest precision. When creating cache, the application automatically calculates the
appropriate level(s) according to the data resolution, extent, and the global tiling rules.
You can change the cache level, but it is suggested you keep the default value.
Storage Type: SuperMap Deskpro .NET provides 2 storage types for cache file: the
compact format and original format. The Compact storage type compresses and encrypts
the data when caching, while the Original type stores tiled pictures. Comparing with the
Original type, the Compact type has the following advantages:
 Reduce file amount and size, good for the transfer and copy of cache data
 Reduce the time for creating cache
 Support file encryption
In this example, we leave all the settings as default and click OK to start creating caches.

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

Chapter 8 Working with 3D Scene 97


Figure 8-50

8.4.2.2 Creating 3D Model cache

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

Chapter 8 Working with 3D Scene 98


Among these, ModelPath, Longitude and Latitude are required, and it is recommended to use
the field name listed above. The model path can be absolute path or relative path which is
relative to the application’s execution file. Here is an example of a tabular dataset which
stores the relative model path, longitude and latitude of one model, you can add as many
models as you can.

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.

Chapter 8 Working with 3D Scene 99


Figure 8-54

Figure 8-55

8.4.2.3 Creating Scene Cache

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.

Chapter 8 Working with 3D Scene 100


Figure 8-56
6. The cache files generated are placed in the folder with the name you specified in the
Scene Name text box, here it is Untitled Scene. If you checked the checkbox in front of
Preview, the cache that you have just created will be added to the scene automatically.
Another difference between using the Scene Cache button and context menu is that the
latter will create a workspace at the same time, as shown in Figure 8-57. The styles of all
layers are stored in the workspace, next time you can just open this workspace to view the
scene, which is the same with that you create the scene cache.

Figure 8-57

Chapter 8 Working with 3D Scene 101


9. Applications

9.1 Task 1: Installation and General Use

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.;

Chapter 9 Applications 102


3) Right-click the node in the tree structure to browse the properties;

Exercise 2:
1) Create a New datasource DataSource.udb;

Chapter 9 Applications 103


2) Create point, line, region, text, CAD and tabular datasets. For example, create a new
line dataset Road Line;

3) Create attribute field for the new dataset;

Chapter 9 Applications 104


4) Browse attribute table of the new dataset.

9.2 Task 2: Multi-source Data Integration

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.

Chapter 9 Applications 105


1) New a datasource DataImport.udb

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.

Chapter 9 Applications 106


9.3 Task 3: Coordinate System Setting and Transformation

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

Chapter 9 Applications 107


 Create a new datasource and import the correct coordinate system, then import data,
such as *.shp files.
 Transform the projection of datasource. You can transform projected coordinate system
into geographic coordinate system and compare the differences of coordinates of the
two coordinate systems.

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.

Chapter 9 Applications 108


3) Right-click the datasource, choose Import Dataset and import River_line_Clip.shp as a
GIS dataset.

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;

Chapter 9 Applications 109


3) Set Target Projection as geographic coordinate system WGS 1984;

4) Set transformation parameters and click OK;

5) The result is as follows:

Chapter 9 Applications 110


Compare the coordinates on the status bar before and after projection transformation.

Before transformation:

After transformation:

9.4 Task 4: Registration of Raster Data

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;

Chapter 9 Applications 111


3) Registration Operation > Linear Registration (at least 4), select control points

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;

Chapter 9 Applications 112


5) Calculate error;

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;

Chapter 9 Applications 113


5) Set region layer editable, draw a vector object according to the base map;

6) Double click the region object and enter the corresponding attribute information.

9.5 Task 5: Mapping

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

Chapter 9 Applications 114


Map, Range Map, Label Map and Graph Map;

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;

Chapter 9 Applications 115


4) Succeeded to import the Point.sym.

Exercise 2:
Design a 3D railway symbol. Please refer to Help > Managing Symbol Resources > Demo>
Symbol Marking: Demo 10 > 3D line symbol description.

Chapter 9 Applications 116


Exercise 3:
1) Open sample data World.smwu;
2) New a map window, drag point, line, region, text datasets into the map window;

3) Adjust the order of layers in Layer Manager to avoid overlay;

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.

Chapter 9 Applications 117


6) Save the map, name the map in the Save Map dialog box;

7) Save the workspace.

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.

Chapter 9 Applications 118


3) Similarly, you can choose the Capital field as Expression to create Label Map or choose
the POP_1994 field as Expression to create Ranges Map.

4) Save map and workspace after creating thematic maps.

Chapter 9 Applications 119


9.6 Task 6: Set Layout and Print

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;

2) Click Page tab > Page Setup to set Type;

Chapter 9 Applications 120


3) Click Page tab > Layout Setup to set Horizontal and Vertical pages;

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;

Chapter 9 Applications 121


6) Click Focus Map again to unlock the map;
7) Click Draw tab > Map Elements to add North Arrow, Legend, Scale Bar, etc;

8) Save the layout and workspace;


9) Click Layout Operations > Print, the dialog box below will be displayed, and set Print
Mode and click OK.

Chapter 9 Applications 122


9.7 Task 7: Management of Spatial Data

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;

3) Click OK and SQL Server datasource has been created successfully.

Chapter 9 Applications 123


Check SQL Server datasource in SQL Server database, system tables in SuperMap are as follows:

 Vector dataset register information table (SmRegister)


 Raster dataset register information table (SmImgRegister)
 Datasource information table (SmDataSourceInfo)
 Workspace information table (SmWorkspace)
 Field information table (SmFieldInfo)
Exercise 2:
1) Open World.udb;
2) In the Workspace Manager, Copy Datasource from the World datasource to the SQL
Server datasource and all datasets can be imported into the SQL Server datasource;

3) Save the workspace as a SQL Server workspace;

Chapter 9 Applications 124


4) Open SQL Server to check the Workspace information table.

Chapter 9 Applications 125

Вам также может понравиться