AGSGeometry.h File Reference

Enumerations

enum  AGSGeometryType {
  AGSGeometryTypeUndefined = -1, AGSGeometryTypePoint, AGSGeometryTypePolyline, AGSGeometryTypePolygon,
  AGSGeometryTypeMultipoint, AGSGeometryTypeEnvelope
}

Functions

BOOL AGSGeometryCGPathIntersectsRectangle (CGPathRef path, CGRect pathBBox, CGRect rectangle)
AGSGeometryAGSGeometryGeographicToWebMercator (AGSGeometry *geometry)
AGSGeometryType AGSGeometryTypeForGeometry (AGSGeometry *geometry)
AGSGeometryType AGSGeometryTypeFromString (NSString *geometryType)
NSString * AGSGeometryTypeString (AGSGeometryType geometryType)
AGSGeometryAGSGeometryWebMercatorToGeographic (AGSGeometry *geometry)
AGSGeometryAGSGeometryWithJSON (NSDictionary *json)
AGSGeometryAGSGeometryWithJSONAndSR (NSDictionary *json, AGSSpatialReference *sr)
AGSGeometryAGSMutableGeometryFromType (AGSGeometryType type, AGSSpatialReference *sr)

Enumeration Type Documentation

Supported geometry types.

Since:
1.0
Enumerator:
AGSGeometryTypeUndefined 
AGSGeometryTypePoint 
AGSGeometryTypePolyline 
AGSGeometryTypePolygon 
AGSGeometryTypeMultipoint 
AGSGeometryTypeEnvelope 

Function Documentation

BOOL AGSGeometryCGPathIntersectsRectangle ( CGPathRef  path,
CGRect  pathBBox,
CGRect  rectangle 
)

Returns whether path intersects rectangle.

Parameters:
path The input path that may or may not intersect rectangle.
pathBBox The bounding box of path.
rectangle The rectangle to test intersection relation.
Returns:
YES if path intersects rectangle.
AGSGeometry* AGSGeometryGeographicToWebMercator ( AGSGeometry geometry  ) 

Returns a geometry converted from geographic to web mercator.

Parameters:
geometry The geometry to convert to web mercator.
Returns:
An AGSGeometry object in web mercator.
Since:
1.0
AGSGeometryType AGSGeometryTypeForGeometry ( AGSGeometry geometry  ) 

Return AGSGeometryType from geometry.

Parameters:
geometry The geometry to determine geometry type.
Returns:
AGSGeometryType for geometry.
See also:
AGSGeometryType
AGSGeometryType AGSGeometryTypeFromString ( NSString *  geometryType  ) 

Return geometry type for type string.

Parameters:
geometryType The string representation of a geometry type.
Returns:
AGSGeometryType for geometryType string.
See also:
AGSGeometryType
NSString* AGSGeometryTypeString ( AGSGeometryType  geometryType  ) 

Return geometry type string for AGSGeometryType.

Parameters:
geometryType The type for geometry.
Returns:
String representation of geometryType.
See also:
AGSGeometryType
AGSGeometry* AGSGeometryWebMercatorToGeographic ( AGSGeometry geometry  ) 

Returns a geometry converted from web mercator to geographic.

Parameters:
geometry The geometry to convert to geographic.
Returns:
An AGSGeometry object in geographic.
Since:
1.0
AGSGeometry* AGSGeometryWithJSON ( NSDictionary *  json  ) 

Return autoreleased geometry, initialized from JSON representation.

Parameters:
json The JSON representation.
Returns:
A new geometry object.
AGSGeometry* AGSGeometryWithJSONAndSR ( NSDictionary *  json,
AGSSpatialReference sr 
)

Return autoreleased geometry, initialized from JSON representation and spatial reference.

Parameters:
json The JSON representation.
sr The spatial reference of the geometry.
Returns:
A new geometry object.
AGSGeometry* AGSMutableGeometryFromType ( AGSGeometryType  type,
AGSSpatialReference sr 
)

Returns a mutable AGSGeometry from AGSGeometryType

Parameters:
type The type of geometry to return.
sr The spatial reference of the geometry to create.
Returns:
AGSGeometryType for geometry.
See also:
AGSGeometryType