Calculate Maximum Elevation Figures (Production Mapping)

Zusammenfassung

Calculates Maximum Elevation Figure (MEF) values for each cell in the input MEF Feature Layer. The tool uses a digital elevation model (DEM) or point data with elevation values to calculate MEF.

MEF values are based on maximum elevation values derived from terrain and vertical obstruction data, bounded in a grid. They can be calculated for Joint Operations Graphic (JOG), Operational Navigation Chart (ONC), Tactical Pilotage Chart (TPC) grid cells, or any other polygon grid features.

Verwendung

Syntax

CalculateMaxElevationFigures_production (in_mef_feat_layer, in_mef_val_field, in_max_vo_val_field, in_max_dem_val_field, in_mef_allowance, in_mef_units, in_terrain_layer, in_point_field, in_terrain_accuracy, in_terrain_units, in_vo_feat_layer, in_vo_elev_field, in_vo_accuracy, in_vo_units)
ParameterErläuterungDatentyp
in_mef_feat_layer

A polygon layer that contains the MEF grid. MEF grids include Joint Operations Graphic (JOG) grids, Operational Navigation Chart (ONC) grids, Tactical Pilotage Chart (TPC) grids, and other polygon grids.

Feature Layer
in_mef_val_field

The in_mef_feat_layer field in which the tool writes MEF values.

Field
in_max_vo_val_field

The in_mef_feat_layer field in which the tool writes maximum vertical obstruction values.

Field
in_max_dem_val_field

The field that stores the maximum elevation value for each cell in the in_mef_feat_layer.

Field
in_mef_allowance

The added default value for each calculated MEF value. The default is 200.

Long
in_mef_units

The linear unit for MEF values:

  • FEETMEF values, including vertical obstruction allowance, are in feet.
  • METERSMEF values, including vertical obstruction allowance, are in meters.
String
in_terrain_layer

A point feature layer or DEM raster layer used to determine the terrain elevation.

Feature Layer;Raster Layer
in_point_field

The field that contains elevation values in in_point_layer. Use this parameter if in_point_layer is a feature layer.

Field
in_terrain_accuracy

A value that represents the accuracy of the terrain layer within a specified number of units.

Long
in_terrain_units

The linear units for terrain values:

  • FEETTerrain linear units are feet.
  • METERSTerrain linear units are meters.
String
in_vo_feat_layer

The point layer that contains all the obstructions for the cells for which the MEF values are being calculated; this is generated from a Digital Vertical Obstruction File (DVOF).

Feature Layer
in_vo_elev_field

The field in the vertical obstruction feature layer that contains the elevation values for each obstruction, which is usually the Height Above Mean Sea Level (HEIGHTAMSL).

Field
in_vo_accuracy

A value that represents the accuracy of the vertical obstruction feature layer within a specified number of units.

Long
in_vo_units

Linear units for vertical obstruction values:

  • FEETVertical obstruction values are in feet.
  • METERSVertical obstruction values are in meters.
String

Codebeispiel

CalculateMaxElevationFigures example (Python window)

This ArcGIS Python window script uses grid and elevation data from production mapping sample datasets. To use it, change the paths to the sample data and load the script into an empty ArcMap document.

import arcpy

# Set up paths to the Production Mapping Sample data
demdd = "C:\\data\\Foundation_Data_Tutorials\\Reference\\DEM\\demdd"
ElevP = "C:\\data\\Foundation_Data_Tutorials\\PLTSDatabase\\GDB\\SoCal.mdb\\SoCal\\ElevP"
SC_Index = "C:\\data\\Foundation_Data_Tutorials\\Reference\\Reference.gdb\\SC_Index"

# These will be the feature layers
ElevP_Layer = "ElevP_Layer"
MakeRas_demdd1 = "MakeRas_demdd2"
SC_Index_Layer = "SC_Index_Layer"

# Make Raster Layer from demdd
arcpy.MakeRasterLayer_management(demdd, MakeRas_demdd1, "", "-117.39358183757 32.4865905390336 -116.856162842319 33.0136745536059", "")

# Make Feature Layer from SC_index
arcpy.MakeFeatureLayer_management(SC_Index, SC_Index_Layer)

# Make Feature Layer from ElevP
arcpy.MakeFeatureLayer_management(ElevP, ElevP_Layer) 

arcpy.ImportToolbox(r'C:\Program Files\ArcGIS\Desktop10.0\ArcToolbox\Toolboxes\Production Mapping Tools.tbx')

# Calculate Max Elevation Figures - Note the mefvalue, mefMaxVoValue, and mefTerrainField fields must be LONGs and exist in SC_index
arcpy.CalculateMaxElevationFigures_production(SC_Index_Layer, "mefvalue", "mefMaxVoValue", "mefTerrainField", "200", "Feet", MakeRas_demdd1, "", "20", "Feet", ElevP_Layer, "zv2", "20", "Feet")

The following ArcGIS label expression can be used to label your maximum elevation figures in the MEF feature layer. To use this label expression:

  1. Execute the Calculate MEF tool on your MEF feature layer.
  2. Right-click the MEF feature layer in the ArcMap TOC. Select properties.
  3. The Layer Properties dialog box displays.
  4. Click the labels tab.
  5. Click the Expression button.
  6. Load the expression listed below into the Expression window. Make sure you change all [MEF_VALUE] occurrences to the name of your in_mef_val_field.
  7. Click the Verify button to validate the label expression.
  8. Click OK to close the Label Expression dialog box.
  9. Check on the Label features in this layer check box in the Labels tab of the Layer Properties dialog box.
  10. Click OK to close the Layer Properties dialog box.

Function FindLabel ( [MEF_VALUE] )
Dim l, h, s, f, z, j, len2, lenfin
s = [MEF_VALUE]
len2 = len(s)
if len2 < 4 then
l = mid(s, 1, 1)
z = "<FNT name='Arial' size='30'>" & "0" & "</FNT>"
j = "<SUP><FNT name='Arial' size='30'>" & l & "</FNT></SUP>"
Findlabel = z & j
elseif len2 = 4 then
l = mid(s, 1, 1)
h = mid(s, 2, 1)
z = "<FNT name='Arial' size='30'>" & l & "</FNT>"
j = "<SUP><FNT name='Arial' size='30'>" & h & "</FNT></SUP>"
Findlabel = Z & j
else
l = mid(s, 1, 2)
h = mid(s, 3, 1)
z = "<FNT name='Arial' size='30'>" & l & "</FNT>"
j = "<SUP><FNT name='Arial' size='30'>" & h & "</FNT></SUP>"
Findlabel = Z & j
end if
End Function

Umgebungen

Dieses Werkzeug verwendet keine Geoverarbeitungsumgebungen.

Verwandte Themen

Lizenzinformationen

ArcView: Erfordert Production Mapping
ArcEditor: Erfordert Production Mapping
ArcInfo: Erfordert Production Mapping

9/17/2010