Data

Top  Previous  Next

 

LAYERP~1_img12

 

In the Data tab you can set various things regarding the data in the layer. You can choose what kind of layer it is by Layer type; we support various kinds of layers:

 

LAYERP~1_img13

 

Under Settings, different dialogues will exist depending on the layer type, if your layer type is None, which is the case if you are adding a new layer, you will have the following dialogue:

 

LAYERP~1_img14

 

In the Columns tab, you can edit and create columns for the layer that will form the layer data grid. To create a predefined data grid, choose one from the dropdown and then click the Create button; Simple will make just a simple geometry column for the grid and geometries will then be able to be drawn to the layer; With ID etc. adds an ID column etc. as well:

 

LAYERP~1_img15

 

LAYERP~1_img16

 

To edit and add columns, simply click in the grid (and make sure Edit Columns is ticked on):

 

LAYERP~1_img17

 

(Note: To edit or add new columns to an existing layer you would usually do this via the layer data grid for the layer and not here, this is normally for when creating a new layer to set up its layer data grid.)

 

You can also edit the column type, you can even choose to make a column Image type which will store images for each record:

 

LAYERP~1_img18

 

In the layer data grid of this layer, you would then just click on the cell in the column and then right click to load an image:

 

LAYERP~1_img19

 

LAYERP~1_img20

 

In the Initialization tab you can choose a layer to copy from and set up an expression, to initialize values in the new layer you are creating. Here I am initializing values from my Areas layer, giving the new layer the same geometries and the ID values of Areas layer times two:

 

LAYERP~1_img21

 

Insert Column inserts a column from the new layer (which you created in the Columns tab) so that its value can be set. Insert Column Access inserts a column from the layer you are copying from to get its value. Insert Calculation will insert any of a range of predefined calculations for you:

 

LAYERP~1_img22

 

LAYERP~1_img23

 

LAYERP~1_img24

 

An example of another settings dialogue is for a layer of the SpatialVU type. In this dialogue you can choose the file path for the layer and also what columns you would like to have shown in the layer data grid:

 

LAYERP~1_img25

 

A useful feature of file paths for certain files in SpatialXL is that a relative reference for them can be created. As long as the file is stored together with the Excel workbook in the same location, it doesn’t matter if you move this, it will still correctly reference the file. For example:

 

LAYERP~1_img26

 

If I move all these files together to the desktop, the Sub Places SVU file will still be correctly referenced when I open the Excel workbook. A relative reference is indicated by the pipe symbol:

 

LAYERP~1_img27

 

Clicking Optimize SVU File will optimize it for viewing. The Protection button will show you data about the file if it has been protected (locked to machine/expiry set:

 

LAYERP~1_img28

 

Geometry Extraction will bring up a dialogue where you can specify how you want the geometry extracted from this layer:

 

LAYERP~1_img29

 

Choose other extraction options from the dropdown:

 

LAYERP~1_img30

 

LAYERP~1_img31

 

The dialogue when creating a layer that uses a SQL Server database looks as follows. You can enter in your credentials or use Integrated Security and then choose the Server and Database. In the Command box you can enter in your database query:

 

clip0012

 

 You can test the connection to the database with Test Connection:

 

clip0013

 

clip0014

 

 Geometry Extraction will bring up a dialogue where you can specify how you want the geometry extracted from this layer:

 

clip0015

 

clip0016

 

Choose other extraction options from the dropdown:

 

clip0017

 

clip0018

 

 You can also use Query Builder to build a query. Clicking on it will bring up the Query Builder box:

 

clip0019

 

clip0020

 

 Right clicking on a table, you can choose to browse the data in it with Browse Data:

 

clip0021

 

clip0022

 

If the table has what you want, you can then click Add to add this table to your query; this will bring up a box where you can tick on the columns in this table you would like to query:

 

clip0023

 

clip0024

 

I’ve chosen to select all from this table. Your query is shown at the bottom as you construct it. You can also choose to do an aggregation on the data, sort it in a certain way etc. in the grid above:

 

clip0025

 

When done you can then click Execute to see the results of the query:

 

clip0026

 

clip0027

 

If you are happy with the results you can then exit the Query Results box and then click OK:

 

clip0028

 

The dialogues for Oracle etc. data base layers look and work similarly.

 

Autoload, Fit on Autoload and Dynamic Load have the following functions:

 

LAYERP~1_img32

 

LAYERP~1_img33

 

LAYERP~1_img34

 

Connections is where you can manage shared connections for sublayers, for example here is a South Africa map layer. South Africa is the top containing layer and where the connection is created; each of the SVU files(sublayers) contained in this layer use this same predefined connection. This is convenient so that if the layer loader is changed (the connection) for the layer I don’t have to change it in each sublayer I can just manage it in one place in the top-level layer:

 

LAYERP~1_img35

 

LAYERP~1_img36

 

LAYERP~1_img37

 

As you can see in the Connections dialogue a connection has been set up called Shape. The loader for the file and the path of the SVU file base folder is defined.

Protected will show you data on whether the file is protected (locked to machine/expiry date). Geometry Extraction allows you to choose a geometry extraction for the SVU file if necessary.

 

If I go to the Layer Properties of one of the sublayers you will see it is using this predefined connection (called Shape):

 

LAYERP~1_img38