bmg_bob · Global Mapper Programmer
- Last Active
- No Roles
- Invited by
The easiest way to get a good IMPORT command is to have Global Mapper do it for you as follows:
- Load your data into Global Mapper
- Use the Elevation Options | Alter Elevation Values tab to set the Maximum Valid Elevation and Minimum Valid Elevation
- Save a workspace
- Open the workspace file in a text editor such as Notepad.
- Copy the IMPORT command (you will likely also want the DEFINE_PROJ ... END_DEFINE_PROJ lines also so you will have the correct projection information) to your script file.
gghiggini said:Wouldn't be possible to useCALC_ATTR_FORMULA NEW_ATTR="newattr_2" FORMULA="Min(existingattr_1)"
The Max and Min functions used in the CALC_ATTR_FORMULA command do not operate on the entire data set. They return a result from the items in the list. For example,
CALC_ATTR_FORMULA NEW_ATTR="newattr_2" FORMULA="Min(existing_1, existing_2, existing_3)"will return the minimum value of the three attributes in the list.
If you are using the COPY_ATTRS command, MULTI_AREA=MIN or MULTI_AREA=MAX would copy the smallest or largest value of the attribute when multiple features intersect the area being copied.