| Esri Community Analyst API for Flex 2.2 Reference | All Packages | All Classes | Index | Frames | ![]() |
| GeometryParsers | Methods | |
| Package | com.esri.bacore.client |
| Class | public final class GeometryParsers |
| Inheritance | GeometryParsers Object |
| Method | Defined By | ||
|---|---|---|---|
toExtent(decodedObject:Object, defaultSpatialReference:SpatialReference = null):Extent [static]
Converts a JSON-decoded object to an instance of the Extent type. | GeometryParsers | ||
toGeometry(decodedObject:Object, geometryType:String, defaultSpatialReference:SpatialReference = null):Geometry [static]
Converts a JSON-decoded object to an instance of a Geometry subtype. | GeometryParsers | ||
toMapPoint(decodedObject:Object, defaultSpatialReference:SpatialReference = null):MapPoint [static]
Converts a JSON-decoded object to an instance of the MapPoint type. | GeometryParsers | ||
toMultipoint(decodedObject:Object, defaultSpatialReference:SpatialReference = null):Multipoint [static]
Converts a JSON-decoded object to an instance of the Multipoint type. | GeometryParsers | ||
toPolygon(decodedObject:Object, defaultSpatialReference:SpatialReference = null):Polygon [static]
Converts a JSON-decoded object to an instance of the Polygon type. | GeometryParsers | ||
toPolyline(decodedObject:Object, defaultSpatialReference:SpatialReference = null):Polyline [static]
Converts a JSON-decoded object to an instance of the Polyline type. | GeometryParsers | ||
toSpatialReference(decodedObject:Object, defaultValue:SpatialReference = null):SpatialReference [static]
Converts a JSON-decoded object to an instance of the SpatialReference type. | GeometryParsers | ||
| toExtent | () | method |
public static function toExtent(decodedObject:Object, defaultSpatialReference:SpatialReference = null):ExtentConverts a JSON-decoded object to an instance of the Extent type.
Parameters
decodedObject:Object — JSON-decoded object containing an extent.
| |
defaultSpatialReference:SpatialReference (default = null) — Default spatial reference to be assigned to
the result object if the decoded object has no spatial reference.
|
Extent — A new instance of the Extent type or null.
|
| toGeometry | () | method |
public static function toGeometry(decodedObject:Object, geometryType:String, defaultSpatialReference:SpatialReference = null):Geometry
Converts a JSON-decoded object to an instance of a Geometry subtype.
A required geometry subtype is specified by the geometryType parameter
which is a string constant specified in the Geometry class.
The Geometry.MAPPOINT, Geometry.POLYGON,
and Geometry.POLYLINE geometries are supported.
If geometryType value is wrong or missing, null is returned.
Parameters
decodedObject:Object — JSON-decoded object containing a geometry (null is allowed).
| |
geometryType:String — A required geometry type (null is allowed).
| |
defaultSpatialReference:SpatialReference (default = null) — Default spatial reference to be assigned to
the result object if the decoded object has no spatial reference.
|
Geometry — A new instance of a Geometry subtype or null.
|
| toMapPoint | () | method |
public static function toMapPoint(decodedObject:Object, defaultSpatialReference:SpatialReference = null):MapPointConverts a JSON-decoded object to an instance of the MapPoint type.
Parameters
decodedObject:Object — JSON-decoded object containing a map point.
| |
defaultSpatialReference:SpatialReference (default = null) — Default spatial reference to be assigned to
the result object if the decoded object has no spatial reference.
|
MapPoint — A new instance of the MapPoint type or null.
|
| toMultipoint | () | method |
public static function toMultipoint(decodedObject:Object, defaultSpatialReference:SpatialReference = null):MultipointConverts a JSON-decoded object to an instance of the Multipoint type.
Parameters
decodedObject:Object — JSON-decoded object containing a multipoint.
| |
defaultSpatialReference:SpatialReference (default = null) — Default spatial reference to be assigned to
the result object if the decoded object has no spatial reference.
|
Multipoint — A new instance of the Multipoint type or null.
|
| toPolygon | () | method |
public static function toPolygon(decodedObject:Object, defaultSpatialReference:SpatialReference = null):PolygonConverts a JSON-decoded object to an instance of the Polygon type.
Parameters
decodedObject:Object — JSON-decoded object containing a polygon.
| |
defaultSpatialReference:SpatialReference (default = null) — Default spatial reference to be assigned to
the result object if the decoded object has no spatial reference.
|
Polygon — A new instance of the Polygon type or null.
|
| toPolyline | () | method |
public static function toPolyline(decodedObject:Object, defaultSpatialReference:SpatialReference = null):PolylineConverts a JSON-decoded object to an instance of the Polyline type.
Parameters
decodedObject:Object — JSON-decoded object containing a polyline.
| |
defaultSpatialReference:SpatialReference (default = null) — Default spatial reference to be assigned to
the result object if the decoded object has no spatial reference.
|
Polyline — A new instance of the Polygon type or null.
|
| toSpatialReference | () | method |
public static function toSpatialReference(decodedObject:Object, defaultValue:SpatialReference = null):SpatialReferenceConverts a JSON-decoded object to an instance of the SpatialReference type.
Parameters
decodedObject:Object — JSON-decoded object containing a spatial reference.
| |
defaultValue:SpatialReference (default = null) — Default spatial reference to be returned if the
decoded object is null or doesn't contain the wkid property.
|
SpatialReference — A spatial reference object.
|