RMProjection

@interface RMProjection : NSObject

Objective-C wrapper for PROJ4 map projection definitions.

Summary
RMProjectionObjective-C wrapper for PROJ4 map projection definitions.
Functions
wrapPointHorizontallyIf #projectionWrapsHorizontally, returns #aPoint with its easting adjusted modulo Earth’s diameter to be within projection’s planetBounds.
constrainPointToBoundsapplies #wrapPointHorizontally to aPoint, and then clamps northing (Y coordinate) to projection’s planetBounds
pointToLatLonginverse project meters, return latitude/longitude deprecated: rename pending after 0.5
latLongToPointforward project latitude/longitude, return meters deprecated: rename pending after 0.5

Functions

wrapPointHorizontally

- (RMProjectedPoint) wrapPointHorizontally: (RMProjectedPoint) aPoint

If #projectionWrapsHorizontally, returns #aPoint with its easting adjusted modulo Earth’s diameter to be within projection’s planetBounds. if !#projectionWrapsHorizontally, returns #aPoint unchanged.

Parameters

aPoint{RMProjectedPoint}

Returns {RMProjectedPoint}

constrainPointToBounds

- (RMProjectedPoint) constrainPointToBounds: (RMProjectedPoint) aPoint

applies #wrapPointHorizontally to aPoint, and then clamps northing (Y coordinate) to projection’s planetBounds

Parameters

aPoint{RMProjectedPoint}

Returns {RMProjectedPoint}

pointToLatLong

- (RMLatLong)pointToLatLong:(RMProjectedPoint)aPoint

inverse project meters, return latitude/longitude deprecated: rename pending after 0.5

Parameters

aPoint{RMProjectedPoint}

Returns {RMLatLong}

latLongToPoint

- (RMProjectedPoint)latLongToPoint:(RMLatLong)aLatLong

forward project latitude/longitude, return meters deprecated: rename pending after 0.5

Parameters

aLatLong{RMLatLong}

Returns {RMProjectedPoint}

@interface RMProjection : NSObject
Objective-C wrapper for PROJ4 map projection definitions.
- (RMProjectedPoint) wrapPointHorizontally: (RMProjectedPoint) aPoint
If #projectionWrapsHorizontally, returns #aPoint with its easting adjusted modulo Earth’s diameter to be within projection’s planetBounds.
- (RMProjectedPoint) constrainPointToBounds: (RMProjectedPoint) aPoint
applies #wrapPointHorizontally to aPoint, and then clamps northing (Y coordinate) to projection’s planetBounds
- (RMLatLong)pointToLatLong:(RMProjectedPoint)aPoint
inverse project meters, return latitude/longitude deprecated: rename pending after 0.5
- (RMProjectedPoint)latLongToPoint:(RMLatLong)aLatLong
forward project latitude/longitude, return meters deprecated: rename pending after 0.5
{struct} coordinates, in projected meters, paralleling CGPoint
{struct} latitude/longitude of a point, in WGS-84 degrees
Close