WMS

Using the Database Import Wizard in WMS

Do you have data stored in a database that you would like to import into your WMS project? Occasionally you might find yourself with a database that needs to be imported into your WMS project. This might be a geodatabase or some other sort of database containing GIS data that WMS does not recognize natively.

To import a database, WMS uses the Import Database Wizard. The wizard is accessed through the Import From Database command in the File menu. Once the wizard has been launched, there are a few steps you need to follow.

  1. Connect to a database. Use the Connect to Database button to connect to a database located on your computer or on a network. A preview of the database will be displayed in the tables in the wizard.
  2. The Import Database Wizard
  3. Query information from a database table. You will have the option to create, copy, delete and import queries that retrieve data from the database. The query uses basic SQL statements which can be entered in the provided fields.
  4. View results of the query. The results of the database query are displayed for you to review. If the results are not what you expected, you will have the option to return to the previous step to fix the issues.
  5. Assign column type. You can select the kind of data that will be imported into WMS. The kind of data should be of the file types supported by WMS. There is also the option to set files as "no data".

After the data has been imported into your project, you can make use of the coordinate transformation tools in WMS to transform or translate the data if necessary.

If you have a database with data you would like to import into WMS, try using the Import Database Wizard in WMS today!

Blog tags: 

Making Use of WMS Contour Labels

Does your watershed project need to display contour elevations values? WMS (as well as SMS and GMS) have the ability to use contour labels to help determine elevation levels at a glance, which can be very helpful for many projects, especially when modeling drainage. This post will review the different ways that contour labels can be utilized within WMS.

Example of contour labels

There are essentially two different forms or methods when it comes to applying contour labels to contours when working in WMS: manual and automatic. In both cases, the way contour labels are displayed can be modified in the Contour Label Options dialog, which can be accessed by clicking the Label Options… button when the Contour Options dialog has been brought up. Here there are options for color, orientation, font, scientific precision, etc. There is also a button to "Erase all existing contour labels" and start over from the beginning.

The manual method consists of using the Place contour label tool to click on contours and manually assign contour labels to the positions the user chooses. This option is only available in certain modules, such as 2-D Grid and Terrain Data. Note that these may disappear when options in the Contour Label Options dialog are modified, so it may be best to determine the contour options before you manually place contour labels. Labels can also disappear when contouring options are changed, when the Graphics Window is refreshed, or can even be manually deleted when holding down Shift and clicking on a label with this tool active.

The automatic method consists of using the Automatic Labels section in the Contour Label Options dialog to automatically populate labels along the contours. When activated, this allows you to set how many of the contours should be labeled, which contour to start with, and how far apart the labels are spaced out. Unlike in the manual method, changing options for these labels should not delete them, as they should automatically repopulate based on current settings when the OK button is clicked to close the Contour Label Options dialog.

While every project will be different, when using contour labels, some recommended settings to start off with would be to use "Color Fill and Linear" as the Contour Method, and to automatically space out labels. This way more discrete contours as well as gradient values can be easily displayed and it will be easy to determine at any given location what the elevation is. Also recommended is to avoid using white text in most instances, as it is usually difficult to read, except perhaps in instances where color fill is used.

Try out experimenting with contour labels in WMS 11.1 today!

Blog tags: 

Performing a Silent Install for ALS

Are you an IT administrator needing to perform a silent install of GMS, SMS, or WMS in a classroom or office? We have gone over the process to do this in the past. However, our licensing methods have changed since those instructions were first written. Because of this, we have felt it would be useful to update our users on the new method of configuration so they will be able to properly set up their silent installs. This post will review registration for the new licensing method and how to perform silent installs with it.

This silent install (or quiet install) workaround requires each user to have the rights to modify the registry. If registry access is restricted, a network administrator can do this by opening the Group Policy Management Editor and creating a startup script that automatically runs the batch file whenever the computer is restarted.

Note: Editing the Registry in Windows is a very advanced administration step. Please always create a backup of the Registry before making changes.

It can be a burden to manually update the local code in HKEY_CURRENT_USER for each user on each computer. The silent install process is simplified by creating a Windows Registry file that contains the license information and a batch file that can be executed to insert the registry information and launch WMS. The batch file automatically updates the registry for the user and then opens the WMS application. This is the safest way to edit the registry key, as well. The batch file can then be placed on each computer that needs to be updated, and the individual users can execute it as needed.

This workaround uses WMS as an example. This information also applies to GMS and SMS. You can see an example of a registry file in step 1 and the batch file in step 2, below.

  1. Create a file, "Netenble.001.reg", as follows:
    Windows Registry Editor Version 5.00M
    "ALS"="1"
    "ALSHost"="127.0.0.1"
    "ALSPort"="56789"

    ALS = 1 specifies the new registration wizard, with new "Local" codes beginning with L, F, or E, instead of 0 for the old network lock. ALSHost = 127.0.0.1 because the code is being located on the local machine. And ALSPort = 56789 should be the default - you can alternatively specify your own port if you would like. You could also specify an ALSCode (license code) as well if you don’t want registration to be required when first launching WMS.
    Note: This information was created using Windows 10. Because different Windows versions can have different REG file formats, we recommend you install WMS on one machine, register it to the correct local code, then export the registry key. Open the registry file in the text editor and remove every line except those similar to those shown in the image above, and save the file as "Netenble.001.reg".
  2. Create a file, "wms11.bat", that will update the registry and start WMS:
    reg import Netenble.001.reg
    wms.exe
  3. Place these two files in the WMS folder in the image that will be distributed to the affected computers. For example, for the 64-bit version of WMS 11.1, the default location for the folder is “C:\Program Files\WMS 11.1 64-bit\”.
  4. Create a desktop shortcut to the batch file for the convenience of the user. If doing this via a startup script in the Group Policy Management Editor, this step can be skipped.

This silent install workaround can save you significant time as a network administrator. If you experience issues while performing a silent install, feel free to contact Aquaveo for assistance.

Tips for Using the Measure Tool in WMS

Have you used the Measure tool in WMS? You probably have, but would you like to know more about the tools capabilities? This post will review the capabilities of the Measure tool and give some tips for using it.

The Measure tool allows you to measure distance, slope, and in some cases angles along a path you define. It is designed to give you real-world measurement sizes, and can be useful when the scale of parts of a model aren't immediately apparent. When the tool is selected, you will be able to define a series of line segments along a path. This path can be continually defined until it is terminated by double-clicking. When the path is terminated, it will disappear from the Graphics Window, but along the bottom of WMS, in the Help Message window, the relevant values will be displayed in red text. These will be updated whenever the Measure tool is used, reflecting the most recent path that was defined.

Example of using the Measure tool

The units for distance and slope will depend on the units set by the projection, or by the project defaults, either ft and ft/ft (feet) or m and m/m (meters). It is recommended to make certain you have set the correct units for your project before using the Measure tool.

Angle will only be reported when a line only has two points, whereas distance and slope are always reported. Angle will be measured in radians. Angle will be calculated by measuring an angle starting from a reference line pointing south from the first point, and ending at the line segment defined by the two points.

If you have a TIN or DEM loaded into the project, the Measure tool will be able to get slope values. When the Measure tool is used on an area without elevation data, the slope will be given a value of zero. Slope will be calculated by taking the distance-weighted average of the slopes of all the segments. For each segment, slope will be calculated by dividing the change in elevation across the points by the xy distance of the segment.

The Measure tool can help you build and design your project with accuracy. Try out the Measure tool in WMS 11.1 today!

Blog tags: 

Pages