fbpx
November 28, 2024

SMASH 1.4.0 is out: SLD and GPS Log enhancements

Today we released SMASH 1.4.0 to the Apple and Google stores.

This release brings some bugfixes and two main features.

1) SLD support

When it comes to styling data many have expressed their hate towards the OGC standard SLD. Coming from the uDig/Geotools world, where SLD has always been used, I find it quite nice to use. Well,  I use it for very simple styling, so that might be the reason behind it. Well, it seemed to be the perfect format. There are several editors and GIS that support SLD, so people will be able to create their styles for the survey. And now SMASH is one of them, even if it right now supports a subset of SLD features.

Lets’ have a look. Assume to be in the region of the Resia Lake in northern Italy:

sld_01_map.png

Now let’s play around with some geopackage data: lake polygons, river lines and geoname points.

sld_02_layers.png

Sliding the polygon layer to the right allows to enter the style properties:

sld_03_polygons.png

It is rather intuitive what needs to be done to have a lake styled. But remember to save using the floating action bottom at the bottom. This will write the style to the database table.

sld_04_polygons_map.png

Et voila’. The same goes for lines:

sld_05_lines.png
sld_06_lines_map.png

and points. Points are the only layer types that allow labeling at the moment.

sld_07_points.png
sld_08_points_map.png

These have been very very simple styles. For those that talk SLD, these examples only had a FeatureTypeStyle and one Rule. 

SMASH supports one type of theming: by unique values. In this case a FeatureTypeStyle is populated with several rules that obey to a filter that supports matching of unique values from the attributes table.

The properties page has buttons to change rules and modify them. The following is an example that features 2 FeatureTypeStyles, one with just a Rule containing a textsymbolizer:

 
and a second one with all the Rules with filter:
 
sld_10_theme.png

If only one FeatureTypeStyle or Rule are present, the header titles can vary:

sld_11_theme_single_fts.png

The result then looks like:

sld_12_theme_map.png

We decided to give also GPX files these kind of powers. If you change the style properties of a GPX layer, an SLD sidecar file is created and ensures style persistence. 

sld_14_gpx.png

Style can be defined for lines and points. If waypoints have the name tag, it can be used for labeling.

sld_15_gpx_map.png

 2) GPS log enhancements

The log stats have been extended and now contain time, length, up and down delta (mind this is GPS elevation, so it is usually bad), number of points contained in the log.

gpslog_01_stats_orig.png

In the previous version of SMASH a Kalman filter had been added to filter GPS logs and both log types are kept in the database. It is now possible to decide to use the filtered logs in certain sections of SMASH as for example in the logs list. Just enter the GPS settings and enable the option:

gpslog_03_enable_filtered.png

If you head back to the logs list, the stats length value might be changed:

gpslog_04_stats_filtered.png

In this case the difference is around 8Km. This is due to the fact that in tunnels the GPS often goes crazy and jumps around, generating additional distance to the log. The filtered version is more realistic. But you can choose based on your usecase.

From the log list a new tool is available when sliding to the right: the Profile View

gpslog_05_profile_button.png

The profile view allows to analyze the profile and navigate it:

gpslog_06_profile.png

Thanks for the OwnWeb guys for this nice plugin.

Well, that is it for SMASH 1.4.0. Enjoy!

This information was first published on http://jgrasstechtips.blogspot.com/2020/08/smash-140-is-out-sld-and-gps-log.html

%d bloggers like this: