METerrainProfiler Class Reference

Inherits from NSObject
Declared in MEHeightProfiling.h

Overview

Provides functions to sample heights from terrain maps.

+ getTerrainProfile:wayPoints:samplePointCount:bufferRadius:

Returns an array of MEHeightSample objects along a given route. This function may be run on a background thread.

+ (NSArray *)getTerrainProfile:(NSArray *)terrainPackages wayPoints:(NSArray *)wayPoints samplePointCount:(uint)samplePointCount bufferRadius:(double)bufferRadius

Parameters

terrainPackages

An array of filenames (NSString objects), one for each terrain map package to sample from.

wayPoints

An array of NSValue wrapped CGPoints (minimum of two) that represent waypoints for the route.

samplePointCount

The number of samples to generate.

bufferRadius

The nautical mile buffer radius around the route formed by the way points.

Declared In

MEHeightProfiling.h

+ getMinMaxTerrainHeightsInBoundingBox:southWestLocation:northEastLocation:

Returns the minimum (.x value) and maximum (.y value) terrain heights within the geographic bounds of a rectangle defined by the specified SW and NE points. This function may be called from a background thread.

+ (CGPoint)getMinMaxTerrainHeightsInBoundingBox:(NSArray *)terrainPackages southWestLocation:(CLLocationCoordinate2D)southWestLocation northEastLocation:(CLLocationCoordinate2D)northEastLocation

Parameters

terrainPackages

An array of filenames (NSString objects), one for each terrain map package to sample from.

southWestLocation

The ‘lower left’ corner of the bounds.

northEastLocation

THe ‘upper right’ cornder of the bounds.

Declared In

MEHeightProfiling.h

+ getMinMaxTerrainHeightsAroundLocation:location:radius:

Returns the minimum (.x value) and maximum (.y value) terrain heights within the specified radius (in nautical miles) of the specified location. This function may be called from a background thread.

+ (CGPoint)getMinMaxTerrainHeightsAroundLocation:(NSArray *)terrainPackages location:(CLLocationCoordinate2D)location radius:(double)radius

Parameters

terrainPackages

An array of filenames (NSString objects), one for each terrain map package to sample from.

location

The geographic point around which to search for markers.

radius

The nautical mile radius around the point to search for markers.

Declared In

MEHeightProfiling.h