Configuring Units of Measure

In order for Designer to properly function, the Units of Measure for Compatible Units (CUs) should be properly configured and used. Any Unit of Measure (UOM) value that is specified on a GIS Compatible Unit, CU favorite or Work Management System (WMS) compatible unit should correlate with a value from the Miner.Interop.mmUnitOfMeasure enumeration. Below is a list of the enumeration values and corresponding integers.

enum mmUnitOfMeasure
{
	mmuomEach = 0,
	mmuomMiles = 1,
	mmuomFeet = 2,
	mmuomInches = 3,
	mmuomKilometers = 4,
	mmuomMeters = 5,
	mmuomCentimeters = 6
};

Compatible Units edited via the CU Administration tool should specify the integer value of the desired unit of measure from the enum above in the "Units of Measure" field as shown in the following screenshot:

The value specified should correspond with the map units of the database. It is possible to synchronize changes to units of measure for edited CUs when closing out of the CU Administration tool; selecting "Yes" on the following prompt will update any CUs or CU Favorites that appear on the CU Tab with the appropriate units of measure (and certain other) values from CUs edited in the current session.

To properly configure WMS Compatible Units, ensure the MM_WMS_UNITS_OF_MEASURE table contains all UOM values that are used in GIS CUs or CU Favorites. See explanation of columns for the MM_WMS_UNITS_OF_MEASURE table:

ID This field is a foreign key to the MM_WMS_COMPATIBLE_UNIT_LIBRARY table (UNITS_OF_MEASURE_ID field). This value does not need to correlate to the mmUnitOfMeasure enumeration.
CODE The code field should be the integer value from the mmUnitOfMeasure enumeration for a given UOM.
VALUE A text descriptor for the given UOM. This does not have to be the enumeration name; the descriptor may be any text to identify the enumeration value. For example, populating the MM_WMS_UNITS_OF_MEASURE with all the values from the enumeration could be done with the following SQL statements:
insert into process.MM_WMS_UNITS_OF_MEASURE values (0, 0, 'Each');
insert into process.MM_WMS_UNITS_OF_MEASURE values (1, 1, 'Miles');
insert into process.MM_WMS_UNITS_OF_MEASURE values (2, 2, 'Feet');
insert into process.MM_WMS_UNITS_OF_MEASURE values (3, 3, 'Inches');
insert into process.MM_WMS_UNITS_OF_MEASURE values (4, 4, 'Kilometers');
insert into process.MM_WMS_UNITS_OF_MEASURE values (5, 5, 'Meters');
insert into process.MM_WMS_UNITS_OF_MEASURE values (6, 6, 'Centimeters');
QR code for this page

Was this helpful?