What's new

Welcome to the GSA Community!

This is the Official User Community for GE's GeoSpatial Analysis products. By registering with us, you'll be able to discuss, share and private message with other members of our Community.
Registration is currently only allowed with a personalized invitation code, which you might have received previously. If you haven't got one:
please get in touch with your GE contact person or your regional moderator(s): see FAQ.

SignUp Now!

Adding geometry styles, filters and exporting data

pauljoosten

Spatial Eye
Staff member
Confirmed GSA Customer
Joined
Aug 2, 2021
Messages
5
This article will help you expand your first project with attribute-based geometry styles, filters and the possibility to export data to different data formats.

Prerequisites:​

  • Latest version of Professional or Ultimate edition of the desktop product
  • Configured location of the project store to save your project file
  • File based data sources (GeoPackage and ESRI Shapefile)

  • Download the sample project and data

Recommended:​


Step 1: Configuring the geometry style based on an attribute​

We already gave the E_MV_Map_Cables a solid black colour style, but you can also style objects based on their attributes by adding a classification.

To do add a classification:
  • Right click on the style
  • Click on Add Classification
Afbeelding1.png

The classification choices depend on the field types as configured in the business collection.
Here Attribute Lookup is used, follow the following steps:
  1. Select the radio button before Attribute Lookup and select Description from the dropdown list
  2. Click Get Classes
  3. Click OK
Afbeelding2.png

On the next screen:
  1. Click Calculate
  2. Look at the calculated values of Description
  3. Click Use
Afbeelding3.png

On this screen you can:
  1. Adjust the Palette colours, Width and Transparency of the style
  2. Optionally adjust the Style of the individual Lookup Groups
  3. Click OK to leave this screen
Afbeelding4.png

Lookup Groups can be configured and styled, with additional groups and values if needed. Additional classifications can also be built upon each other to create a hierarchy style in the style configuration.
To do this you:
  1. Right click the classification group that you want to extend
  2. Click on Add Classification (the next steps are described above)
Afbeelding5.png

Next step is to style the municipalities with a transparent colour.
Just follow the steps indicated in the image below.

Afbeelding6.png

Now we have an overview of the map, looking at the municipality “Zwolle” where the cables are located. Some cables are located outside of Zwolle though.

Explanation of the picture below: the orange lines are the municipal boundaries, the blue lines are the cables and the black ovals indicate where cables are outside the boundary of Zwolle.

Afbeelding7.png

Step 2: Adding data filters​

To see the number of cables that are in the municipality of Zwolle, you can do a statistics check. You do this as follows:
  1. Select the business collection: E_Mv_Map_Cable
  2. Click the Collection Statistics button (a pop-up appears)
  3. Select the Field Value Distribution tab
  4. Select the Field: Municipality
  5. Click on Calculate
  6. See the result for Zwolle in this row
The collection statistics will show that 93,6% of the cables is in the municipality of Zwolle.
Afbeelding8.png


Builder mode​

For further analysis of this collection, you can add filters to the business collection. Or, if you want or have to modify the data, you can add expressions.

How to set a filter for Municipality = Zwolle.
  1. Select the collection E_Mv_Map_Cable
  2. Click on the Configure button
  3. Click on Filter in the column Municipalities (municipalities)
  4. Click on the Builder button
  5. Click on Add
  6. Select the field Gemeentena
  7. Click on Filter in the column E_Mv_Map_Cable
  8. Click on the Builder button
  9. Click on Add
  10. Select the field Municipality, select the operator Has a value
Afbeelding9.png

In the municipality lookup table, a filter is set on Gemeentena equals Zwolle. Only 1 record will be found in the municipality dataset with that value.
In the business collection table, a filter is set on Municipality with the operator Has a value.

Now only cables which have the attribute Zwolle in their municipality table field will be looked up and selected in the business collection.

Cables are no longer shown in the black oval, they are filtered out.

Afbeelding10.png

Filtering in Business Collections​

Any filters or expressions set in the business collection are only applicable for that specific business collection. The source data is never actually changed.

Filtered result: only one value in Municipality (in this case Zwolle).
Afbeelding11.png

Unfiltered results, more than one value in Municipality.
Afbeelding12.png

When you browse the collection, you will see only the objects that are passed by the filter.

Afbeelding13.png
On the map, only cables interacting with the municipality Zwolle will be displayed now.
Likewise, the filters in the business collection can be set to get the opposite selection of cables (only cables outside the municipality ‘Zwolle’)

Afbeelding15.png

Afbeelding14.png

Editor Mode​

Instead of the builder mode, which is suited for quick lookup selections, the editor mode is shown below. The editor mode allows you to make more advanced filters and calculations. You can also first use the builder mode, and then switch to editor mode to see how the filter has been translated in editor mode.
Afbeelding16.pngAfbeelding17.png

You can add or edit fields using the editor mode. If you right click on the business collection and use Add field using Expression, the editor mode opens.
Afbeelding18.png

Suggestions and additional expressions will be shown automatically when you start typing, so you don’t need to know exactly what to type in the editor.
Afbeelding19.png

For now, we will add a buffer of 1 meter to the cables, which is a multi-polygon type; the field type is decided automatically, based on the output type of the expression. You can also use these newly created polygons for further (spatial) analysis in the business collection.

Create the expression.
Afbeelding20.png

A style is automatically generated, you can edit the style here if you want.
Afbeelding21.png

Give the new expression field a name.
Afbeelding22.png

Click Finish.
Afbeelding23.png

Go to the Map tab, zoomed in you can easily see the difference in appearance. The first image are just the cables, the second image are the cables with the 1-meter buffer.

Afbeelding24.png Afbeelding25.png

Just toggle the styles in the Themes tab to get the images above.
Afbeelding31.png

Step 3: Exporting your data​

There are multiple ways of exporting your data, either from the result list, or from the export option in the menu.

If you browse a collection, you can immediately export the results, as either the whole result list or only the selection (which is 1, selected in blue, in the example above).

The available formats to export to are shown in the drop-down menu. The choices depend on your business collection and source collections that are added in the project file.
Afbeelding26.png

For example, a business collection without any geometry, cannot be exported to a shapefile. And you can only export to a SQL Server database, when there is a SQL connection available as feature source.

Exporting from the menu is similar, but there are more options available. You can import and export a project file or generate an activator file, to save the current map extent.

To go to the menu, click in left hand top corner on Project tab.
Afbeelding29.png

You can choose to export the entire business collection, or only the data shown on the current map extent. More dialog options will appear to further specify the export options.
Afbeelding28.png

Set the options so the export is to your liking and click Next.
Afbeelding30.png
 
Last edited by a moderator:
Top